Skip to content
TriedPrompts

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

Copy the prompt

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

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

  1. Tap Copy prompt.
  2. Open the tool the case used (or a similar one) and paste the prompt; results may differ from the original.
  3. Paste it into the message box.
  4. 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.

What the prompt labels mean

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

Cursor (self-hosted agents)

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

More in CodingRandom case in Coding