Anthropic has moved its Messages API from Python to Rust, with Claude agents writing and fixing the code, and on Nov 25, 2026 it published how it checked the new version against the live service (Anthropic). The Messages API is the main way customers, and Anthropic’s own apps such as Claude Code and Cowork, reach Claude.
- less CPU per request
- About 70%
- lower median time to first token
- About 20%
- growth in API traffic from early 2024 to fall 2026
- About 1,800x
What happened
Anthropic built the API in Python in 2023. An earlier partial rewrite, with only output parsing in Rust, cut CPU use by about 8% to 10%, but each token then crossed between Python and Rust three times. Claude wrote a first version of the core request path in about a week, and by May 2026 Claude was writing more than 80% of the code Anthropic merged (Anthropic).
- Apr 2026Rust passes about 98% of tests, yet only about a quarter of inputs match on production traffic
- Mid-MayAn engineer turns down an agent’s web search shortcut as throwaway code
- Jun 2026An agent turns about 60 review comments into proposed rules for CLAUDE.md
- Sep 2026Public traffic moves to Rust
How they checked it
The team had about 700 integration tests, and an audit of the ported tests found more than 100 weakened assertions. So Anthropic used shadowing, running live requests through both versions and comparing the results. Because Claude can answer the same request differently, the model ran once and its output was replayed to Rust. To protect privacy, the team did not read customer text and recorded a “fingerprint” of each difference instead, such as where in the prompt it began and the length gap (Anthropic).
A script grouped those records every 10 to 30 minutes and alerted a coordinating agent, which assigned a worker agent to each new kind. Workers tested fixes in a sandbox with checks under a second, engineers reviewed the pull requests, and shadowed traffic showed whether a fix held. Engineers’ corrections became rules in CLAUDE.md, lints and tests (Anthropic).
Why it matters
Anthropic writes that writing code is no longer the bottleneck, and verification has taken its place. All the performance figures are Anthropic’s own measurements. The post gives no cost savings in dollars (Anthropic).




