Anthropic 用 Claude 把 Claude API 从 Python 重写为 Rust
Anthropic 的工程师亲口讲怎么用 Claude 把 Python API 重写成 Rust,连 Rust 专家都没有,只人工看了 20% 的代码,靠影子流量验证。还讲了 Claude agent 先于人处理 oncall 告警。做工程基建或考虑 AI 编程落地的开发者会很受启发。
Anthropic 工程师 Katelyn Lesse 在访谈中透露,团队已将 Claude API 从 Python 重写为 Rust。团队此前因熟悉度选择 Go 开发新服务,但到 2026 年认为 Claude 写 Rust 已足够可靠,整个重写过程中没有 Rust 专家参与,工程师只仔细审查了约 20% 的生成代码,核心方法是把改动变成可验证的形式,用 shadow traffic 对比重写前后的行为来确认正确性。
运维侧也在引入 Claude:过去数月,一个 Claude agent 一直跟随 API 团队的 oncall 轮值进行训练,现在会在人类之前先对告警分类,判断是真实故障还是噪音,长期目标是让 agent 独立处理事故而不唤醒工程师,但尚未达到该阶段。组织结构上,Anthropic 仍保持 5-8 人的 two-pizza 团队,团队整体拥有系统并承担 oncall 责任。
How did Anthropic rewrite the API all Claude tokens from Python to Rust, why did eng teams remove coding interviews, and why do devs spend a LOT more time building internal tools than before? Super interesting details from @katelyn_lesse
Timestamps:
00:00 Intro 03:09 Stripe 07:04 How the Claude API works 10:21 The Rust rewrite of the Claude API 23:40 Verifying the rewrite with shadow traffic 31:11 Onboarding new hires with Claude 44:35 Building Claude Managed Agents 53:59 How engineering teams work at Anthropic 58:43 What agents handle on their own 1:04:47 Human code review 1:06:41 Oncall with Claude 1:09:31 Product managers shipping to production 1:16:25 Anthropic’s software factory 1:24:13 Phasing out traditional coding interviews 1:28:24 Levels, promotions, and performance reviews 1:33:21 The software engineer identity crisis 1:47:23 Book recommendation 1:48:12 Closing takeaways
Brought to you by:
• @turbopuffer – a vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable. Anthropic is one of their many customers.
• @AntithesisHQ – verify your system’s correctness without human review or traditional integration tests – and avoid bugs or outages. Check out their coding agent plugin and use the code PRAGMATIC50 to get 50% off your first month at https://antithesis.com/pragmatic
• @GoEntire – The Git forge for agent-human collaboration. Built for the scale and throughput of agentic coding. Mirror your repo with one click (or move over fully) at https://entire.com/pragmatic
Three interesting details from inside this leading frontier AI lab:
1. The rewrite was done without Rust experts on the team or strict code reviews.
A year earlier, the same team picked Go for their new services because it was a language that team members knew how to read and write. But by 2026, they felt that Claude was good enough at Rust, and Claude helped engineers learn more about Rust during the rewrite. Katelyn estimates that engineers looked closely at only ~20% of the code generated:
“As long as you can really boil something down to make it verifiable in some way, then you don't have to look at every single line of Rust code that's getting written.”
2. A Claude agent is paged before a human for API oncall.
For months, a Claude agent has been shadowing the API oncall rotation of the API team for training. As the team have gained confidence that Claude can tell if an alert is “real” or “noise,” they now let this agent categorize an incoming alert first. The long-term goal is for Claude to handle actual incidents without waking up a human – but they’re not there yet.
3. One thing that has not changed since "pre-AI" is two-pizza teams.
Teams at Anthropic are still two-pizza teams of around 5-8 people. Katelyn says it’s because this is the right size for understanding a complex system and staffing an oncall rotation. Teams still own systems, and get paged. And it is a team – not an individual – that’s responsible for each system!
本条情报归属 AITOP「行业」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Anthropic、Claude、Rust、编程助手,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「Gergely Orosz」(@GergelyOrosz),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 11 家独立信源对该事件进行交叉印证与跟进报道(含 Boris Cherny、Claude Code: GitHub Releases、claudedevs 等),属于近期高关注度行业信号。