Anthropic 自建内部版本控制系统并从 Git 迁移 monorepo
原帖译文
anthropic 自己造了一个 git。这里最有意思的思维转变是,如果你认同代码变更正越来越多地以自主方式发生、速度更快*,那么这就非常说得通了: Git 的设计初衷是让任何客户端都能提供仓库服务。完全离线, 你的 *构建时* 开发栈永远不会处于你 *运行时* 部署的热路径上。 Anthropic 的新版本控制系统(VCS)不支持离线工作。有一个中央服务器,客户端必须能访问它才能运作。他们发现这样做有一堆好处。 乍一听这很疯狂。今天如果 GitHub 宕机了,你就没法 pull、push 或 merge。想象一下如果 GitHub 离线你就没法 COMMIT。 但在一个(某天,也许)代码每天变更 1000 次、且没有人类介入的未来里,那你的 VCS 基本上本来就属于生产环境的一部分了,所以你不妨干脆把它保持在线,配上一支 SRE 团队等等,然后你还能为客户端带来各种有趣的性能好处,因为你可以把一些处理卸载到服务器上,并重新架构什么东西该存在哪里 * 我不确定我是否认同这一点,但各家实验室确实在把「不要读代码,而是利用像『故障、功能请求、用户行为变化』这样的信号作为刺激来驱动智能体对已部署代码做出变更」推崇为未来,所以这能对上 这说得通吗?我们是要回到 CVS 而不是分布式的吗?在像 Scion 这样的东西成为主流之后 5-10 年,会不会又摆回分布式?
查看原帖
anthropic built their own git. Most interesting mental shift here, and if you buy that changing code happens more and more autonomously, faster*, then this will make a ton of sense: Git was designed so that any client could serve the repo. Fully offline, your *build time* dev stack is never in the hot path for your *run time* deployment. Anthropics new version control system (VCS) does not work offline. There’s a central server which must be reachable for clients to function. They found a bunch of benefits to doing it this way. At first this sounds wild. Today if GitHub is down, you can’t pull or push or merge. Imagine if you couldn’t COMMIT if GitHub was offline. But in a (someday, maybe) future where code changes 1000x per day with no human in the loop, then your VCS is basically part of production anyway, so you might as well lean into keeping it online with a team of SREs etc, and then you get all sorts of interesting perf benefits for CLIENTS because you can offload some processing to server and re architect what all needs to be stored where * I’m not sure I buy this, but the labs are certainly pushing “don’t read the code, leverage signals like “outage, feature request, user behavior change” as STIMULUS to agents to drive change in deployed code” as the future, so it lines up Does that make sense? Are we going back to CVS instead of distributed? Will there be another swing back to distributed 5-10 years after things like Scion become Mainstream?
引用 · Anthropic @AnthropicAI
工程博客新文章:打造内部源代码控制系统。 5 月,我们每天合并约 2,500 个代码变更。到了 9 月,我们每天合并超过 30,000 个。结果,我们受制于为人类(而非智能体)规模构建的开发者基础设施,成了瓶颈。 在这里,我们分享如何在五个月内构建了一个新的版本控制系统——并将我们的 monorepo 从 git 完全迁移:https://t.co/wzNkwHs7IN
查看引用原帖
New on our Engineering blog: Creating in-house source control. In May, we merged around 2,500 code changes per day. In September, we merged more than 30,000 per day. As a result, we became bottlenecked by developer infrastructure built for human (rather than agent) scale. Here, we share how we built a new version control system—and fully migrated our monorepo from git—in five months: https://t.co/wzNkwHs7IN
内容摘要
Anthropic 在工程博客分享自建版本控制系统,称其五个月内将 monorepo 从 Git 完全迁移,链接 https://t.co/wzNkwHs7IN。

