跳到正文
Dex Horthy· X:Dex Horthy(HumanLayer)(@dexhorthy)·· 3 小时前AI 评分50

Dex Horthy 解读 Anthropic 自建版本控制系统:放弃 git 的离线分布式设计

Dex Horthy 解读 Anthropic 自建版本控制系统并从 git 迁移

AI 导读

Dex Horthy 解读了 Anthropic 自建的版本控制系统,它不再像 git 那样支持离线工作,而是依赖必须可达的中心服务器,客户端才能运行。Horthy 认为,在代码变更每天高达 1000 次、无人类介入的未来,VCS 本身已属于生产环节,因此可交由 SRE 团队保持在线,并把部分处理卸载到服务端以换取客户端性能收益。他同时表示自己并不完全认同这一前提。

正文

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?

来源:Dex Horthy · x.com