← writings

When 30,000 merges a day breaks git

Last week Anthropic's engineering team published a post called Redesigning source control at Anthropic. The short version: the tool that stores their code stopped keeping up with how fast their AI was writing code, so seven people built a replacement from scratch and moved the whole company onto it in five months.

I read it twice. The first time, as an engineer, for the design. The second time for a different reason. The post is written as "here's an unusual problem we had." I think it's a preview. Any company that lets AI agents write a lot of code is going to walk into the same wall, in the same order, just later. So this is my attempt to explain what happened in plain English, and then to describe what it will look like when it arrives at a normal company.

One disclosure up front. I work on Drums, which is about sharing one computer across many AI agents at once, so the sentence in the post I underlined was "the bottleneck, now, is all of the developer infrastructure built for human scale." That's my whole job. Read my enthusiasm with that in mind.

The numbers that started it

A "merge" is the moment a finished change gets added to the official copy of the code. Think of it as a page being accepted into the company's master binder. In May 2026, Anthropic was accepting about 2,500 of those a day. By September, it was over 30,000 a day. Twelve times more in four months.

A line chart of merges per day from January to September 2026. Two labelled points: about 2,500 per day in May and over 30,000 per day in September. The curve rises slowly, then steeply. 0 10k 20k 30k Jan Mar May Jul Sep ~2,500 / day 30,000+ / day redrawn from the post's chart; only the two labelled points are reported numbers
Changes merged into Anthropic's main code repository per day, 2026. The shape is theirs; the two numbers are the only ones they state.

The post says something about that curve that I think is the most important sentence in it: "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." In other words, the curve isn't going to flatten on its own. Whatever is slowest is what sets the pace, and when you fix it, the next slowest thing takes over.

For them, the slowest thing became git.

A quick vocabulary

I'll use a handful of terms over and over. Here they are once, with the everyday version.

Source control is the system that stores every version of a company's code and remembers who changed what, when. The storage itself is a repository, or repo. A monorepo is when a company keeps all of its code in one giant repo instead of many small ones. Google, Meta, and now Anthropic do this.

A commit is one saved change with a note attached: "fixed the login bug." A merge is when a commit is accepted into the main line. A branch is a named line of work off to the side; a ref is the general term for any named pointer to a commit, and "main" is the most important one.

A checkout is getting a working copy of the files onto a disk so a person or a program can read and run them. A clone is a full copy of the whole repo, history and all. CI (continuous integration) is the automated testing that runs on every change, and every one of those test runs starts by checking the code out.

Blame is the question "who last changed this line, and in which commit?" It's one of the most common things engineers and tools ask a repo. A mirror is a copy of the repo kept nearby to take load off the original. A cache is a copy of something kept close so you don't have to go and fetch it again.

Git's design, and why it was perfect until it wasn't

Git was built by Linus Torvalds for the Linux kernel, and its central idea is that every copy is a complete copy. When you clone a git repo, you get all of the history, every version of every file, on your own machine. You can look up blame, compare versions, and switch between any two points in history with the network unplugged. There is no boss server. Any copy can act as the source for any other.

The analogy I keep coming back to: git is a library where every reader carries a full photocopy of every book, including every past edition. It sounds absurd, but it's wonderful. You never wait for the librarian. You can read on a plane. And for the vast majority of projects, where the whole library fits in a backpack, it's the right design. That's a large part of why git won.

Left: the git model, five identical large boxes, each a complete copy of the repository, connected to each other. Right: the Scion model, one server box in the middle holding the repository, with five small client boxes around it that each hold only a thin cache. git: every copy is complete Scion: one server, thin clients full repo 100 GB history full repo 100 GB history full repo 100 GB history full repo 100 GB history full repo 100 GB history any copy can serve any other works offline; every copy pays full price Scion server holds the repo client client client client client clients keep a small cache and ask for the rest needs a network; each client pays for what it reads
The two models. Git's symmetry is a feature when copies are small and readers are offline. Scion drops both assumptions.

