在 Anthropic 重新设计源代码控制
Redesigning Source Control at Anthropic

原始链接: https://simonwillison.net/2026/Oct/13/redesigning-source-control-at-anthropic/

Anthropic 在代码变更从 2026 年5月每天约 2,500 次激增至9月每天超过 30,000 次后,构建了自定义的集中式源代码控制系统 Scion。此举应对巨大规模:主分支历史约 100 GB,压缩工作副本 25 GB,以及每天 2500 万次 CI 检出。一个七人团队在五个月内完成从 Git 的迁移。Scion 借鉴了 Google Piper 和 Meta Sapling/Mononoke 等先前系统,并且缺乏离线支持,因为 Claude 是其主要用户,且必然在线。Anthropic 还使用 "Antique" 进行代码审查和对抗性 AI 审查,这很有效,但可能目光短浅,需要工程师防止过度工程化。

Hacker News 用户讨论了 Anthropic 重新设计源代码控制以及 AI 生成代码的更广泛影响。几位评论者表示 Claude/Opus 倾向于过度工程化,添加防御性类并处理不太可能的边缘情况,而不是接受“足够好”。其他人担心这会创建臃肿、难以维护的代码库,并将精力转移到代码审查上,而人类难以跟上。一些人质疑 Anthropic 报告的每天 30,000 次提交是否反映真正的生产力提升,还是仅仅是更多的 churn、内部工具和复杂性。关于高提交量是否是积极信号存在争论;一些人认为更多更改可能表明混乱,而另一些人指出更便宜的代码可能证明更快的迭代是合理的。其他评论涉及未充分指定的接口、AI 创建的问题,以及大多数商业价值来自护城河和客户粘性而非代码量的观点。原帖作者承认该帖子是一个简单的链接博客,不太适合 HN。
相关文章

原文

Redesigning source control at Anthropic (via) Interesting piece from Anthropic describing why and how they built their own custom alternative to Git, based on the dramatic increase in rate of changes to their code after the past six months.

In May 2026, Anthropic averaged around 2,500 code changes merged per day; as of September, we merged over 30,000 per day.

They included a chart showing those changes. I had Claude modify their chart (code here) to add markers for the public releases of each of their models in 2026:

Stacked bar chart titled “Changes merged per day”, for the Anthropic monorepo, January–September 2026. Each day’s bar is split into pull requests (blue) and antique change requests (orange), with a black line for the 7-day average. Weekdays start at around 1,000 merges in January and climb slowly to about 3,000 by late May. Antique change requests appear in late May, overtake pull requests in mid-June and have almost fully replaced them by mid-July, when weekdays reach 6,000–8,000. A labelled “Quiet week” at the end of July dips below 1,000 a day. After that, growth turns steep: over 10,000 a day by mid-August, about 17,000 in early September, and a peak of 30,401 on Sep 9. Dotted lines mark Claude model releases: Opus 4.6 (Feb 5), Sonnet 4.6 (Feb 17), Mythos Preview (Apr 7), Opus 4.7 (Apr 16), Opus 4.8 (May 28), Fable 5 and Mythos 5 (Jun 9), Sonnet 5 (Jun 30), Opus 5 (Jul 24, just before the quiet week), and Fable 5.1 and Mythos 5.1 (Sep 1).

This shows public release dates, not the date when models became available for Anthropic's internal use. My guess is that the introduction of Fable/Mythos class models is a key factor in the increased coding velocity.

"Antique" is their new code review system. The source control system is called Scion, and sounds to me like a reinvention of centralized source control along the lines of Subversion.

(Update: Anthropic credit Google's Piper and Meta's Sapling as "prior art" - it looks like the core concept of "derived data" was heavily inspired by Mononoke, the server component of Sapling.)

They had some pretty extreme requirements:

The history of our main branch alone is almost 100 GB, and a compressed working copy is over 25 GB. We perform on the order of 25 million code checkouts per day for CI, before counting developer environments, agent sandboxes, and research jobs. Fetched naively, that would be over 600 PB of git traffic per day.

The new system was built by a team of seven people, and the migration from Git was completed in five months.

When asked on Hacker News about the lack of offline support, Scion engineer Nick G replied:

Since Claude is by far the heaviest user of Scion and is necessarily online, this just wasn't important to do.

As an aside, I've been trying adversarial review in my own projects recently, where you have a model try and find flaws (I often play Claude and GPT off against each other). This note from the article reflected my own experience with that:

Anthropic also makes extensive use of adversarial review, and, while this is incredibly effective in many ways, it can also be myopic, so skilled engineers needed to steer Claude away from over-engineering parts of the system in response to hypothetical concerns.

联系我们 contact @ memedata.com