Agents Merge 30k Changes a Day: What Breaks in Git and CI

Most talk about coding agents is about the code: is it correct, who reviews it. Anthropic's engineering post Redesigning source control at Anthropic (October 13, 2026) is about the plumbing under the code. Their monorepo merge rate grew roughly twelve times in four months, and git, its mirrors and the merge queue could not keep up. A team of seven replaced them with an in-house system called Scion.
Few teams will run at that scale, but the same pressure shows up much earlier: CI bills, mirror disks, a merge queue that is always red. Below: what Anthropic reported, the ideas worth copying, a worked example of checkout traffic, and a decision table for teams on git.
What Anthropic Reported
The numbers in the post:
| Metric | Value from the post |
|---|---|
| Merges per day, May 2026 | About 2,500 |
| Merges per day, September 2026 | "over 30,000 per day" |
| History of the main branch | "almost 100 GB" |
| Compressed working copy | "over 25 GB" |
| CI checkouts per day | "on the order of 25 million" |
| Naive git traffic for those checkouts | "over 600 PB of git traffic per day" |
| Team and time to build and migrate | Seven people, five months |
The 600 PB is what a naive fetch would cost, not measured traffic. The 30,000 counts merges into one internal monorepo, not commits. And the 25 million checkouts are CI only. Developer environments, agent sandboxes and research jobs come on top.
Why Git Strained
The post does not blame one git command. It describes a slow squeeze on the workarounds. Anthropic used shallow clones, sparse checkouts, promisor remotes, internal mirrors and blob-stored seed repositories. At peak they ran "several hundred internal git mirrors." As the merge rate rose, seeds drifted further from main between refreshes, partial clones made diff and blame harder to keep working, and the mirrors "no longer scaled once the repo outgrew the mirrors' disks or memory limits."
The deeper point is a mismatch in design. Git is decentralized: every clone is a full peer that can work offline. Anthropic used it as a centralized system where nearly every client is one of the "agents and jobs that are online by definition." Refs are shared global state that every server must agree on, which the authors call "a looming scaling problem."
What Scion Does Differently
Scion is not git with more servers. The ideas, as the post lists them:
- The server does the heavy work. History, blame, commits, merges and rebases run on the server. The client keeps a bounded object cache. Because commits and merges happen server-side, there is nothing to push.
- Source control is an API. CI and research jobs can ask for the diff between a commit and its merge base, and many writes need no checkout at all.
- Commits are lock-free. A changeset goes into a write-ahead log with "no locking or cross-server coordination." Storage is Spanner plus cloud storage. A ref update is a compare-and-swap on one Spanner row, separate from writing the changeset.
- Fetch by immutable object, not by packfile. The
scnclient starts from a root tree and asks only for the trees and blobs it lacks. Any cache can answer a request for an immutable object, and a transfer can resume where it stopped. - Tiered caches with isolated failure domains. A per-node
scion-daemontalks to regionalscion-cacheservers, which fall back to the authoritativescion-servers. The post reports a cache hit rate "over 99%" at each tier. - The working copy is optional and sparse.
The results they report: checkouts went from minutes to seconds, CI got a "25% CPU capacity win," and Scion uses "200x smaller" CPU and memory than the old git mirror fleet.
It is also clear about the limits. Scion "is by no means a suitable replacement for git for general use," the ideas "really only make sense for truly enormous monorepos," and there is no public release.
The Merge Queue Decision
One choice in the post is easy to copy badly. Anthropic says a traditional merge queue "doesn't make much sense at agent scale." They could not effectively replicate the industry-standard global repository lock on the merge queue, so they put the money into post-merge and pre-deploy automated testing instead. Concurrent changes can conflict, and Claude "can typically fix these conflicts faster than humans can even identify them."
That trade works because something still guards production. Drop the queue without that gate and a bad combination of changes lands on main, passes nobody's check, and reaches users. The broken build turns into an incident. We covered the semantic version of this failure, two green PRs that break when combined, in AI Writes More Code. Review Is the New Bottleneck.
At normal scale, a queue that batches is usually the better step. GitHub's merge queue has "Build concurrency" (up to 100 merge_group builds dispatched at once) and merge limits that set the minimum and maximum group size (also up to 100 PRs). Raise those before you remove the queue.
Worked Example: Checkout Traffic
Start with Anthropic's own numbers. 25 million checkouts times a 25 GB working copy is 625 PB, which matches the "over 600 PB" in the post. Checkout traffic is a product of two numbers, and agents push up the first one.
Now a smaller, made-up team. These are illustrative numbers, not measurements:
- Agents raise merges from 400 to 4,000 a day.
- Each merged change sees 4 CI runs (three PR pushes plus the merge), and each run fans out to 30 jobs with a fresh checkout. That is 120 checkouts per merge, or 480,000 a day.
- A full clone is 3 GB.
| Checkout strategy | Data per job | Per day |
|---|---|---|
| Full clone every job | 3 GB | 1.44 PB |
| Partial clone plus sparse cone | 200 MB | 96 TB |
| Warm local reference repo, fetch only new objects | 20 MB | 9.6 TB |
| Job reads a diff from the API, no checkout | close to 0 | close to 0 |
The first row gets you rate-limited by your git host or hit with a surprise egress bill. The rows below it are plain git and REST features you can use today:
- Partial clone. With
git clone --filter=blob:none, git-clone "will filter out all blobs (file contents) until needed by Git." The partial clone docs warn that it needs the remote to be online, which is the same "always online" bet Scion makes. - Sparse checkout in cone mode. git-sparse-checkout takes a list of directories. Non-cone mode is deprecated. The command is still marked experimental.
- Reference repositories.
--referencesets up alternates so the clone needs "fewer objects to be copied." Keep one warm copy per runner host. - API instead of checkout. GitHub's compare endpoint returns the files changed between two commits and their patches. Lint-the-diff, path routing and risk tagging jobs often need nothing more.
Decision Table
| What you see | Likely cause | First move |
|---|---|---|
| CI checkout time grows with repo age | Full history and blobs on every job | Partial clone, shallow --depth, sparse cone |
| Git host rate limits or egress spikes | Checkout count times clone size | Runner-local reference repo or cache tier |
| Jobs clone only to read a diff | No source control API in the pipeline | Compare API, path filters |
| Merge queue always red or backlogged | One serial lane for all merges | Raise build concurrency and group size |
| Main breaks after green merges | Combined changes never tested together | Post-merge tests plus a pre-deploy gate |
| Mirror disks or memory full | Repo outgrew the mirror design | Measure first; this is Scion territory |
Checklist Before Agents Multiply Your Merges
- Track checkouts per day and bytes per checkout as two separate metrics. Agents move the first one.
- Make full clones the exception in CI. Default to partial plus sparse, and opt in to full history.
- Put a cache between runners and the git host, and alert on its hit rate.
- Give jobs an API path for diffs and file reads so they skip the checkout.
- Tune the merge queue before you remove it. If you remove it, ship the post-merge and pre-deploy gates first.
- Treat a broken main as an incident, with an owner, a revert path and a postmortem.
For faster pipelines at normal scale, see our GitHub Actions performance tips.
When the Breakage Reaches Production
At 30,000 merges a day, "what changed?" is the first question of every incident, and the hardest one to answer by hand. The Akmatori architecture docs make that check a fixed step: for every incident, the agent searches runbooks, then cross-incident memory, then recent change events, and only then calls infrastructure tools. The Gitea connector lets the agent read a pull request, its changed files and diffs, with an optional repository allowlist. Posting comments stays off until you allow it.
Conclusion
Anthropic's numbers show what happens when agents write the code. Merge rate, checkout count and repository size all grow together, and git's decentralized design pays for that in mirrors and packfiles. Most teams do not need a new version control system. They need fewer full clones, a cache, an API path for CI and a merge strategy that matches their merge rate, before the agents get there first.
If your team wants AI-assisted incident workflows on your own infrastructure, Akmatori helps SRE teams investigate alerts, coordinate response, and automate safe infrastructure actions. Powered by Gcore for global infrastructure reliability.