Now scale the library. The history of Anthropic's main branch alone is almost 100 GB. A compressed working copy of the current files is over 25 GB. And they check code out on the order of 25 million times a day for CI, before counting developer machines, agent sandboxes, and research jobs. If each of those checkouts fetched the repo the naive way, that would be over 600 petabytes of traffic a day. A petabyte is a thousand terabytes. Nobody's network does that.

So, like every big company before them, they did what git lets you do. Git has features for grabbing only a slice: shallow clones (skip the old history), sparse checkouts (skip the folders you don't need), and promisor remotes (fetch file contents lazily). Around those, the industry has standard tricks: run internal mirrors so the original server isn't hammered, and keep a pre-built snapshot of the repo, called a seed, in blob storage so a new job can start from a recent copy instead of from zero.

The typical setup for scaling git. One origin server at the top. Below it, a row of many git mirrors. Below that, a seed snapshot in blob storage. At the bottom, thousands of CI jobs, each pulling a seed and then fetching the difference from a mirror. Red callouts mark the strain points: mirrors outgrow their disks, seeds drift behind main, and partial clones break history operations. origin git server mirror mirror mirror mirror mirror … several hundred seed snapshot in blob storage, refreshed hourly-ish ~25 million CI checkouts a day: copy seed, then fetch the gap from a mirror outgrow disk + RAM seed drifts behind main diff and blame get fragile on partial copies
The standard way to scale git, and the three places it strained for Anthropic as the merge rate climbed.

At their peak they ran several hundred internal git mirrors. It worked, in the sense that the lights stayed on. But each fix was buying time rather than solving anything. Seeds fell further behind the tip of main between refreshes, because main was moving faster. The mirrors outgrew their disks and memory. And the operations that need history, like diff and blame, took more and more care to keep working on copies that had deliberately left history out.

Then they noticed something that, in hindsight, is obvious. They were using git the way everyone uses it in a company: one authoritative copy that everyone pulls from and pushes to. A centralized system. But git's entire design pays for a decentralized, offline world. And almost none of their clients were offline. They were agents and CI jobs, which are online by definition. The thing that makes git great was, for them, pure overhead.

So they asked: if you designed source control knowing that every client is always online, what would it look like?

Scion, in one library

The answer is a system they call Scion. Here's the same library analogy, redrawn.

There is one library. It has a front desk you can phone. You never carry the whole collection; you keep a small shelf of the pages you're actually reading, and when you need a page you don't have, you ask for it by its exact catalogue number and it's sent over. Want to know who last edited a line? You don't re-read the book. You phone the desk, and the desk keeps index cards for exactly that question. Want to add a page? You hand it to the desk and it's in the binder instantly, for everyone, with nothing to "push."

That's really most of it. Google's internal system, Piper, and Meta's Sapling (specifically its server, Mononoke, with a data model called Bonsai) got there first, and the post credits them. Scion is Anthropic's version, built with those lessons in hand. Let me go through the pieces that make it work.

Six principles

Six cards in a two-by-three grid, one per Scion principle: clients are always online; the client is thin and the server is smart; everything is available as an API; everything scales horizontally; commits are cheap and lock-free; the working copy is optional and sparse. 1. always online clients are agents and jobs, not laptops on planes. design for a server that is always reachable. 2. thin client, smart server the server does history, blame, merges, rebases, commits. the client lays out files and keeps a small cache. 3. everything is an API any question the client can ask, a tool can ask too. many jobs never need a local copy at all. 4. scale sideways data is spread out; every part can be multiplied. no full copy of the repo exists anywhere, even on the server. 5. cheap, lock-free commits a commit costs what the change costs, not what the repo costs. nothing to push. few branches, by design. 6. files only if needed many jobs skip the checkout entirely. when files are needed, fetch only the folders and pages actually read.
The six principles from the post, compressed. Each one is a git assumption, flipped.

Two of these deserve a second look, because they're where the real leverage is.

Everything is an API. With git, if a tool wants to know "which of these two commits came first" or "who last changed line 40," it has to have its own copy of the repo, or hope the hosting vendor has an endpoint for it. In Scion, every question the client knows how to ask is also a question any program can ask over the network. The post says their automated bisect (find the commit that broke something) and automated revert pipelines wouldn't be practical at scale without this. Once source control is a service, a lot of jobs don't need files on disk at all.

Commits must cost what the change costs. In git you commit on your machine and then push. In Scion the commit happens on the server, so there's no push. But that means the server has to accept 30,000 of them a day without falling over, and the cost of each one has to scale with the size of the change, not the size of the repo. This principle shapes the data structure, which is the next section.

The changeset

A git commit points at a snapshot of the whole tree of files. It's clever about sharing unchanged parts, but conceptually, every commit says "here is what the entire project looks like now." A Scion changeset says something smaller: "here are the files I changed, compared to my parent, and here is where to find each one's new contents." It's an entry in a write-ahead log, which is just a list you append to and never rewrite, the way a bank ledger works.

Left: a git commit box with an arrow to a tree box, which fans out into many folder and file boxes, meaning a commit references the whole project. Right: a Scion changeset box listing three changed files, each with an arrow to a small blob box in blob storage, labelled with a content hash. git commit Scion changeset commit points at the whole tree root tree folder folder folder files… files… files… "this is what everything looks like now" changeset author, message, parent auth/login.py → a91f… auth/tests.py → 7c02… README.md → e3b0… only what changed vs. parent blob a91f… blob 7c02… blob e3b0… blob storage "here is what I changed, and where each new version lives" cost scales with the change
A commit describes the whole project. A changeset describes the delta, with content-addressed pointers to the file contents.

Those pointers are "content-addressed," which is a phrase worth one sentence. It means a file's address is a fingerprint of its contents. If two files are byte-for-byte identical, they have the same address, and a file at a given address can never change, because changing it would change its address. This matters enormously for caching: if nothing at an address ever changes, any server anywhere can keep a copy without checking with anyone.

Because a changeset is just an appended entry plus some pointers, the server can accept them at very high throughput. No compressed bundles to unpack, no locks, no servers coordinating with each other. Branches are the one thing every server would have to agree on, which is why Scion discourages them except for main and release branches; moving one is a single compare-and-swap on one row in Spanner, Google's distributed database, done separately from creating changesets. (Compare-and-swap means "set this to B, but only if it's still A," which is how you let many writers race without anyone's write getting silently lost.)

Derived data: the index cards

There's a catch with a log of deltas. On its own it can't quickly answer "who last touched this line?" or "which commits changed this file?" You'd have to read the whole log backwards. So Scion builds extra structures from the changesets: a blame index, a path history, skip lists over the commit graph for fast ancestry questions. The post calls all of this "derived data," and the clever part is that every type is defined recursively: its value for a changeset is computed from its values for that changeset's parents. Add a changeset, update the cards for just that changeset.

A chain of four changesets along the top, each pointing to the next. Below, three derived data structures: a blame index, a path history, and ancestry skip lists. Arrows show each derived value for the newest changeset computed from the parent's value plus the new changeset. A note says new types can be added without changing the client. changeset 1 changeset 2 changeset 3 changeset 4 new derived data (the index cards) blame index path history ancestry skip lists value at cs 3 value at cs 3 value at cs 3 value at cs 4 value at cs 4 value at cs 4 … … … parent's value + new changeset = new value
Derived data is computed per changeset from the parents' values, so adding one changeset means updating one set of cards, not rebuilding the catalogue.

Three nice things fall out of this. New kinds of cards can be added whenever a new question becomes common (they've added indices for copy detection and path-based search). Each kind can be computed eagerly or lazily, so they don't build cards nobody reads. And the client never sees the cards' internals, so they can be reshaped without touching the client.

Getting files onto a disk

Answering questions is the easy half. The expensive half is putting actual files on an actual disk, 25 million times a day. This is where Scion's fetch protocol diverges most from git's.

When git fetches, the conversation is roughly: "here is everything I already have; send me what I'm missing." The server has to figure out the difference, compress it into a single bundle called a packfile, and stream it. That's a lot of work per request, and the answer is custom to each client, so it's hard to cache. Scion flips the direction. The client says "give me this exact tree," gets it, looks at which sub-trees it lacks, asks for those, and repeats down to the individual file blobs. Every request is for one fixed, content-addressed object. Any cache anywhere can answer it. There's no multi-gigabyte response to resume if the network hiccups. And a sparse or virtualized checkout needs no special support: the client just doesn't ask for the trees it doesn't want.

Left: git negotiation. Client sends 'here is what I have', server computes a custom packfile and streams one big bundle back. Right: Scion. Client asks for root tree, then for the specific sub-trees it is missing, then for specific blobs, each a small cacheable request; trees it does not need are never requested. git fetch Scion fetch client server "here's what I have" one custom packfile, GBs server computes the diff per client answer is unique, so hard to cache one big response, hard to resume client any cache "tree 9f3a?" "trees c1d2, 44e0?" … "blob a91f?" root wanted skipped blob blob every request names one fixed object, so any cache can answer it small, resumable sparse = just don't ask git negotiates about what you have. Scion asks for exactly what you want.
The direction of the conversation is the whole difference. One is bespoke per client; the other is a stream of identical, cacheable questions.

Because every request is cacheable, the serving side becomes a classic tiered cache, like a CDN for code. On each machine, a daemon called scion-daemon holds objects for every job on that machine, since jobs on the same box mostly want the same files. It starts from a periodically refreshed snapshot and then only talks to the regional cache servers, scion-cache, which stream objects straight from memory in the format the daemon wants on disk. Only when a regional cache is missing something does it ask the authoritative scion-servers, which read from Spanner or cloud storage.

Four tiers stacked vertically. Bottom: many CI jobs on one node share a scion-daemon. Above: a regional scion-cache. Above: the authoritative scion-server fleet. Top: Spanner and cloud storage. Each tier reports over 99 percent cache hit rate, and arrows only go one tier up, never skipping. Spanner + cloud storage the only durable copy, spread out scion-server authoritative; also computes derived data >99% hit scion-cache (one per region) streams objects from memory, disk-ready >99% hit scion-daemon (one per machine) >99% hit CI job CI job agent research … same RPCs at every tier tiers never skip a level
The checkout path. Every tier speaks the same protocol, and each one answers over 99% of what it's asked, so very little reaches the top.

All three tiers answer the same requests, so the client doesn't need to know the shape of the cache. In principle any tier could talk to any other, but they enforce the strict ladder on purpose, so that a broken regional cache can't stampede the authoritative servers and take everything down. None of the tiers need long-lived state, so adding capacity is just adding machines.

What it bought them

Five tiles with the headline numbers: infrastructure footprint 200 times smaller in CPU and memory; checkouts about 100 times faster, seconds instead of minutes; CI got back 25 percent of its CPU capacity; a team of seven people; five months from start to full migration. 200× smaller footprint (CPU + memory) ~100× checkouts in seconds, not minutes 25% of CI CPU capacity freed 7 people built Scion and Antique 5 months to full migration off git
The headline results, as reported in the post. The bottom two are the ones I'd have called impossible a year ago.

The infrastructure is 200 times smaller than the git mirror fleet it replaced, measured in CPU and memory. Checkouts for CI and research went from minutes to seconds. CI alone got back a quarter of its CPU capacity, which had been spent waiting on git. And nobody has to do repository maintenance anymore, because there are no packfiles to repack.

Then there's the part of the post that's about how it got built, which I found as interesting as the system. Seven people built Scion, plus Antique (their code review tool), plus half a dozen related systems, and migrated the whole company, in five months, while the merge rate went up 10x underneath them. A migration like this used to take a company years. The post is candid that Claude wrote most of the code: every engineer on the team would now rate the model as a better coder than themselves. One anecdote: they'd hand-written the first version of the pipeline that imports git history into Scion, were pleased with it, then asked an early Claude Mythos Preview to rewrite it with no further instructions. It came back using 20x less memory and running 4x faster, with all the subtle ordering rules intact.

But the engineers' role didn't disappear; it moved. The post's phrase is that very often their job was to tell the model "no." Agents will cheerfully satisfy a pattern that should never have existed, like linearly scanning the whole commit log to find when a change merged instead of asking the review tool. Adversarial review, where one model critiques another's code, caught a lot, but it also got myopic and defensive, and humans had to steer it away from over-engineering for hypothetical risks. The team still reviews every change, but they review the intent now, not every line.

My favorite detail is the "superfans." They set up Slack channels where a Claude is tasked with obsessing over the health of a single component (one for scion-daemon, one for scion-cache, one for the Antique merge queue, and so on), with access to the telemetry and logs, acting like an experienced engineer with nothing better to do than refresh dashboards and look for anything odd. They still have ordinary alerts. The superfans find the subtle, novel stuff the alerts can't describe in advance.

Why this is coming to your company

Here's the argument. Anthropic is unusual in two ways the post is honest about: they use their own model to write code more than anyone, and they're willing to spend far more on tokens internally than any normal business would. So they hit the wall first. But nothing about the wall is specific to them. It's a function of one number: how many changes per day your organization merges. And that number is about to go up everywhere, for the same reason it went up for them. Once code is cheap, the demand for merging it is effectively unlimited.

What makes this sneaky is that it arrives slowly and then suddenly. Every step has a workaround, and every workaround works for a while. Here's the staircase as I'd expect to see it at a company that's two or three years behind.

A staircase rising from bottom-left to top-right with seven steps: more agents, more merges, a bigger repo, mirrors and seeds, waiting on checkouts, CI waiting, the merge queue locks up, then a wall. Each step carries a one-line early warning sign. more agents more merges bigger repo mirrors, seeds checkout wait CI wait queue locks "we gave every dev three agents" PRs per day doubles, twice clone times creep up seeds drift behind main jobs wait on git, not tests tests pass, then main has moved conflicts land faster than humans triage each step has a workaround that works, until the next step the wall
The staircase. Anthropic climbed it in about a year. The early signs are mundane enough to ignore, which is the problem.

How you'll see it coming

The signs are boring, which is why they get missed. Roughly in order:

  • Clone and checkout times creep up. Nobody files a ticket for "the clone took 40 seconds longer than last quarter." But CI starts every job with a checkout, so a slow checkout is a tax on everything, paid thousands of times a day.
  • Someone stands up a mirror. Then a second. Then a cron job to refresh a seed. Each one is a reasonable, local fix. Count them. When the count is in the dozens, you're on the staircase.
  • The seed is always a bit stale. Jobs start from a snapshot and then fetch the gap. When main moves fast enough, the gap is big every time, and the snapshot stops saving much.
  • History questions get flaky. Blame, diff against merge base, "which commit introduced this" all assume history is present. Shallow and sparse copies left it out on purpose. Tools start special-casing.
  • CI is waiting on git, not tests. Look at where CI minutes actually go. Anthropic got a quarter of its CI capacity back just by making checkouts cheap, which tells you how much was being spent on them.
  • The merge queue becomes the bottleneck. The standard merge queue takes a global lock: test one change against the current main, merge it, next. That serializes everything. When hundreds of changes are ready at once, the queue is where the day goes.
  • Conflicts land faster than humans can look at them. This is the top step. The post describes giving up on the global lock entirely, accepting that concurrent changes will sometimes conflict, and letting the model fix the conflicts faster than a person could even find them.

And source control is just the first wall, because it's the one every change touches. The same curve is heading for builds (how many times a day do you compile the world?), for CI (what does "tests passed" even mean when a thousand changes merged while they ran?), and for code review (humans can't read 30,000 diffs a day; Anthropic's review tool can tell a comment-only change from a logic change so humans only look at the consequential ones). The post says they're "completely rethinking their priors" on all of it, and I believe them.

What a normal git shop can do now

The honest answer from the post is: don't adopt Scion. They say so directly. It only makes sense for truly enormous monorepos with tens of thousands of engineers or swarms of agents, it requires replacing review, search, and CI alongside it, and their versions of those are bespoke. Trying to productize it for everyone would probably produce something useful to no one.

What they suggest instead is applying the ideas to git without leaving git, and the ideas transfer better than you'd think:

  • A git server doesn't have to be built like a git client. The protocol is the contract; the server behind it can be a tiered, content-addressed cache that never holds a full repo in one place. That's an architectural choice available to anyone running their own forge.
  • Expose source control as a service. Blame, ancestry, diff, merge base, over an API, so CI and tools can ask instead of clone. The post floats the idea of standardizing such RPCs across GitHub, GitLab and the rest, so the git client itself could learn to use them.
  • Make sparse and shallow compose. Git's slicing features exist but fight each other. The protocol doesn't have to look like it does today; a "give me exactly this object" style negotiation is cache-friendly in a way "here's what I have" can never be.
  • Move testing after the merge. If a global merge-queue lock no longer fits, invest in post-merge and pre-deploy testing instead, and in fast automated bisect and revert so a bad change is found and undone quickly. Anthropic's bisect and revert pipelines are exactly what their API-first design made cheap.
  • Count your workarounds. Mirrors, seeds, special-cased history tools. They're the instrumentation. The number tells you where you are on the staircase.

Where I sit

I'll be upfront about why this post hit me the way it did. I spend my days on the same shape of problem one layer down. Drums is about letting many AI agents share one computer at once, the operating system, the apps, the memory, without their changes bleeding into each other. The reason that's worth doing is exactly the reason Anthropic gave for Scion: when agents do the work, the infrastructure built for humans becomes the limit. Source control was built assuming a person commits a few times a day from a laptop. Virtual machines were built assuming a person sits in front of one. Both assumptions are quietly expiring.

So I'm biased toward seeing this as a general trend rather than a one-off. Discount accordingly. But I don't think I'm wrong about the direction, and the post itself expects "this class of problems will become more commonplace over the next six to 12 months."

What to watch

I'm not going to predict who builds what. Here's what I'd keep an eye on instead.

  • Whether GitHub and GitLab ship server-side history APIs rich enough that CI can stop cloning. The post explicitly invites that partnership. If it happens, it's the easiest win for everyone else.
  • Merges per day as a published metric. Anthropic went from 2,500 to 30,000 in four months. The first time another company says a number like that, look at what broke.
  • The merge queue debate. "Lock the queue and test one at a time" versus "merge concurrently, test after, revert fast." The second needs tooling that barely exists outside a few companies.
  • Who else gives up on a full working copy. Sparse and virtualized checkouts are the quiet change here. When they become the default rather than the expert option, the always-online model has won.
  • Whether the team-of-seven story repeats. If a handful of people with a strong model can replace a company's source control in five months, a lot of "we could never migrate off that" infrastructure just became movable.

The post ends by acknowledging that the git community has spent nearly two decades scaling git for millions of developers, and that their contribution is narrower: an early look at what happens when the developers are agents. I think that's the right framing. Git isn't wrong. It was built for a world where the slow part was the human. That world is ending faster than the tools expected.

Source

Nick G. and the Anthropic source control team, Redesigning source control at Anthropic, Engineering at Anthropic, published October 13, 2026, updated October 15. Every number in this essay is theirs; the diagrams are mine, redrawn from their descriptions.

← more writings