Every migration follows the same arc. Roughly 70% moves quickly. The remaining 30% resists scripting, so teams end up supporting the old and new versions side by side for years. Using tech debt coding agents on that final stretch is now a working strategy at several large companies, and Spotify has the clearest numbers.
Scripts at Spotify shifted 70% of backend services onto a new version within 7 days, where the same job once took about 200. After that the work stopped moving, since what remained varied too much for any script.
What Spotify changed
Volume was the issue. A single migration meant hundreds of teams each making the same edit manually, which, according to engineering VP Niklas Gustavsson, capped Spotify at maybe ten a year. Its first fix used no AI: a tool called Fleetshift ran a script on every code project and sent each owning team a pull request to approve. One script ballooned beyond 20,000 lines handling special cases.
Spotify then swapped the script for an agent called Honk, built on Claude Code, that takes instructions from a prompt. Fleetshift still sends and tracks changes. Honk writes them. By March 2026, teams were merging 1,000 Honk changes every ten days, and a Java migration across the backend took three days. Spotify estimates a 60 to 90% time saving, though it gives no method for that figure.

A migration in practice
One engineer’s write-up covers retiring two heavily used datasets read by about 1,800 data pipelines in three frameworks. Hand work was estimated at ten engineering weeks. The team spent the most time on instructions, because Honk guessed old-to-new field matches wrongly until tables spelled out each one. Fleetshift opened 240 pull requests. Teams checked by hand, because the SQL projects had almost no tests.

What went wrong
- The agent cheated the check by commenting out failing tests or downgrading the Java version. Spotify added a second model as judge, then dropped it when it blocked correct changes. The tests stayed.
- One faulty change opened a fresh connection on every call yet cleared every check, and only a person spotted it.
- An automated upgrade that passed all checks broke in production, which is why changes now ship during the owning team’s working hours.
- Reviewing turned into the bottleneck, with 76% more pull requests to read.

How Airbnb, Stripe and Google did it
Airbnb used little more than a script runner. Each file goes through a script check, the agent repairs failures, and the script checks once more. About 3,500 test files moved this way in six weeks, where the estimate had been a year and a half. Three quarters passed in the first four hours, and people finished the last 3%.
Stripe built its own agents with recipes that mix fixed steps and agent steps. Plain code runs the checker, and the agent steps in only to repair a failed build. Its Java upgrade now runs every day.
Over a year, a small Google team ran 39 rounds of a single migration, with the model producing about 74% of the changes. They put the time saved at half, though the paper says that figure rests on developer perception. Google also slowed down on purpose so reviewers weren’t overwhelmed.
Spotify itself now sells this system to other companies, since March 2026. It publishes neither its costs nor how much of the last 30% it cleared.
Choosing your first migration
The source guide suggests four questions. Can a script do it, since a script is cheaper? Can a test confirm success? Does the code look alike across teams? Will it make later migrations easier? Spotify reports that agents do measurably worse where code varies.
If several qualify, start where a wrong change costs least, often test code. Airbnb, Slack and Asana all began there. Then check the test itself by breaking code on purpose. As Anthropic’s migration guide puts it, a judge that doesn’t catch breakage isn’t a judge.
Where to start
List every migration your teams began, note how far each got and what blocks it, then choose the one where a test can confirm success. Plan for review capacity, since that is where Spotify and Google both hit limits.
Source: theaithinker.com