More in Migrations & upgrades.
Migrate 180 microservices to a new framework version with Cursor agents
Brex reports its self-hosted Cursor agents let one engineer migrate 180 microservices from Micronaut 3 to 4 in a month.
Result: WorkedTool: Cursor (self-hosted agents)Level: AdvancedSetup: Needs self-hostedEvidence: Reported
Reported: A company's own write-up with code snippets but no outside proof. Reported is the normal starting point for most cases, not a mark against the case. Rated , after reopening the source. Rates the evidence, not the result. Failed and partial cases are rated the same way. How we rate evidence
Outcome
Brex reports that a year earlier, three engineers working full time for a quarter migrated only about 50 of its 500-plus Micronaut services from version 3 to 4. A first attempt with one large agent prompt hallucinated library methods and skipped validation, and runs on laptops broke when they went to sleep. The setup that worked used two self-hosted Cursor agents in the cloud: one turns Linear tickets into draft pull requests, the other runs CI and integration tests and patches errors up to three times, drawing on eleven skills for known failure types. One engineer migrated 180 microservices in a month, which Brex calls a 32x per-capita speedup. A human still reviews every merge, and a few PRs that passed all tests caused subtle production bugs.
According to Brex: 180 microservices migrated in one month
This is the source's own number. We haven't measured it.
WorkedPosted Last checked
- Source checked
- Results shared. The poster described their results. This doesn't mean proof is attached.
Level: Advanced. You need: A tool that takes actions for you or writes code, connected accounts, or some setup on your computer.
How to use this
- Tap Copy prompt.
- Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
- Paste it into the message box.
- Send it, then read the answer before acting on it.
New to this? What's a prompt?
A prompt is the message you send to the AI tool. Copy the one on this page, put your own details where it asks, and read the answer before you act on it.
Prompt
Recreated prompt
The source didn't share its exact prompt, so we wrote one from what it describes. The result shown is the source's, not ours.
The person didn't share their exact words, so we wrote this from what they described. We haven't tested it, and they didn't use this exact version.
Migrate this service from Micronaut 3 to Micronaut 4: update the build targets and imports, build it, fix every compilation and test failure, and repeat until CI passes.
Try this in:
Sends the Recreated prompt shown above. ChatGPT and Grok open with it filled in, and ChatGPT may send it straight away. Gemini and Claude open empty, so we copy the prompt for you to paste. Every button also copies it.
The source used Cursor (self-hosted agents), which can take actions in a browser or app. These are general chat tools, so results may differ, and a normal chat may only give you a plan.
Opens in a new tab. We don't see what you send.
These links are only a shortcut. We're not affiliated with OpenAI, Google, Anthropic or xAI, and your results may not match the source.
Optional stronger version
Our rewrite with extra checks. The poster didn't test it.
Goal: Migrate this service from Micronaut 3 to 4 and iterate until CI is green. Inputs (fill in or confirm): - Service repo and branch - Migration guide link - CI command - Services or modules that must not change behavior Rules: - Update build targets, dependencies and imports per the official guide. - Fix compilation errors first, then test failures, in small commits. - Don't change behavior or public APIs; note any unavoidable change. - Record each error and fix in a migration log for reuse on other services. - Prefer the framework's documented replacements over custom workarounds. - Check deprecation warnings after the build and fix the ones the guide marks as removed in v4. - Migrate one service end to end first as a pilot, and review it with me. - Keep a per-service checklist: compiled, tests green, behavior diff checked. - Open one pull request per service so each can be reviewed and rolled back. Checkpoint: Open a PR; don't merge or deploy. If you get stuck: If a failure isn't covered after three attempts, stop and summarize it. If a login, CAPTCHA or two-step code appears, stop and ask me to handle it; never guess or store passwords. Verify before you finish: Run the full test suite and CI; list any skipped tests. Output: PR link, migration log and CI result. Done when: CI passes with no behavior changes.
AI tool
Source
- Posted
- by Sofhia de Souza Gonçalves (Brex)
- Last checked
- Method:
- How we verify
https://www.brex.com/journal/agent-automations-for-big-migrations
Tell us how it went A reader message. It is not published on this page, and it is not a test of the prompt.
More in Migrations & upgrades
Migrate a 180M-row Postgres table to bigint with Claude Code
Claude Code wrote most of a nine-day bigint migration with a 1.4-second lock, but twice suggested steps that would have failed.
WorkedClaude CodeAdvancedView CaseMigrate two websites from WordPress to Wagtail with Claude Code
Over a weekend Claude Code moved two sites from WordPress to Wagtail, including server setup and testing; the poster says nothing broke.
WorkedClaude CodeEvidence: Described by posterAdvancedView CasePort a backend to Convex in four hours with Factory's Droid
The poster reports Factory Droid ported a tRPC/Drizzle backend to Convex in about 4 hours, with some bugs left to fix.
WorkedFactory DroidEvidence: Described by posterAdvancedView CaseMigrate a 50-screen app from Firebase to Supabase with Claude Code
Going feature by feature with Claude Code, the poster moved about 85% of a 50-screen app from Firebase to Supabase in 10–20 days.
WorkedClaude CodeAdvancedPoster says: ~85% migrated in 10–20 days
View CasePort an HTML5 parser from Python to JavaScript with Codex CLI
Codex CLI ran largely unattended for about 4.5 hours and produced 9,000 lines of JavaScript passing 9,200 html5lib tests.
WorkedOpenAI Codex CLIEvidence: Screenshots or logsAdvancedPoster says: Passes 9,200 html5lib tests
View CaseUpgrade a plugin to a new framework alpha with Codex CLI
A one-line Codex CLI loop read the Datasette 1.0a20 upgrade docs, fixed the failing tests and got a plugin passing again.
WorkedOpenAI Codex CLIEvidence: Screenshots or logsAdvancedView Case

