AI Infrastructure
Anthropic Swaps Git for Scion, a Server-Centric Source Control Built for AI Workloads
To manage explosive growth in code merges and CI operations, Anthropic redesigned how repositories work, moving complexity from developers' machines to the cloud.
InfoQ
Anthropic has migrated its massive monorepo away from Git to Scion, a custom source control system that fundamentally rethinks how repositories operate. Rather than keeping full repository state on developers' machines, Scion pushes commits, merges, and history queries to servers while clients work with lightweight, on-demand file materialisation.
The shift stems from sheer scale. Anthropic's merged commits skyrocketed from roughly 2,500 per day in May to over 30,000 by September—a 12-fold jump in just four months. Its continuous integration pipelines now execute around 25 million repository checkouts daily against a monorepo holding nearly 100 GB of main-branch history and working directories exceeding 25 GB. Even with optimisations like shallow clones, sparse checkouts, and hundreds of Git mirrors, the company found Git increasingly unwieldy under that strain.
The Scion Model#
Scion inverts the typical repository architecture. Instead of clients negotiating with each other through packed objects and delta compression, the system treats the server as the source of truth for all repository operations:
- Server-side operations — commits, merges, rebases, blame queries, and history traversal all run on the server
- Immutable object caches — clients maintain bounded caches of blobs and tree data, fetching only what they need
- On-demand materialisation — files are checked out to disk only when tools actually reference them
Changesets in Scion record which files changed relative to a parent, with content-addressed pointers to compressed blobs in cloud storage. This separation of changeset creation from reference updates means accepting new code requires no coordination across servers. For operations like blame and history, Scion computes "derived data"—secondary structures built recursively from parent changesets—either ahead of time or on demand, letting the server evolve query capabilities without pushing updates to every client.
Performance and Infrastructure Gains#
The results Anthropic reports are dramatic for its internal workload:
- Cache efficiency — above 99% hit rates across every tier of the caching layer
- Infrastructure footprint — 200 times smaller CPU and memory usage than its previous Git mirror fleet
- Checkout speed — two orders of magnitude faster for CI and research jobs

