Short answer: Anthropic moved the Messages API, the main way apps reach Claude, from Python to Rust. It reports about 70% less CPU per request and a median time to first token down about 20% for Claude Code requests. Public traffic moved in September 2026.
The Messages API is how customers and Anthropic's own apps, including Claude Code and Cowork, reach Claude. Anthropic says API traffic grew roughly 1,800 times from early 2024 to fall 2026, and the Python service became costly to run at that size.
Anthropic ran production traffic in shadow mode. The model was called once and its reply was passed to both versions, so each worked from the same output. The team compared each step and stored only the shape of any difference, not the text, to protect user privacy.
In April, the Rust version passed about 98% of roughly 700 existing tests, but only about a quarter of production inputs matched. By August the match rate reached 99.6%. The team also found more than 100 weakened assertions while auditing the ported tests.
A smaller Rust rewrite of the parser in March 2026 saved 8% to 10% CPU, which the team judged not worth the added complexity. The full rewrite started in April, and public traffic moved to Rust in September. Anthropic says Claude wrote a first version of the core request path in about a week.
Source: Anthropic, "Migrating our Messages API to Rust" (Nov 25, 2026)