Migrate 180 microservices to a new framework version
Brex built Cursor-based self-correcting agents that let one engineer migrate 180 microservices to a newer Micronaut version in about a month.
Done withCursor
- What they did
- Brex split the work between two self-hosted Cursor agents. Creating a Linear ticket triggers a generation agent. It combines scripts with LLM reasoning, builds locally, self-corrects, and opens a draft PR. A GitHub label then triggers a validation agent. It deploys to dev, runs integration tests, and patches failures up to three times. Both agents load eleven small skills, one per failure type.
- How it went
- One engineer migrated 180 microservices in a month, which Brex puts at 32x per person. Cost per service fell about 90%. A few PRs passed all tests but still caused subtle production bugs.
- Worth knowing
- A single giant prompt run from laptops failed. Cloud-hosted agents, modular skills and a three-attempt cap fixed that. Human review was still required, and weak test coverage let bugs through.
Try it yourself with Cursor
Write a self-correcting migration agent that updates [list of services/repos] from [old framework version] to [new framework version], running build and tests after each change and fixing failures automatically. Have it report progress per service and pause before opening any pull requests for my review.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: brex.com · Undated
Related use cases
Keep coding agents running autonomously for long stretches
Cursor's write-up on scaling long-running autonomous coding.
Run Terraform plan and apply through an MCP agent
The author had Cursor run Terraform against Postgres via MCP; the apply hit a permissions error and he finished from the terminal.
Turn Sentry bug reports into fix pull requests
Sentry's Seer passes root cause analysis and issue context to a Cursor Cloud Agent, which writes the fix and opens a pull request in the user's repo.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Route Linear tickets to PRs across multiple repos
A developer sends tasks via Telegram/OpenClaw into Linear, where Cyrus routes each to the right repo and model and opens PRs for review.
Run a Claude Code refactor unattended
A Claude Code agent ran 40 minutes unattended on a refactor; it worked and tests passed, but the user couldn't tell what it did in between.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.