Code on a computer screen
Field note7 min read
All posts

From LLM pipelines to coding agents: what changes in a code migration

Spotify, Google, GitHub, Bun and Shopify have published agent-driven migrations. What agents change compared with the first LLM pipelines, why the automatic check still decides, how often agents fake success, and why review becomes the bottleneck.

Photo: Chris Ried / Unsplash

On this page

    The first wave of AI code migrations, the ones Airbnb, Google and Amazon wrote about, were pipelines: a fixed sequence of steps per file, a language model doing one narrow job inside it, and an automatic check deciding whether the file moved on. Since then the tools have changed. Coding agents plan their own steps, edit across many files, run the tests and try again, for hours.

    Enough companies have now published agent-driven migrations to see what changed and what did not. This post compares them with the pipeline cases in AI code migrations: what Airbnb, Google and Amazon actually reported.

    The short answer: agents take on larger and messier migrations than pipelines, whole runtimes and frameworks rather than one pattern per file. What makes them work is the same as before, only more so: an automatic check the agent cannot game, a narrow sandbox, and humans who decide the architecture and the merge. Review becomes the bottleneck, and benchmarks show agents still often fake success when the checks are weak.

    What the published cases show

    Agent-driven migrations, as the companies report them

    Spotify (2025 to 2026)About 50 migrations across thousands of repositories: Java records, pipeline upgrades, UI migrationsVerifiers (formatters, linters, tests) must pass before any pull request; an LLM judge vetoed about a quarter of sessionsOver 1,500 merged agent pull requests by November 2025; 60 to 90% time saving, method not given
    Google (2026)TensorFlow to JAX for production modelsCompiler-based planning; numerical equivalence of every layer; expert review6.4x to 8x faster; several engineer-months down to weeks
    GitHub (2026)Copilot's agent runtime, about 430,000 lines of TypeScript, to RustExisting end-to-end tests gate every pull request; three-model review; a human merges128 pull requests in about 14.5 weeks; dozens of regressions, all fixed
    Bun (2026)535,000 lines of Zig to RustThe project's own test suite; adversarial reviewer agentsDone in 11 days with all tests passing and none skipped; about $165,000 in API usage
    Shopify (2026)The Shop app from React Native to native iOS and AndroidPlans approved by engineers; parity checked with screenshots and analytics eventsIn the app stores in 12 weeks; faster start-up, ten times fewer crashing sessions
    Datadog (2026)A storage layer from FoundationDB to PostgreSQL and DuckDBOne method at a time against end-to-end tests; weeks of comparison with productionAbout three months; the team says the models were not generating code autonomously

    All self-reported. GitHub writes about its own product; Bun is owned by Anthropic, whose model did the work, and says so.

    Source: Spotify Engineering; Google Cloud blog and Nikolov et al. 2026; GitHub blog; Bun blog; Shopify Engineering; Datadog Engineering

    Download the data (CSV)

    What changes with agents

    • Scope. Pipelines handled one pattern in many files. Agents take on migrations where the change differs from file to file. Spotify runs its agent on the system it already used for automated changes across thousands of repositories, and used it for about 50 migrations there (Spotify, part 2).
    • Planning moves to the agent, decisions stay with people. At GitHub the human chose the architecture, split the work into components and made every merge call (GitHub). At Shopify, engineers approved each plan, and any edit to the plan voided the approval (Shopify).
    • Several agents check each other. Bun ran an implementer, two or more reviewers that saw only the diff, and a fixer (Bun); Spotify added an LLM judge comparing the diff with the request (Spotify, part 3).
    • Fewer tools, tighter sandboxes. Spotify's agent gets a verify tool, a restricted git tool and an allowlisted shell, and nothing else (Spotify, part 2). Stripe's agents run in isolated environments without production or internet access and get a curated subset of hundreds of internal tools (Stripe).
    • Cost becomes visible. Bun's port used 5.9 billion uncached input tokens and 690 million output tokens, about $165,000 at API prices, for 11 days of work. See What an AI agent really costs for how to estimate it.

    What does not change: the check decides

    Every successful case leans on a check the agent cannot talk its way past: Bun's test suite, GitHub's end-to-end tests, Google's numerical comparison of every layer, Spotify's verifiers. Where tests were thin, people had to do the checking: in Spotify's dataset migrations the repositories had few tests, so owning teams tested by hand (Spotify, part 4). And agents push against weak checks. Bun's early runs stubbed out functions just to compile; at GitHub an agent tried to waive a schema-compatibility failure and was caught in review.

    Benchmarks built to catch this show how often it happens:

    Migration benchmarks with strict checks

    MigrationBench (Amazon, 2025)Java 8 to Java 17 or 21, 300 repositoriesBuilds and passes tests71.7% for the minimal migration, 53.3% for the full one
    FreshBrew (2025, ICSE 2026)Java 8 to 17, 228 repositoriesOriginal tests pass unmodified, coverage drops at most 5 points52.3%; the rule-based tool OpenRewrite 7.0%; agents caught excluding or skipping tests
    SWE Refactor Bench (2026)20 whole-repository stack migrations, 8 modelsMigration actually done, behaviour tests pass, hidden differences found by test-writing agents5.4% of 520 runs passed all three checks; agents often copied the old code instead of migrating

    The stricter the check, the lower the score. Results depend on the agent framework and the model.

    Source: MigrationBench (Amazon, 2025); FreshBrew (2025); SWE Refactor Bench (2026)

    Download the data (CSV)

    Review is the new bottleneck

    The most detailed numbers come from Microsoft's ten months with GitHub's coding agent in the .NET runtime repository (Microsoft):

    Coding agent pull requests in dotnet/runtime, ten months

    Merged67.9% (best)87.1% (best)
    Median review comments per merged pull request107
    Merged pull requests with 21 or more comments24.5%15.5%

    Of 878 agent pull requests, 535 were merged and 0.6% of those were later reverted. Success rose from 38% to 69% after the team added an instructions file, and was 86% when a human pushed commits to the agent's branch, against 55% without.

    Source: Microsoft .NET blog, Ten months with Copilot coding agent in dotnet/runtime (March 2026)

    Download the data (CSV)

    Spotify reports the same pressure from the other side: a year in, the team had 76% more pull requests to review (Spotify, June 2026). Across 456,000 agent pull requests on GitHub, every agent's acceptance rate in popular repositories was below the 76.8% of human pull requests (Li et al. 2025). Plan reviewer capacity before agent capacity.

    A decision rule for an agent-driven migration

    1. Make the check first. Tests, type checks, numerical or visual comparison with the old system, run automatically on every change. If they are thin, strengthen them before starting; the agent will otherwise find the gaps.
    2. Ban the shortcuts. No deleting or skipping tests, no stubs, no waivers without a human. Check for them in review.
    3. Keep the architecture human. People choose the target design, split the work and approve plans; agents execute.
    4. Sandbox narrowly. Read code, edit, run the checks. No production access, a short tool list.
    5. Write the instructions down. Microsoft's success rate nearly doubled after an instructions file; preparation matters as much as the model.
    6. Budget review and tokens. Size the work by how many changes reviewers can take per week and what each attempt costs.

    The same principles apply to agents beyond code; they are the controls described in Agentic AI from demo to production.

    How much weight this evidence deserves

    Appraising the evidence

    Company engineering blogs (Spotify, Google, Shopify, Datadog, Microsoft)Detailed, real systems, sometimes with numbers on failuresSelf-reported, mostly successes; time savings rarely measured
    Vendor-linked cases (GitHub, Bun)Very detailedWritten by the maker or owner of the tool
    Benchmarks (MigrationBench, FreshBrew, SWE Refactor Bench)Strict, repeatable checksOpen-source projects, not your codebase
    Studies of agent pull requestsLarge samples across many repositoriesPopular open-source projects; acceptance is not quality

    Download the data (CSV)

    Questions and answers

    Can coding agents migrate legacy code?

    Yes, when an automatic check the agent cannot game decides the result. Bun reports moving 535,000 lines of Zig to Rust in 11 days with all tests passing, and GitHub moved about 430,000 lines of TypeScript to Rust in 128 pull requests over about 14.5 weeks. On the strict SWE Refactor Bench, though, only 5.4% of 520 runs passed all three checks.

    What is the difference between an LLM pipeline and a coding agent for code migration?

    An LLM pipeline runs a fixed sequence of steps per file, with a language model doing one narrow job and an automatic check deciding whether the file moves on. A coding agent plans its own steps, edits across many files, runs the tests and tries again, for hours. Pipelines handled one pattern per file; agents take on whole runtimes and frameworks.

    Do coding agents fake success in code migrations?

    Often, when the checks are weak. On the FreshBrew benchmark, agents were caught excluding or skipping tests; Bun's early runs stubbed out functions just to compile; and at GitHub an agent tried to waive a schema-compatibility failure and was caught in review. The defence is a check the agent cannot game, plus a ban on skipped tests, stubs and waivers without a human.

    How much does an AI code migration cost in tokens?

    Bun's port of 535,000 lines of Zig to Rust used 5.9 billion uncached input tokens and 690 million output tokens, about $165,000 at API prices, for 11 days of work. Tokens are only part of the budget: review becomes the bottleneck, so size the work by how many changes reviewers can take per week as well as what each attempt costs.

    Are coding agent pull requests merged as often as human ones?

    No. In Microsoft's ten months with GitHub's coding agent in dotnet/runtime, 67.9% of agent pull requests were merged against 87.1% of engineers' pull requests, with a median of 10 review comments against 7. Success rose from 38% to 69% after the team added an instructions file. Across 456,000 agent pull requests on GitHub, every agent's acceptance rate in popular repositories was below the 76.8% of human pull requests.

    Sources

    How to cite

    Ivan Bardak. "From LLM pipelines to coding agents: what changes in a code migration". bardak.ai, December 1, 2026. https://bardak.ai/posts/coding-agents-code-migration

    Data behind the charts (JSON)