›bobbyencoded_
/posts/newsletter/courses/about
/posts/newsletter/courses/about

The Decode

The week's AI & software news, decoded.

Subscribe →

// © 2026 BobbyEncoded Inc. — A Canadian corporation

← Back to Blog

Agents Broke OpenAI's Git Server. The Fix Was a Consistency Model.

November 5, 2026 · 7 min read

Git, Distributed Systems, AI Agents, Codex, Developer Tools, Architecture

Most talk about coding agents is about the code they write. On November 2, OpenAI published a post about something less glamorous: what agents did to the machine that stores that code. "Scaling Git at OpenAI" describes Pando, a new Git backend the company built after agent-driven traffic overwhelmed the systems serving its monorepo.

The headline numbers are vendor-reported, but the interesting part isn't the numbers. It's the diagnosis. The bottleneck wasn't disk, CPU or bandwidth. It was ordering.

What happened

According to the post, Codex changed the shape of the load on OpenAI's repository: more branches, more pushes, more merges, and many more fetches and clones from development environments, research jobs and CI. Starting around the end of last year, fetches and pushes slowed and merges failed. At times, reliability fell below 90%.

OpenAI's constraint was strict: don't change how anyone uses Git. Engineers and agents keep the standard Git client and protocol. Only the server side gets replaced.

The results, as OpenAI reports them:

  • Median push latency cut by nearly 5x (the post also phrases this as "nearly 80%"; they're the same result).
  • Merge reliability improved (no figure given).
  • Close to a petabyte of Git data served per day, on "just a handful of CPU cores", with over 99% of pack downloads coming from cache.

Why ordering was the problem

Here's the part worth understanding even if you'll never run a Git server.

A Git push is mostly two things: upload a pack (the new objects), then move a ref (a branch pointer) to a new commit. The objects are easy to scale; they're immutable blobs. The ref update is the hard part, because it has to be atomic and has to agree everywhere.

OpenAI's post walks through two common designs for a replicated Git backend, and both impose one order on all writes to the repository:

  • Three-phase commit across replicas. A coordinator sends the pack to every replica, locks the ref, runs a pre-commit round and waits for a majority before applying the update. Every push pays several network round trips plus the slowest disk in the quorum.
  • A write-ahead log with a shared manifest. Writers upload packs to blob storage, then update one shared manifest with compare-and-swap. Two pushes to completely unrelated branches still race for the same manifest, and the loser retries.

With a few hundred humans pushing a few times a day, that serialization is invisible. With agents, the arrival rate changes. Hundreds of parallel sessions, each on its own branch, each pushing in short loops, all funnel through one ordering point. It's the classic queueing curve: utilization creeps toward 100%, latency doesn't rise linearly, it bends upward, and timeouts turn into failed merges.

Notice what the work actually looks like: agent A's push to fix/login-timeout has nothing to do with agent B's push to feat/export-csv. The system was spending coordination on a guarantee nobody needed: that those two writes happen in a single global order.

Pando's answer: coordinate per branch

Pando's core change is its consistency model. Instead of ordering the whole repository, it uses causal consistency, coordinated per branch:

  • Writes to a single ref are still serializable. Two pushes to main can't both win.
  • Writes to different refs proceed in parallel, with no shared lock or manifest.
  • Each push records a ref version in a metadata store: the new tip, the pack that supplied it, and the earlier ref versions it depends on. That dependency link is what keeps causality intact.
  • The trade-off is stated plainly: a reader looking at several branches at once may see them at slightly different points in time.

Is that trade-off acceptable? For Git, almost always. Nobody fetches 40 branches and needs them to be a perfect snapshot of one instant. You need each branch to be correct and its history to be complete, and causal consistency gives you both.

The rest of the design follows the same instinct of keeping the synchronous path small:

  • Packs are validated while they stream to blob storage, not unpacked into a local repository.
  • The synchronous metadata update is constant-cost, regardless of push size.
  • Background workers compact small "L0" packs into larger ones, much like an LSM tree, so a client catching up downloads a few big packs rather than thousands of tiny ones.
  • Fetches return packfile URIs, so clients download straight from a regional cache rather than from the Git servers themselves. The servers mostly negotiate and pick packs.

That's why "a handful of CPU cores" is plausible for a petabyte a day: the servers barely touch the bytes.

How it was built

Two details from the post stood out to me.

First, the build itself. Pando is written in Rust, went from kick-off to production in about 10 weeks, and production traffic began in April. The core design came from one engineer; teams of agents implemented it, and a handful of engineers deployed it. Validation leaned on a conformance suite, deterministic simulation testing, and formal specifications in Lean and TLA+, which agents also helped write.

Second, the migration. The first deployment was a read- and write-through proxy in front of the old system, so traffic could move over with no downtime. Clients moved in phases, and hundreds of integrations that depended on legacy APIs, webhooks and repository downloads had to be moved too. That last item is the one I'd expect to take the longest in any real migration, and it's the one that gets one sentence in most write-ups.

Pando itself is internal; OpenAI hasn't released it. It does maintain a public Git fork and is sending client improvements upstream, including packfile-uri work and concurrent pack downloads, and it says it's exploring ways to share the technology.

What this means if you run many agents

Most teams will never need to replace their Git server. But the pattern generalizes, and it shows up earlier than you'd think.

  1. Agents change the arrival rate, not just the volume. Ten agents pushing every few minutes is a different workload from ten humans pushing twice a day, even if total commits look similar. Look for anything with a single ordering point: a shared lock, a single queue, one database row everyone updates. That's where it breaks first.
  2. Ask which guarantees you actually need. Pando works because "all branches in one global order" was never a real requirement. The same question applies to CI pipelines, deploy locks, ticket queues and shared config. Often per-key ordering is enough, and per-key ordering scales.
  3. Keep the protocol, change the backend. OpenAI didn't ask anyone to learn a new tool. Keeping the client contract stable is what made a migration of this size possible, and a proxy in front of the old system made it reversible.
  4. More agents means more review, too. Faster pushes move the bottleneck, they don't remove it. I wrote about where it moves in More Code, Not More Software.

The lesson I'm taking away is an old one in new clothes: when a system slows down under load, check whether it's doing coordination nobody asked for before you add hardware.

Sources

  • OpenAI, Scaling Git at OpenAI (Aaron Friel, Taylor Blau and Ted Nyman, Nov 2, 2026)
  • OpenAI's Git fork, github.com/openai/git
← Previous

Blazor vs React: The Same Ideas in Two Stacks

Next →

The Architecture Patterns Worth Knowing in 2026, Plus the AI Ones

Thoughts on this?

Tell me on X: @bobbyencoded · Share this post on X

Want more like this? Subscribe to The Decode, a weekly email on the AI and developer news worth your time.