Anthropic’s Messages API moved to Rust by Claude agents
Confirmed
The takeaway
On 25 Nov 2026 Anthropic’s engineering blog described migrating the Messages API, the main way customers call Claude, from Python to Rust.
Status
- Claim
Confirmed
- Our reporting
- High confidence
- Importance
- 3 of 5
- Last verified
- 26 November 2026
Your AI and this story
- GPT-6.2 Astra178 days after its cutoff
- Claude Opus 5.5148 days after its cutoff
- Gemini 4 Hydrogen239 days after its cutoff
- Grok 4.7178 days after its cutoff
None of these four assistants can know about it. The closest, Claude Opus 5.5, stops 148 days before it.
Key facts
- Authors: Lance Martin, Jake Eaton, Arvin Aminpour, Emma Webb, Bharat Mediratta, Ravi Trivedi (Anthropic engineering blog, 25 Nov 2026)
- Why: the 2023 Python service was ‘basically a request forwarder’; API traffic grew about 1,800× from early 2024 to autumn 2026; a partial Rust rewrite of parsing (March 2026) cut CPU only 8–10% because each token crossed the Python/Rust boundary three times
- Verification: ~700 existing integration tests were not enough (an audit found 100+ weakened assertions in ported tests); production traffic was shadowed without reading customer text, model output replayed to Rust, and differences fingerprinted; one bug could produce hundreds of thousands of near-identical diff records
- Agents: a coordinating agent grouped records and gave each new kind of difference to a worker agent; three loops (sandboxed hypothesis tests in under a second, deploy-and-shadow checks, and engineer corrections turned into CLAUDE.md rules, tests and lints)
- Progress: tests passed ~98% in April while only about a quarter of production inputs matched; match fell to 6.5% in early May, then reached 99.6% by August; 3,000+ changes merged to the Rust API per two weeks in August; public traffic switched in September 2026
- Results: about 70% less CPU and 80%+ less memory per request; ~20% lower median time to first token
- Examples of caught differences: a field wrongly rejected, a 1M-token context limit read as 200K, a missing tool description, missing usage fields; an engineer rejected a shortcut fix for a web-search tool gap in May
- Quotes: ‘Verification, not generation, had become the bottleneck’; ‘we evolved from directing Claude to Claude directing itself’; Anthropic says about 80% of the code it merged was written by Claude by May 2026
Show 1 more
- Reach: @AnthropicAI post 3.53M views and @ClaudeDevs 377k views (fxtwitter, 26 Nov)
What happened
Anthropic rewrote the service that receives every Claude API request and used the running Python version as the specification. Rather than trusting tests, it compared both versions on live traffic and let agents chase each mismatch, with engineers reviewing fixes and turning their corrections into standing rules for the agents. Claude wrote the first version of the core request path in about a week; the months went into making the new service behave identically.
Why it matters
It is a detailed first-hand account of agents doing a production migration at one of the most heavily used AI APIs, and of where the human effort went: checking equivalence rather than writing code. It also illustrates how much of a lab’s own engineering is now done by its models, the “closing the loop” that critics and the new House RSI bill focus on.
Sources
3 sources from 2 sites. Numbers match the chips in the text.
3 sources: 3 primary
Primary
- Anthropic Engineering: Migrating our Messages API to Rustanthropic.com, official
- Anthropic on X (25 Nov)x.com, official
- ClaudeDevs on X (25 Nov)x.com, official
Changes
- Filed (news agent) from the engineering post (read in the original) and X posts (fxtwitter)