Anthropic's Scion: The In-House Version Control System That Replaced Git for a 30,000-Merge-a-Day Monorepo
Anthropic replaced git with an in-house version control system called Scion, migrating its entire monorepo in five months, because AI agents pushed its merge rate from roughly 2,500 code changes per day in May 2026 to over 30,000 per day in September 2026. The company detailed the redesign in an engineering post published on 2026-10-13, and the Hacker News discussion that followed (827 points, 883 comments) split between admiration for the five-month migration and skepticism about whether the workload justifies abandoning git.
The post's central claim is that coding is no longer Anthropic's bottleneck. "Claude is able to autonomously iterate on research loops, micro-optimize complex programs, and build new services from the ground up at a speed and scale we haven't seen before," the authors write. "The bottleneck, now, is all of the developer infrastructure built for human scale: source control, builds, and CI."
Why git stopped scaling for Anthropic's monorepo
Anthropic's monorepo outgrew git's decentralized design because almost all of its clients are always-online agents and jobs, not offline human developers. Git assumes every clone is a complete, self-contained repository that can compute diffs, read history and blame, and check out any revision while fully offline.
The concrete numbers Anthropic cites:
- The history of the main branch alone is almost 100 GB.
- A compressed working copy is over 25 GB.
- The company performs on the order of 25 million code checkouts per day for CI, before counting developer environments, agent sandboxes, and research jobs.
- Fetched naively, that would be over 600 PB of git traffic per day.
Anthropic used the standard workarounds — shallow clones, sparse checkouts, promisor remotes, internal git mirrors, and repository snapshots (seeds) in blob storage. At peak it operated several hundred internal git mirrors. Those mirrors became harder to run as the merge rate rose: seeds fell further from the tip of main between refreshes, and history-dependent operations like diff and blame became fragile on partial clones.
The post frames the mismatch bluntly: "we were using git as a centralized system with one authoritative copy, but nearly all of our clients were agents and jobs that are online by definition. The properties that make git excellent for distributed, offline work were actively undermining our ability to scale as the repo grew."
Scion's six design principles
Scion was designed around assumptions that invert git's. Anthropic credits prior art from Google's Piper and Meta's Sapling as informing the design.
- Clients are always online. Scion's client and protocols assume a server that is always reachable, and clients fetch data when they need it.
- Client-server asymmetry. In git, every client can be a full-fledged server. In Scion, the server answers questions about file history and blame, creates commits, and performs merges and rebases, while the client keeps a bounded local object cache and lays out working-copy files on disk.
- A comprehensive service powers novel applications. Every source control query the client uses is also exposed via API, so jobs often need no local repository at all. Anthropic says its automated bisect and revert pipelines would not be practical at scale without this.
- Everything must be horizontally scalable. There is no fully materialized copy of the repository anywhere, even on the server, and no equivalent of git packfiles, so no repository maintenance is needed.
- Commits must be cheap, incremental, and lock-free. Every commit, rebase, or merge happens on the server, so the cost of creating a commit must scale with the size of the change, not the size of the repo. Scion discourages refs — global state every server must agree on — except for the main ref or release branches.
- The working copy is optional and sparse by design. Scion's protocol centers on sparse checkouts and virtualized checkouts that materialize files on demand, so a job only pays for what it actually reads.
How Scion works: changesets and derived data
Scion's unit of work is a "changeset," an entry in a write-ahead log. Where a git commit stores a pointer to a tree, a changeset stores a list of the files that changed relative to its first parent, plus content-addressed pointers to compressed file contents in blob storage. Changesets are created server-side and are available everywhere instantly.
Because a changeset records only what changed, it cannot by itself answer questions like who last edited a line. Scion therefore builds additional structures — file blame, path history, and skip lists for the commit graph — which Anthropic calls "derived data." Each type is defined recursively, so its value for a changeset is computed from its values for that changeset's parents. This lets Anthropic add new derived data types without changing the client, and choose per type whether to compute eagerly or defer.
Scion's scn client deviates from git's fetch protocol: negotiation does not tell the server what the client already has. Instead, starting from a root tree, the client checks its local store for missing trees and requests them recursively, then repeats for blobs. Every request is for a specific immutable object, so any cache can answer it, and the process is resumable because there is no single multi-gigabyte packfile response.
The three-tier checkout architecture
Scion's checkout path has three tiers, all responding to identical RPCs so the client does not need to know the cache topology:
- scion-daemon runs on each node, stores objects for the whole node, and starts from a periodically refreshed snapshot.
- scion-cache servers in each region stream objects directly from memory in the disk format the daemon consumes, avoiding delta compression and missing-object computation.
- scion-server is the authoritative tier, reading from Spanner or cloud storage as needed.
Anthropic says it strictly enforces the tiering to isolate failure domains, specifically to avoid a regional cache failure overwhelming the upstream servers. Each tier maintains a cache hit rate above 99% and requires no long-lived state.
Measured results
Anthropic reports the following outcomes from the migration:
- Scion's infrastructure footprint is 200x smaller than the previous git mirroring infrastructure in CPU and memory requirements.
- CI and research jobs check out code two orders of magnitude faster — seconds rather than minutes.
- CI alone realized a 25% CPU capacity win.
- Neither clients nor caches need repository maintenance.
A team of seven people built both Scion and Antique, Anthropic's code review tool, plus half a dozen related systems, and fully migrated in five months — while the volume of code merged per day increased 10x.
What Anthropic says it learned
Rapid development with small teams will become more common. Anthropic argues that a source control system like this would previously have taken years of iterative migration and many more engineers.
Engineers are no less valuable, but their work is changing. The post states that all engineers who worked on the system would now rate Claude as better at writing code than them, but that engineers supplied the understanding of high-level inter-system components and design tradeoffs. "Very often, we found that the role of the engineers was to tell Claude 'no,'" the authors write, citing systems that tried to brute-force merge lookups by linearly reading the commit log, and adversarial reviews that pushed Claude into over-engineering. Team members still review every change request, but now examine the intent of the change rather than reading every line.
Optimization and quality improved substantially. Anthropic calls Scion among the most well-tested codebases it has worked on, with hermetic simulations of infrastructure interactions, fuzzing, and rate limiting. It also cites an algorithmic optimization to ancestry queries that Claude found — one that had missed an index — which the post says would have taken an expert days or weeks.
A prototype rewrite by Claude Mythos Preview. Anthropic had largely handwritten the first git-to-Scion ingestion pipeline. "We asked it to rewrite the whole thing, and with no further instructions, it produced a version that consumed 20x less memory and was 4x faster, while preserving all of the implicit invariants around ingestion ordering and data structures."
New forms of monorepo security. Scion supports rich access control on repositories and permissions on individual directories, and the review tooling expresses semantic constraints on approvals to separate comment-only changes from sensitive logical changes.
"Superfans" for operations. Anthropic uses Claude Tag to run Slack channels where a Claude instance is tasked with obsessively monitoring one component's health — a scion-daemon superfan, a scion-cache superfan, an Antique merge queue superfan. The post says these detect subtle issues that traditional alerts miss.
Rethinking the merge queue. Anthropic says a proper merge queue does not make much sense at agent scale and that it has not been able to replicate a global repository lock on the merge queue. It has instead invested in post-merge and pre-deploy automated testing, accepting that concurrent changes can conflict — because "Claude can typically fix these conflicts faster than humans can even identify them."
Anthropic says Scion is not for you
The post is explicit that Scion is not a general git replacement. "The concepts we've outlined here really only make sense for truly enormous monorepos, with either tens of thousands of engineers or swarms of agents prolifically writing code," it states, adding that Anthropic's ability to spend tokens internally "far exceeds what any other business would realistically want to spend."
Anthropic says it will not productize Scion because it diverges significantly from git and would require migrating every piece of the development lifecycle. Instead it suggests applying parts of the design to git: a git server need not work like a git client, git platforms could expose comprehensive server-side RPCs, and the negotiation protocol could change.
What the Hacker News discussion added
The dominant reaction was that Anthropic had reinvented Subversion or Perforce. "So it's a SVN/Perforce style server based VCS with a more modern design. Sounds exactly like Lore from Epic Games but with zero production use outside the company and no support for non text assets," wrote tancop. mijoharas put it more tersely: "So... Anthropic reinvents SVN?"
Several commenters noted that large companies have done this before. apf6 wrote that "a lot of large tech companies (Google, Facebook, Microsoft) have already built their own homegrown SCM... Most interesting thing about Scion is how quickly it was deployed." rcleveng recounted an Oracle colleague's rule that every large company eventually writes its own source control system, then watched Google do the same.
Skepticism focused on whether the workload is real. netburst asked: "If the goal is to write software which solves real problems, how can the demand for code grow infinitely?" frangonf pushed further: if the repo is in constant automated change with no direct human supervision, "then why even have source control?" bob1029 argued the article "doesn't do a very good job of convincing me that git is technically incapable of handling the described workload." colek42 questioned the framing: "Maybe they should have asked, 'Why does our process need to do so many git checkouts?'" altcognito did the arithmetic — "833 checkouts for every merge? That's quite a few."
Review quality at that volume drew repeated doubt. duttish wrote: "Every time I stop reviewing the code from Claude I later find janky crap... how are they avoiding the janky crap?" tetraodonpuffer asked how one reviews 30,000 PRs a day even for intent alone. jareds asked whether Anthropic is shipping production code with no human review.
Open-sourcing was a recurring complaint. nickysielicki: "If they're not going to open source it, why are they telling us this?... They might as well publicize a redesign of their office space." whiplash451 called open-sourcing Scion "the true generous move." liyu1981au framed the shift as a retreat: git's real contribution was that anyone can own the full history of a repo, "and that's the foundation to true open source. Anthropic now? a backward step to a closed garden."
Others saw a market opening. steveklabnik of East River Source Control said the post validates his company's thesis and that it offers a git compatibility bridge so enterprises can migrate gradually. bhouston mentioned git-dedup, a global cache that makes repeated checkouts near-instant. blurbleblurble plugged Pijul for agent collaboration.
simonw correlated the merge-rate chart with Anthropic's public model releases, listing fourteen 2026 releases from Claude Opus 4.6 in February through Claude Haiku 5.5 in October, and guessed that "the uptick in code changes corresponds to the availability of Mythos/Fable-class models inside of Anthropic."
A few commenters pointed at what the post leaves out. armcat argued the redesign is about scale, not semantics, and that the field still needs to rethink "intent," "provenance," and "continuous verification" for agentic development. rao-v noted an unstated benefit: reducing the risk of code exfiltration, since "basically nobody's laptop ever holds much of a buildable codebase." angry_octet predicted the opposite pressure will return: agent isolation requirements will eventually push Anthropic back toward decentralization and federation.
Anthropic's own caveat drew the most agreement. amai quoted it as the tl;dr, and radley called the admission that Anthropic's internal token spend exceeds what any other business would want "my biggest takeaway from the announcement."
Sources
Related
- Dispatch
- Dispatch
- Dispatch
- Dispatch
- Dispatch