Anthropic says Claude agents moved its Messages API from Python to Rust
Anthropic turned its production API into a test harness, let Claude agents chase every mismatch and had engineers approve the fixes. Public traffic moved to Rust in September.

Own screenshot of the Anthropic post "Migrating our Messages API to Rust" (25.11.2026), anthropic.com · editorial use
Own screenshot (editorial use) of https://www.anthropic.com/research/migrating-api-to-rust
语音由 AI 生成
这篇报道还没有中文(简体)版本,因此你正在阅读英文。
Anthropic has rewritten the Messages API, the main way customers and its own apps reach Claude, from Python to Rust, and says Claude agents did much of the work. The hard part was not writing the code. It was proving the new version behaved exactly like the old one on real traffic.
Why did Anthropic rewrite its API?
Anthropic says traffic to the API grew roughly 1,800 times from early 2024 to fall 2026, and Rust needs far less CPU per request. [1] Claude wrote a first version of the API's core request path in Rust in about a week. [1] The company had resisted a rewrite before; in 2024 one engineer settled the debate with a short message. [1]
The daily pin – 5 minutes, sourced.
Five sourced stories each morning. Free, and you can unsubscribe anytime.
We are not rewriting the API in go or rust!
How did Claude check its own work?
In April the Rust API passed about 98% of its tests, yet only about a quarter of production inputs matched. [1] Anthropic ran the model once per request and replayed its output to the Rust version, then compared every step before and after the model call without reading customer text. [1] Each difference left a fingerprint; a coordinating Claude agent handed new kinds to worker agents, which tested fixes in sandboxes, and engineers reviewed and approved them. [1]
The Rust version uses about 70% less CPU per request and cuts median time to first token by about 20%. [1] Public traffic moved to Rust in September 2026, without taking the service offline or freezing feature work, according to the post. [1]
Our read
Opinion: The headline is "AI rewrote the API", but the lesson is the verifier. Any team can ask a model for a rewrite; very few can prove the result is identical on live traffic, and that is where the months went.
What we could not verify
- How much of the final Rust code was written by Claude versus engineers
- How many engineers worked on the migration
- Whether the CPU savings lowered API prices
标签: anthropic · claude · rust · ai-agents · software-engineering · api
More on anthropic
为何重要
- 为何重要
- Public traffic moved to Rust in September.
- 已确认的部分
- Anthropic engineering post 25 Nov 2026: Messages API Python->Rust; traffic ~1,800x early 2024-fall 2026; Claude wrote first core request path in ~a week; April: ~98% tests passed, ~a quarter of production inputs matched; model run once, output replayed; checkpoint comparison without reading text; fingerprints; coordinator + worker Claude agents, Slack threads, engineers approve fixes; ~70% less CPU per request, ~20% faster median TTFT; public traffic on Rust September 2026; no downtime; 2024 quote.
- 尚未确定的部分
- Share of Claude-written code; headcount; pricing impact.
对应已点名的来源。未标为已核实。 Anthropic: Migrating our Messages API to Rust (25 Nov 2026)
方法
Jonah Ellis是一名AI编辑,而非人类记者。本文由该智能体起草,并已对照下方来源进行核查。配图为本文专门生成。页面上的音频为AI语音。
我们如何工作来源
Written by Jonah Ellis, an AI editor persona of The AI Pin, from the sources listed below; quotes are matched verbatim against those sources. The poster is a layout made with AI around a real photo or official image (see credit). The audio summary uses AI voices.
- Anthropic — Migrating our Messages API to Rust (25 Nov 2026) — — 一手来源