Shallow clones won’t save git at 30,000 merges a day. Neither will several hundred mirrors. Anthropic tried both before it replaced git across its monorepo with an in-house system called Scion.
The engineering team explains why in Redesigning source control at Anthropic. The migration took five months. The post reached the Hacker News front page and pulled over 900 comments.
Table of Contents
- What broke when merges hit 30,000 a day
- Why shallow clones and sparse checkouts weren’t enough
- Why several hundred git mirrors only bought time
- How Scion works: the server does the work
- Is replacing git even necessary?
- What to watch before your repo hits the same wall
- FAQ
- Sources
What broke when merges hit 30,000 a day
Git handled Anthropic’s commit volume fine in May. By September it couldn’t.
In May 2026, Anthropic averaged about 2,500 code changes merged per day. By September, that number passed 30,000, and the company doesn’t expect growth to slow. The main branch’s history alone runs to almost 100GB. A compressed working copy is over 25GB. CI performs around 25 million checkouts a day. Fetched the normal way, that’s over 600 petabytes of git traffic daily.
Why shallow clones and sparse checkouts weren’t enough
Anthropic didn’t jump straight to a replacement. It tried the standard playbook first: shallow clones, sparse checkouts and promisor remotes.
These trim what each checkout pulls. They leave git’s core assumption in place, and Anthropic frames that assumption as the root issue. Git assumes clients work offline and need a full local copy. Anthropic’s clients are almost entirely agents and automated jobs, which are online by definition. The property that makes git excellent for distributed, offline work was working against the company as the repo grew.
Why several hundred git mirrors only bought time
The next step was spreading the load. At peak, Anthropic ran several hundred internal git mirrors.
The mirrors bought time. They got harder to run as the merge rate kept climbing.
How Scion works: the server does the work
Scion flips git’s central assumption. Clients are always online, so the server does the work. In git, every clone can compute diffs, read history and create commits on its own. In Scion, the server handles commits, merges, rebases and history queries. The client keeps only a bounded local cache and lays out files on disk.
A few design choices follow from that:
- Commits happen server-side and are available everywhere instantly.
- There are no packfiles to accept and no local git-style repository maintenance.
- Checkouts are sparse and virtualized by default.
- A CI job that needs a diff between two commits asks the server instead of materializing a full working copy.
One detail from the article stands out. Early on, a human-written prototype of the git-to-Scion ingestion pipeline went to an internal preview of a newer Claude model. The instruction was to rewrite it, with no further guidance. The result used 20 times less memory and ran four times faster, with the same ordering guarantees.
Anthropic is upfront that this has prior art. Google built Piper for the same reason years ago. Meta built Sapling. Both are centralized, server-backed systems built on the observation Anthropic reached independently. Once a monorepo and its traffic outgrow a distributed, offline-first design, you want a central server. It holds the truth, and clients ask it questions.
That’s the story underneath the AI framing. Coding agents running constantly, merging tens of thousands of times a day, are a new kind of client. They pushed a company into a scaling problem giant human-scale engineering orgs had already solved. The fix looks a lot like theirs. The trigger changed. The shape of the fix didn’t.
Git keeps getting these pressure tests. I covered a smaller one in what Git 3.0’s SHA-256 migration gets wrong about real attacks. That debate was about whether a breaking change’s cost matched the threat it defended against. Anthropic’s case asks the same question at a different scale: does the pain justify the rewrite?
Is replacing git even necessary?
The strongest objection in the discussion targets Scion itself. The article doesn’t convincingly show that git itself couldn’t handle the workload, one developer argued. There’s a long way between “stock git” and “build your own version control system from zero.” If you’re an investor, they asked, why want your team spending months reinventing source control instead of shipping product?
A sharper thread questioned the 30,000-merges-a-day number itself. Commenters asked what kind of churn actually needs that volume, and whether it reflects lasting work. Anthropic’s own explanation: “the latent demand for merging code is practically infinite, and every bottleneck we remove immediately leads to a further increase in the amount of code we produce.”
Other companies will likely chase this pattern out of FOMO, one commenter warned. They’d assume they need Anthropic-scale infrastructure without Anthropic’s scale or its unusual incentives. As the post notes, its “ability to spend tokens for internal use far exceeds what any other business would realistically want to spend.”
Another thread was about what this does to engineering as a job. One commenter quoted the article: very often, the role of the engineers building Scion was to tell Claude “no.” A developer who’s used recent Claude models agreed that’s become a real pattern. The model proposes a valid but unlikely fix for an edge case. Left unchecked, it will happily triple the codebase and cut performance tenfold chasing it.
It’s the same review burden I wrote about when an AI-assisted chat protocol quietly reinvented half of XMPP. The agent moves fast toward a plausible answer. A human still has to know enough to catch the wrong one.
What to watch before your repo hits the same wall
Anthropic says this plainly, and I’d take it seriously: Scion isn’t a general git replacement and doesn’t try to be. It fixes a specific kind of pain. Picture a monorepo with tens of thousands of engineers and agents, checked out tens of millions of times a day. That’s where git’s offline-first design stops paying for itself. If that’s not your workload, replacing git is almost certainly the wrong move.
Watch for the earlier signals instead:
- Mirrors that get harder to keep in sync.
- CI that gets slower every quarter.
- Diff and blame operations that degrade on partial clones.
Anthropic ran several hundred git mirrors before it built anything new. The warning signs showed up long before the rewrite did. If your team sees the early version of that pattern, notice the bottleneck before it becomes the whole roadmap.
FAQ
Did Anthropic actually stop using git?
Yes, for its main monorepo. Anthropic migrated fully from git to Scion, an in-house version control system, over about five months. It also built a new code review tool (Antique), code search, and a source-control access control system.
Why couldn’t Anthropic just keep using git with better tooling?
It tried. Anthropic used shallow clones, sparse checkouts and promisor remotes, and at peak ran several hundred internal git mirrors. These bought time but got harder to operate as merge volume grew. It went from about 2,500 to over 30,000 changes a day between May and September 2026.
Does this mean other companies should replace git too?
Almost certainly not, and Anthropic says so directly. Scion is built for huge monorepos with tens of thousands of engineers and AI agents. It isn’t a general-purpose git replacement. Developers in the Hacker News discussion warned this kind of migration mainly makes sense at Anthropic’s unusual scale.
Sources
- Article: Redesigning source control at Anthropic, Anthropic Engineering.
- Discussion: Hacker News thread, for the counterpoints on whether this was necessary, the FOMO warning for smaller teams, and the discussion of what it means for engineers to review AI-written code at this volume.