Building Git infrastructure for agent-scale development
GitHub is rebuilding its Git storage layer because agent-driven workloads are colliding with the design of Spokes. Spokes keeps five full repository replicas on local disks and coordinates every ref update with a three-phase commit quorum, so adding read replicas slows writes. The new design keeps coordination only for the reference update itself and moves compaction and garbage collection to separate workers. It also puts authoritative data in Azure Blob Storage, with stateless caching compute workers serving reads and scaling independently. Internal benchmarks show up to 35x higher write throughput, driven by 4.9x year-over-year push growth and 7.38 billion commits in a month.
Related posts
- The bridge to agent-scale Git infrastructure
GitHub Engineering mediumAdeptGitHub has moved nearly all Git repositories to replicas split between its own data centers and Azure. The last, busiest repositories were held back by a 25ms cross-region round trip, because Spokes' quorum serialized every write behind a repository-wide lock. Narrowing the quorum's scope to individual references lets writes to different branches proceed concurrently, giving 3–4x higher throughput at lower latency in internal testing. A 'virtual write replica' makes Azure Blob Storage a quorum member and coalesces disjoint-reference writes into shared I/Os, so ephemeral read replicas can warm from object storage and scale independently of the write path.
- Inside GitHub’s new Git storage architecture
GitHub Engineering hardMasterGitHub's new Git storage architecture, Rubicon, rests on one observation: only reference updates need ordering. Git objects go to Azure Blob Storage, and refs plus the pack manifest go to a small quorum-replicated compare-and-swap log called Ref-CAS. Disposable virtual replicas serve reads and writes from a rebuildable cache, while separate lease-based compaction nodes merge packs in the background, so storage, serving and maintenance scale independently. Ref-CAS replaced blob-based ref logs, which topped out at the mid-hundreds of writes per second or traded away read latency. It reaches tens of thousands of ref operations per second, and internal tests sustained 7,200 pushes per second from 5,000 concurrent agents on one repository.
- Scaling Git at OpenAI
OpenAI hardMaster
Pando is OpenAI's new Git backend for its monorepo, built to handle the concurrent pushes and fetches generated by Codex-driven parallel development while staying fully compatible with the Git protocol and client. Each branch is coordinated independently: incoming packs are stored as immutable blobs and ref versions are recorded in a horizontally scalable metadata store. This gives per-ref serializability but only causal consistency across the repository. Packfiles are reused across fetches rather than generated per client, trading some redundant bytes for far less server CPU and I/O. Compared with three-phase-commit replicas and a shared-manifest WAL in blob storage, Pando avoids a single write ordering point, and in production it cut median push latency nearly 5x while serving close to a petabyte of Git data per day.
- Redesigning source control at Anthropic
Anthropic Engineering mediumAdeptAnthropic replaced git with Scion, an in-house centralized version control system, after its monorepo grew past what git mirrors could serve. Merges went from about 2,500 to over 30,000 per day, main-branch history approached 100 GB, and CI ran around 25 million checkouts a day. Scion assumes clients are always online and keeps commits, merges, blame and history on a horizontally scalable server backed by Spanner. Changesets live in a write-ahead log with recursively computed derived data, and clients fetch content-addressed trees and blobs through tiered caches. The result is a footprint 200x smaller than the old git mirrors, checkouts measured in seconds instead of minutes, and a 25% CI CPU saving, built by a team of seven in five months with heavy Claude assistance.
- How we tripled max concurrent jobs to boost performance of GitHub Actions
GitHub Engineering mediumAdeptGitHub Actions on GitHub Enterprise Server went from 2,200 to 7,000 max concurrent jobs on 96-core machines between GHES 3.2 and 3.6 through three main fixes. A hot path for workflow secrets and callback URLs had silently never used its cache, which only showed up in profile traces. Orchestration state moved from a single growing blob column to a per-event table with incremental reads and writes, cutting orchestration CPU by about 50%. Postback load to the Rails checks service was reduced by deferring step updates until run completion and removing duplicate completion events, with a message queue planned to replace the multi-hop HTTP delivery.