The problem
A bank has a few hundred internal Java services on Spring Boot 2. Spring Boot 3 needs Java 17 and moves package names from javax to jakarta across code, configuration and dependencies. The owning teams have other priorities, and the code cannot go to an outside service.
Deterministic tools first
Run OpenRewrite’s Spring Boot 3 migration recipe on every repository first. It makes the mechanical edits the same way every time. The agent handles what is left: compile errors from libraries the recipe does not know, failing tests and deprecated APIs with no direct replacement.
The agent loop
For each repository, the job:
- Clones it and runs the recipes.
- Builds and runs the tests.
- If anything fails, lets the agent edit and rebuild in a loop.
- Stops when the build and tests pass, or at its budget of steps or tokens.
An agent that has not fixed a repository in thirty steps rarely fixes it in three hundred, and a run without a limit can quietly use a week of GPU time. The agent may not delete or skip tests, which the job checks by comparing test lists, and its only output is a pull request for the owning team to review.
Testing the models
SWE-bench, the most cited benchmark for coding agents, is built from 12 Python repositories and says little about Java build errors. Build your own from twenty repositories the platform team already upgraded by hand, and run each model through the same harness. Start with Qwen3 Coder 30B, which activates about 3B parameters per token and answers quickly, and use GLM-4.6 for a second pass on what it could not finish.
What to expect
Repositories fall into three groups: ones the recipes alone upgrade, ones the agent finishes, and ones that need a person, with a report of where the agent stopped. Run the known twenty first, then one team’s services, then everything. Afterwards, editor assistants such as Continue and Cline can use the same endpoint.