Back to articles
Coding AI

Anthropic Rebuilds Source Control for Agent-Heavy Workloads

3 min read

Introduction

Git’s local-first model is powerful when developers work with relatively small teams and repositories. A local clone can handle commits, history queries, and checkouts without depending on a central service. The same model becomes more expensive when thousands of agents, CI jobs, and research tasks repeatedly access the same monolithic repository. Data is transferred, compressed, parsed, and cached again and again, even when many tasks need only a small portion of the tree.

Anthropic has described Scion as a response to that change in workload. It is not merely a Git proxy. The system changes where repository operations run and how repository data is represented.

Key points

  • The workload has expanded sharply. Anthropic says daily merged changes rose from about 2,500 in May to more than 30,000 in September. Its CI system performs roughly 25 million checkouts per day. The monorepo’s history is close to 100 GB, while a compressed working copy is larger than 25 GB.
  • Core operations move server-side. Scion performs commits, merges, rebases, history queries, and blame-style lookups on the server. Clients retain a capacity-limited object cache, while virtualized checkouts materialize files only when they are needed.
  • Changes use content-addressed references. A change set records files changed relative to its first parent and points to compressed file contents in blob storage. Creating a change set is separated from updating references, reducing the need for cross-server coordination when changes are accepted.
  • Caching is part of the repository architecture. A local daemon shares objects across tasks, while regional caches retrieve missing data from authoritative services. Instead of negotiating a custom Packfile for every checkout, clients request missing immutable trees and blobs directly.
  • The reported gains are workload-specific. Anthropic says cache hit rates exceed 99% at each layer, CPU and memory infrastructure use is about one two-hundredth of that required by its previous Git mirrors, and checkout speed for CI and research tasks improved by two orders of magnitude. These are internal results, not a general benchmark against Git.

Why it matters

Scion’s most important idea is not simply putting Git operations behind a server. It asks which repository tasks actually require a local checkout. History, diff, and some write operations can be exposed through APIs, allowing tools and agents to work without first materializing an entire working tree. For organizations running many code agents, this can reduce repeated transfer, compression, and checkout work.

The trade-offs are substantial. Scion depends on custom code review, code search, and CI systems, and it gives up some of the independence associated with offline Git workflows. A failure in the server, regional cache, or authoritative storage layer can affect many tasks at once. The architecture also requires a large integration effort before its benefits become visible.

For that reason, Scion is better understood as a set of design choices for high-concurrency software engineering than as a universal Git replacement. Anthropic notes that Mononoke and its Bonsai data model had already adopted many of the underlying techniques. Existing Git platforms can still borrow the practical lessons: richer server-side APIs, more efficient object-fetch protocols, and safe sharing of immutable repository data across jobs.

InfoQ 中文

Comments

Checking sign-in status...

Loading comments...

Related articles