跳到正文
原文
Simon Willison·· 2 天前精选AI 评分65

Anthropic 重新设计源码控制系统,自研 Scion 应对每日超过 3 万次代码合并

Redesigning source control at Anthropic

AI 导读

Anthropic 在博文中分享了自研 Git 替代方案 Scion 的原因与做法:2026 年 5 月日均合并约 2500 次代码变更,到 9 月已超过每日 3 万次,迫使他们改造基础设施。

推荐理由

Anthropic 用自研集中式源码系统替代 Git 的规模数据,可帮助读者判断 AI 编码提速对工程基础设施的压力。

正文 · AI 翻译

2026年10月13日 - 链接博客

Anthropic 重新设计源代码控制(来源)Anthropic 发布了一篇有趣的文章,讲述了他们为何以及如何基于过去六个月代码变更频率的大幅增长,构建了自研的 Git 替代方案。

2026年5月,Anthropic 平均每天合并约 2,500 次代码变更;截至9月,我们每天合并超过 30,000 次。

他们附上了一张展示这些变更的图表。我让 Claude 修改了他们的图表(代码在此),为 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).

这里显示的是公开发布日期,而不是模型可供 Anthropic 内部使用的日期。我猜测 Fable/Mythos 类模型的引入是编码速度提升的关键因素。

“Antique” 是他们新的代码审查系统。源代码控制系统名为 Scion,在我看来像是对 Subversion 式集中式源代码控制的重新发明。他们有一些相当极端的需求:

仅主分支的历史就有将近 100 GB,而压缩后的工作副本超过 25 GB。我们每天为 CI 执行约 2,500 万次代码检出,这还没有算上开发者环境、agent 沙箱和研究任务。如果以朴素方式拉取,每天将产生超过 600 PB 的 git 流量。

新系统由一个七人团队构建,从 Git 的迁移在五个月内完成。

顺便一提,我最近在自己的项目中尝试对抗性审查,也就是让模型尝试找出缺陷(我经常让 Claude 和 GPT 相互博弈)。文章中的这段笔记反映了我在这一方面的亲身经历:

Anthropic 也广泛使用对抗性审查,而且尽管这在许多方面极为有效,但也可能导致视野狭隘,因此需要有经验的工程师引导 Claude,避免其为了应对假设性的担忧而对系统的部分设计过度工程化。

来源:Simon Willison · simonwillison.net