快訊
  • Agents
  • DevOps

OpenAI 自建 Git 後端 Pando:Codex 讓 push 暴增,舊系統撐不住

OpenAI 在 2026-11-02 發表〈Scaling Git at OpenAI〉,介紹自己做的 Git 後端 Pando,現在 OpenAI monorepo 的所有開發都跑在上面。

為什麼要重做

  • OpenAI 說 Codex 讓工程師能同時做更多事:分支、push、merge 都變多,開發環境、研究任務和 CI 的 fetch、clone 也跟著變多。一個工程師可能同時有好幾個改動等著跑 CI,每次 push 又會讓好幾個 job 去抓同一個 commit。
  • 大約從去年年底開始,舊系統跟不上:fetch 和 push 變慢、merge 失敗,可靠度有時掉到 90% 以下。

Pando 怎麼做

  • 保留 Git 協定和 client,工程師和 agent 照原本的 git push、fetch 用,不用改流程。
  • 每個分支各自協調更新,不相關的分支可以同時寫入。代價是:同時看好幾個分支的人,看到的可能是不同時間點的狀態。
  • 不為每個 client 各產生一個 packfile,而是重複使用已經收到的 packfile,透過 Git 的 packfile-uri 讓 client 另外下載;各區域有本地快取。OpenAI 說用一般雲端 VM 就能讓 clone 和 fetch 跑滿 10 Gbps 網路。
  • 背景會把小的 packfile 逐層合併,類似 LSM tree 的 compaction,讓落後很多的 client 也不用下載上萬個小檔。

用 agent 做出來

  • 從開工到上線 10 週,用 Codex 開發:核心由一位工程師設計,由一組組 agent 實作,幾位工程師負責部署;今年 4 月開始接正式流量。
  • 用 Rust 從零寫,沒有舊的相依套件。另外寫了一套 conformance test,讓 agent 能拿標準 Git 行為檢查自己的改動;agent 也用 GPT-6 Astra 寫 Lean 和 TLA+,把 Pando 的行為形式化,用來找 bug 和證明性質。

數字(OpenAI 自己公布)

  • push 中位延遲少了將近 80%(文中也寫成將近 5 倍),merge 可靠度提高。
  • 每天送出將近 1 PB 的 Git 資料;曾在一小時內送出超過 57 TB,其中超過 99% 來自本地磁碟快取。

OpenAI 說部分改進已經進了上游 Git,也在研究怎麼把 Pando 背後的技術提供給使用者。

OpenAI built Pando, a new Git backend, because Codex outgrew its monorepo

On 2026-11-02 OpenAI published “Scaling Git at OpenAI,” describing Pando, its own Git backend. All development in OpenAI’s monorepo now runs on it.

Why they rebuilt it

  • OpenAI says Codex lets engineers do far more work in parallel: more branches, pushes, and merges, plus more fetches and clones from development environments, research jobs, and CI. One engineer may have several changes waiting for CI, and each push can set several jobs fetching the same commit.
  • Starting around the end of last year, the old system couldn’t keep up: slow fetches and pushes, failed merges, and reliability at times below 90%.

How Pando works

  • It keeps the Git protocol and client, so engineers and agents use git push and fetch as before.
  • Each branch’s updates are coordinated independently, so pushes to unrelated branches proceed in parallel. The tradeoff: a reader looking at several branches can see them at different points in time.
  • Instead of generating a packfile per client, it reuses packfiles it already received and sends them through Git’s packfile-uri, served from regional caches. OpenAI says clones and fetches saturate 10 Gbps links on standard cloud VMs.
  • Small packfiles are merged in the background level by level, similar to LSM-tree compaction, so a client far behind doesn’t have to download tens of thousands of small packs.

Built with agents

  • Kickoff to production took 10 weeks, built with Codex: one engineer designed the core, teams of agents implemented it, and a handful of engineers deployed it. It began serving production traffic in April.
  • It was written in Rust with no legacy dependencies. A conformance test suite let agents check their changes against standard Git behavior, and agents using GPT-6 Astra wrote Lean and TLA+ to formalize Pando’s behavior, find bugs, and prove properties.

Numbers (OpenAI’s own)

  • Median push latency dropped by nearly 80% (the post also says nearly 5x), and merge reliability improved.
  • It delivers nearly a petabyte of Git data a day and has served more than 57 TB in a single hour, over 99% of it from local disk cache.

OpenAI says several improvements are already in upstream Git, and it is exploring ways to share the technology behind Pando with users.

來源