← all writing
01 · 06 Dec 2026 · 7 MIN READ

Microsoft's 350-repo agent migration came down to reviewing 11 edit groups

Fanning a coding agent out across a hundred repositories is easy now. Reading what it did in all of them is not. Every time I've run a cross-repo change with parallel agents, the editing took an afternoon and the review took the rest of the week, because I was opening the same five-line diff over and over, looking for the one repo where it was subtly different.

That's why I read Compose: Orchestrating Coding Agents for Large-Scale Multi-Repository Code Migrations from Microsoft CoreAI more closely than most systems papers. It doesn't claim a better editing model. It claims a better way to organise what the agents produce so a human can actually sign off on it. Its headline number is about review, not code generation: in a parser SDK migration across 350 repositories, 4,036 edit occurrences collapsed into 11 edit groups.

Pull requests per repo are the wrong unit of review

The usual pattern for fleet-wide agent changes, the one Spotify described for its Honk agent and the one most of us improvise with Claude Code subagents, is one agent per repo, one PR per repo, one reviewer per PR. That spreads the review cost across teams, but it never gets rid of it. And no single PR shows you how the edit compares with the 349 others.

Compose takes the opposite position. A central user owns the migration, and the system's job is to turn 350 diffs into a short list of distinct decisions. Approvals and correction requests can be issued at the level of a semantic cluster, an edit group, a file, or a single location, and each decision applies to the captured revision, not to whatever the agent writes next.

I think that's the right instinct. The bottleneck in agentic migrations moved from typing to judging some time ago, and most tooling hasn't noticed.

A contract, one session per repo, and stop rules no LLM controls

The pipeline is worth spelling out, because most of the good decisions are boring ones:

  1. A transform contract with six sections: goal, scope (read/write file globs), requirements, expected and forbidden code patterns, validation commands, and capabilities (skills, subagents, read-only MCP tools).

  2. One persistent coding-agent session per target repo, up to N in parallel. Targets whose write scopes overlap are run sequentially.

  3. After every editing pass, the repo's changes are snapshotted as Git patches. Hooks on the agent's tool calls record which validation commands ran and against which code, so a build that passed before the last edit doesn't count.

  4. Deterministic rules decide whether another pass runs, using captured changes, validation results and findings. LLM assessments feed in, but they don't get the final say.

  5. Edits are grouped by Tree-sitter AST shape plus the concrete before/after text, then an LLM clusters those groups into labelled semantic clusters for review.

Two of those choices are the kind you only arrive at after something burned you. On continuation, the paper is blunt:

LLM-generated findings can inform this decision, but do not make the continuation decision.

And a worker that dies mid-task is recorded as failed instead of being retried automatically, "because earlier actions may already have taken effect." Anyone who has watched an agent re-apply half a migration on top of itself will appreciate that line.

Seven groups held 99.6% of the SDK edits

The internal migration touched 350 Tree-sitter parser adapters, one repo each, under a contract written by the SDK team. Run with GPT-6.1 Sol at high reasoning effort:

The ten open-source replays are a better stress test because they're far less uniform: Kubernetes moving to Ginkgo v2, Podman swapping urfave/cli for Cobra, Redis partitioning dictionaries by hash slot, Roslyn making its compiler task safe for concurrent builds, across eight languages. The agent got a contract derived from the historical PR description but not the patch. Six of ten met every core requirement on the first iteration, and review feedback got the other four over the line.

What I found most useful is how the compression behaved. Dependency swaps were highly repetitive (Podman 89.3%, Kubernetes 83.2%), and there AST grouping did the work: Kubernetes went from 418 migrated files to 129 edit groups. Roslyn (10.4% repetitive) and Streamlit (22.4%) produced more edit groups than files changed, 117 from 12 and 94 from 23, and only semantic clustering got them down to something reviewable, 11 and 6 clusters. Two different mechanisms carry two different kinds of migration. If your fan-out tooling only does one of them, you'll find out which kind of migration it was built for.

Compression isn't correctness, and the paper says so

This is an experience report, not a controlled study, and it reads like one. There's no baseline: no measurement of how long humans took to review via Compose versus repo-by-repo PRs, no count of defects reviewers caught, and no comparison with a plain parallel-agents setup. The evaluation uses one model on the authors' own system, and requirement coverage was judged by an agentic reviewer plus the authors' manual comparison with the historical patches. "11 edit groups" tells you how much the review shrank. It doesn't tell you the review was right.

The authors are unusually candid about that gap. Section 6 is a list of what still needs a domain expert:

Large groups can therefore conceal incorrect instances among many apparently uniform changes.

That's the real risk of this design. A group of 1,050 identical-looking edits invites a single approve click, and the one occurrence where surrounding control flow made the edit wrong rides through with the rest. The paper also doesn't model cascading edits, the caller and test changes that a return-type change forces, so it can't tell you why an edit exists, only that it resembles others. And the 81% first-pass rate came from a contract written by the team that owns the SDK. The authors explicitly flag that contract authoring is expert work, and none of its cost shows up in the 4h 45m.

What I'm stealing for my own fan-out jobs

You don't need Compose to use most of this. If you run Claude Code or any other agent across many repos, three things transfer directly:

The tail is where I'd spend the saved time. In the SDK run, 16 occurrences sat outside the big seven groups, and those are exactly the ones I'd want a human reading line by line. My bet is that the next useful paper here won't make grouping tighter. It'll flag the odd one out inside a group that looks uniform, and that's the problem I'd want my own tooling to solve first.


Working on something similar?

Say hello — I read every email.