IndustryMulti-source84°

Anthropic 用 Claude 把 Claude API 从 Python 重写为 Rust

Why we picked it

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 对比重写前后的行为来确认正确性。

Body

运维侧也在引入 Claude:过去数月,一个 Claude agent 一直跟随 API 团队的 oncall 轮值进行训练,现在会在人类之前先对告警分类,判断是真实故障还是噪音,长期目标是让 agent 独立处理事故而不唤醒工程师,但尚未达到该阶段。组织结构上,Anthropic 仍保持 5-8 人的 two-pizza 团队,团队整体拥有系统并承担 oncall 责任。

Original · Gergely Orosz

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!

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Industry" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Anthropic, Claude, Rust, coding assistants.

Source attribution: curated from Gergely Orosz (@GergelyOrosz). Cross-source corroboration: 11 independent sources have covered this development (including Boris Cherny, Claude Code: GitHub Releases, claudedevs), confirming industry-wide signal strength.

  • Boris Cherny11-23 20:21Source
  • Claude Code: GitHub Releases11-23 21:34Source
  • claudedevs16:32Source
  • TestingCatalog11-24 08:59Source
  • kimmonismus11-24 21:44Source
  • Simon Willison’s Weblog11-24 23:02Source
  • swyx (AI Engineer)11-24 23:29Source
  • Lxfater01:40Source
  • theverge11-23 20:00Source
  • The Information11-23 20:15Source