7 People, 5 Months: Anthropic Built a Git Replacement
In a surprising move, Anthropic replaced Git, the dominant version control system for two decades, with its own internally developed system named Scion. This migration was accomplished in just five months by a team of seven engineers, heavily assisted by their AI model, Claude.
The primary driver was the explosive growth of AI-powered software development at Anthropic. By September, the company was handling over 30,000 code merges per day—a 12x increase in just four months—straining Git's decentralized, offline-friendly architecture which was not designed for such massive, centralized, and always-online agent-driven workflows.
Scion was designed from the ground up for this new paradigm. Its core principles include: assuming clients (AI agents and automation) are always online; offloading complex computations (like blame, diff, merges) to scalable servers; providing a full API for source control queries to eliminate local repo needs for many tasks; and enabling highly efficient, sparse, and virtualized checkouts.
Key to Scion's performance is its data structure. Instead of Git's commit-and-tree model, it uses a "Changeset" stored in a write-ahead log, which records only changed files. This allows for extremely high-throughput ingestion. Additional "derived data" structures are built on-demand for operations like blame and history queries.
The new architecture employs a distributed, cache-heavy design with daemons (scion-daemon), regional caches (scion-cache), and authoritative servers (scion-server). This resulted in cache hit rates over 99%, a 200x reduction in CPU/memory usage compared to their previous Git mirror infrastructure, and code checkouts that are now seconds instead of minutes.
Claude played a crucial role, not only in accelerating development but also in significantly improving code quality, performance, and test coverage. The project also led to innovations in security, access control, and system monitoring using AI "Superfans."
Anthropic emphasizes that Scion is not a general-purpose Git replacement. It is tailored for massive monorepos driven by vast numbers of AI agents. However, they share their learnings in hopes that the broader ecosystem can adapt some of Scion's effective patterns—like server-side APIs and optimized protocols—to enhance Git for emerging large-scale, AI-augmented development environments.
marsbit10/14 17:42