GitHub's new Git storage: built for 5,000 agents per repo
GitHub has rebuilt its Git storage layer, and the reason is agents. What happens to a repository when the people pushing to it are no longer people? GitHub's answer is described in detail in an engineering deep dive published on November 5, 2026. In internal testing, the new architecture handled 5,000 concurrent agents on a single repository, pushing 7,200 times per second, while read latency stayed consistently low.
Today, according to GitHub, its busiest repositories see at most a few dozen writes per second, and only in short bursts. The team expects those bursts to become a sustained rate within a year as agents work in parallel and around the clock, so it designed for at least two orders of magnitude more headroom rather than the next increment.
You will probably never run 5,000 agents against one repo. But the problems GitHub had to solve show up, at smaller scale, in any team that lets coding agents loose on its codebase. Here is how the architecture works, and what it means for your CI, your branching model, and your MLOps storage.
The background
A Git repository holds two very different kinds of data. Objects (commits, trees, file contents) are immutable and named by a hash of their content. Two writers can store objects at the same time without agreeing on anything. On the server, objects are bundled into packfiles. References, on the other hand, are the pointers that say "branch main is at this commit". They are tiny, but they are exactly what concurrent pushes fight over.
That is the key insight of the post: very little of a Git write needs to be ordered. Only the reference update needs agreement.
This is the third post in a series. The first one set out two principles: minimize coordination, and decouple storage from compute. The second one covered the transition: moving 99.99999% of repositories into Azure, scoping the write quorum to individual references, and introducing "virtual replicas" backed by Azure Blob Storage. The new post describes the destination, internally called Project Rubicon, a nod to the point of no return the industry crossed with agentic development.
GitHub frames scale along two axes. Horizontal scale is many developers and agents across many repositories, something the platform has handled for years. Vertical scale is many actors on one repository, and that is where agents change the picture.
Inside the Rubicon Git storage architecture
For Git clients, nothing changes. You push, fetch and branch the same way, with the same protections. Requests still land on Spokes, GitHub's routing and load-balancing layer. Everything underneath it is new.
Spokes routes each request to one of a small group of virtual replicas assigned to the repository. These are disposable compute nodes that serve reads, writes, or both, and their local disk is just a cache that can be rebuilt at any time. Spokes tries to keep a repository's traffic on the same replicas to keep caches warm, but correctness never depends on which replica gets a request. Lose one and the others carry on; a replacement warms up as traffic arrives. A busy repository simply gets more replicas.
Durable state lives in exactly two places:
- Git objects, as packs plus read-acceleration data, in Azure Blob Storage;
- references and the pack manifest (the list of packs making up the repository), in a dedicated replicated log service called Ref-CAS, short for "Reference Compare-and-Swap".
A write is straightforward: the replica indexes the incoming pack, uploads it to Blob Storage, then commits a single Ref-CAS transaction that adds the pack to the manifest and moves the references. A read checks the reference version with Ref-CAS, pulls any missing packs into the local cache, and serves from there.
Why object storage alone fell short
The team's first instinct was to keep references in Blob Storage too. Conditional writes give you compare-and-swap for free, and the data is already durable and replicated. Two prototypes showed where that breaks.
The first used a single write-ahead log blob for all of a repository's references. Reads were cheap: ask whether the blob changed, done. But only one conditional write can be in flight per blob, so even with batching, throughput topped out in the mid-hundreds of writes per second.
The second sharded references across several segment blobs. Writes to different segments stopped blocking each other, but every read now had to check every segment and was only as fast as the slowest one. That traded write latency for read latency, in a system where reads outnumber writes by orders of magnitude.
Ref-CAS: lock only what you touch
So GitHub built a dedicated service. In Ref-CAS, every reference update is a compare-and-swap committed by a quorum. A transaction locks only the references it touches, checks each still holds the expected value, and becomes visible once a majority of log replicas have recorded it. Because agents mostly push to their own branches, most updates do not contend and replicate in parallel. When two pushes target the same reference, only one gets appended.
Each commit gets a log sequence number, and the repository's version is the number of its latest commit. A replica that checks in with a current version gets an empty reply, so an unchanged repository costs a single comparison. Ref-CAS never stores object data, only pointers, and a pack is always durable before any reference points to it. GitHub reports that reference state alone can be transacted at tens of thousands of operations per second.
Compaction: the hidden cost of high-write Git storage
Every push adds a pack. Git can serve a repository from many packs, but each extra pack makes lookups a little more expensive, so the count cannot grow forever. In the legacy architecture, compaction ran on the same replicas serving traffic, on every one of them.
In Rubicon, it runs in the background on a separate fleet of compaction nodes working directly against Blob Storage and Ref-CAS. Each node takes a lease on one shard of a repository's packs, so only one node compacts a shard at a time. New packs collect in an open segment; when it hits a limit on pack count, size or age, the node seals it and merges its packs into fewer, larger ones. Before publishing anything, it verifies that the output packs contain exactly the same objects as the inputs. Then it adds them to the manifest, removes the inputs in a second transaction, and cleanup deletes them later.
Merged packs still under the size limit go back into a shard by their own hash and merge again, so packs grow in tiers. The published result is an effectively flat pack count as pushes climb, and a flat latency curve as writes increase. Garbage collection, which removes objects nothing references anymore (think deleted branches and force-pushes), uses the same dedicated-worker model.
What GitHub says is next
On the infrastructure side, the roadmap includes fetching single objects instead of whole packs, partial and global replicas, and materialized views such as a near-live shallow copy of the default branch. For agents specifically: working without a clone by reading files straight from the server, an atomic commit API that lands a multi-file change in one operation or rejects it cleanly on conflict, and event streams so agents can react to changes as they happen. In Git itself, GitHub wants partial clone, shallow clone and sparse checkout to work better together.
The architecture is in limited private preview now, with a broader rollout planned for early 2027.
What this means for AI teams
Strip away the scale and you are left with lessons that apply to a team running five agents as much as one running five thousand.
Every push is a read storm. GitHub calls it out directly: each push triggers CI runs, deployment systems pulling the new commit, and other agents fetching it for context. That fan-out scales with writes. If your agents push ten times more often, your runners, caches and artifact stores absorb far more than ten times the clone and fetch traffic. Measure how many full clones a single push triggers across your pipelines, and move to shallow clones, partial clones or sparse checkout wherever a job does not need full history.
Branch-per-agent is a performance decision, not just hygiene. Ref-CAS gets its throughput from agents pushing to their own branches and rarely contending on the same reference. Your workflow benefits from the same property. Agents that all push to one shared branch generate rejected pushes, retries and wasted compute. Give each agent its own branch and let a merge queue handle convergence.
Push latency is agent latency. GitHub treats commit latency as a first-class requirement because an agent waits on every push before its next step. Anything synchronous in your push path, such as heavy server-side hooks or blocking scans, slows every agent on every iteration. Move what you can to asynchronous checks after the push.
The pattern generalizes to MLOps. "Only coordinate what must be ordered" and "keep durable storage separate from disposable compute" are exactly what makes a feature store, model registry or training-data pipeline scale. Immutable, content-addressed artifacts belong in object storage; the small mutable state that needs ordering, like "which model version is in production", belongs in a dedicated, strongly consistent service. And maintenance work such as compaction, garbage collection or reindexing should never run on the nodes serving live traffic.
Design for the new APIs without betting on them. An atomic multi-file commit and event streams could simplify agents that edit code without cloning. But they are announced, not broadly available. Keep an abstraction in your agent tooling between "read a file", "propose a change" and the Git plumbing underneath, so you can switch when they ship.
One caveat: these numbers come from GitHub's internal testing on its own infrastructure. They show design choices and direction, not a performance guarantee for your organization.
Key takeaways
- On November 5, 2026, GitHub detailed its new Git storage architecture, tested internally at 5,000 agents and 7,200 pushes per second on one repository.
- Immutable Git objects live in Azure Blob Storage; only references go through Ref-CAS, a replicated log that locks just what each transaction touches.
- Compaction and garbage collection run on separate nodes, keeping pack count and latency flat as writes grow.
- For your team: one branch per agent, lightweight clones in CI, lean push hooks, and the same storage principles applied to MLOps systems.
- Limited private preview today, broader rollout planned for early 2027.
Git storage used to be something most teams never thought about. With agents pushing around the clock, it becomes part of your delivery pipeline, and GitHub's design choices are a useful checklist for reviewing your own.
Industrialising AI agents? SeedVision offers 3-5 day AI audits and 15-30 day production rollouts. See the packages or book a 30-min call.