Brex migrates 180 Kotlin microservices to Micronaut 4 in a month with one engineer and two self-hosted Cursor agents, after a manual attempt managed 50 in a quarter
Brex runs Micronaut across 500+ Kotlin microservices. In 2025, three engineers spent a full quarter migrating about 50 services from Micronaut 3 to 4 by hand. A year later a single all-in-one agent with a huge prompt failed, hallucinating library methods and bypassing validation, and running it on laptops kept breaking the loop. The working version split the job into a PR generation agent, triggered by a Linear ticket, and a PR validation agent, triggered by a PR label, that deploys to dev, runs integration tests and makes up to three repair attempts. Deterministic changes go to buildozer, Python scripts and a Kotlin AST tool, and eleven small skills each handle one class of failure. The agents run as self-hosted Cursor agents, and humans review and merge every PR.
The numbers (as reported)
| Services migrated | 180 microservices in one month by one engineer |
|---|---|
| Previous manual attempt | About 50 services in a quarter with three full-time engineers |
| Speed-up | 32x per capita (Brex figure) |
| Cost per service migration | Down about 90% including infrastructure and token costs |
| Skills | Eleven, each scoped to one class of failure |
Facts
- Company / subject
- Brex
- Tools
- Cursor
- Codebase
- brownfield
- Work type
- Migration
- Stack
- Kotlin, Micronaut, Bazel, GraphQL
- Published
- 2026-07-22
- Last checked
- 2026-10-26
What the source claims Practitioner (own blog/paper)
Claimed by the builder, writing about their own work. Not checked independently.
- One engineer migrated 180 microservices in a month, where three engineers had managed about 50 in a quarter by hand: a 32x per capita speed-up 32x
“This represents a 32x per capita acceleration in delivery speed.”
- Cost per microservice migration down about 90%, counting infrastructure and tokens -90%
“we decreased our cost per microservice migration by approximately 90%”
Caveats
Brex's own blog, written up as a Cursor success. A few automated PRs passed all tests and still caused subtle runtime bugs in production. No absolute dollar costs, model names or PR counts. Published July 2026, so older than this week's scan.
More stories by tool: Cursor
Related topics: MigrationsBrownfield codebases