Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

OpenAI 24 min read Case study hardMaster

Scaling Git at OpenAI

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.

Assumes: Git object model and packfilesGit fetch/push protocolconsistency modelsdistributed replication basics

Related posts

  • Redesigning source control at Anthropic

    Anthropic Engineering mediumAdept

    Anthropic 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.

  • Building Git infrastructure for agent-scale development

    GitHub Engineering easyNovice

    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.

  • Inside GitHub’s new Git storage architecture

    GitHub Engineering hardMaster

    GitHub'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.

  • 20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog

    Datadog Engineering mediumAdept

    Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP. Because Git objects are content-addressed, relays install received packfiles without re-indexing. A pack cache serves about half of pack-building fetches without redoing delta compression. Traffic grew 20× in four months while median latency held near 40 ms, and fetch-serving CPU on the old backend fell 3–4×. A read-only HTTP API for ref resolution and file reads also replaced many full clones by internal tools and AI agents.

  • The bridge to agent-scale Git infrastructure

    GitHub Engineering mediumAdept

    GitHub 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.

The quest for software engineering knowledge.

Look:
Layout: