在 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 辅助、高产出开发背景下重新设计源代码控制的努力。评论者争论大量代码生成是否反映真实生产力还是 churn,有人认为更多代码不一定更好,可能掩盖混乱的系统。主要主题是模型行为:Claude/Opus 受到赞扬但被批评过度工程化、追逐假设的边界情况、增加复杂性而非简化。用户比较 DeepSeek 等替代品,并讨论 AI 如何侵蚀软件工艺和团队对齐。其他人指出代码审查和维护心智模型成为瓶颈,更简单的抽象可能适合更小的项目。有人因为代码现在更便宜而为高 churn 辩护,而另一条评论强调每行代码的价值以及研究和验证的重要性。讨论串还质疑在如此高速下的人类监督,以及帖子为何登上首页。
相关文章

原文

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