Anthropic moves Claude API to Rust after months of verification
The company says the replacement uses about 70% less computing power per request, but validating AI-written code required comparisons using live traffic.

Anthropic said it shifted public traffic for its Messages API from Python to Rust in September without interrupting service. Claude agents produced and repaired much of the software, but engineers spent months verifying its behavior before the switch.
The API connects customers and Anthropic applications, including Claude Code, to Claude. According to the company, the replacement consumes about 70% less computing power for each request and over 80% less memory. For Claude Code users, the median delay before a response began dropped about 20%.
Claude produced an initial version of the core software in about a week. By April, it passed about 98% of tests, yet its results agreed with the previous system for only about a quarter of actual requests. An audit uncovered more than 100 weakened checks among tests Claude had helped transfer.
To verify the replacement, Anthropic sent live requests through both implementations and checked their behavior step by step. The company said this did not involve reading customer text. Claude agents addressed discrepancies, while engineers reviewed each correction.
Human reviewers also rejected shortcuts, including an agent's attempt to resolve a mismatch by inserting a missing tool description into files. Anthropic says Claude writes more than 80% of its merged code and argues that verification, rather than code generation, has become the bottleneck.




