Anthropic moves its Messages API to Rust, using Claude agents to verify the migration
The Rust API uses about 70% less CPU per request and cuts median time to first token by about 20%, after API traffic grew roughly 1,800 times since early 2024.
26 Nov 2026
Anthropic has moved its Messages API, the main way customers and its own apps such as Claude Code and Cowork reach Claude, from Python to Rust, the company said in an engineering post. The Rust version uses about 70% less CPU per request and cuts median time to first token by about 20%, and it shipped without taking the service offline or freezing feature work.
AI Programming Weekly covers stories like this, every Tuesday. Free.
API traffic grew roughly 1,800 times between early 2024 and fall 2026, Anthropic says, which pushed it to make the service far more efficient. An earlier step, rewriting only the code that parses model output in Rust, cut CPU use by about 8% to 10%.
Claude wrote a first version of the core request path in about a week. The harder part was proving the new API matched the old one: the Python service kept changing, Claude can answer the same request differently, and Anthropic cannot read customer requests. So it turned the production Python API into a verifier, ran the Rust version on production traffic, found where the two differed, and automatically sent teams of Claude agents to fix the differences.
Where this comes from
anthropic.com Migrating our Messages API to RustIn this story
Industry analysis
2025 Global Business Services Agenda: Gen AI Takes Center Stage
This industry analysis by The Hackett Group explores the transformative impact of generative artificial intelligence (Gen AI) on global business services (GBS) in 2025. The study highlights the shift from exploration to acceleration of Gen AI initiatives, with 89% of executives advancing these projects to improve customer satisfaction, innovate products, and reduce costs. The report also discusses the challenges and strategies for successful Gen AI adoption, emphasizing the need for a technology-enabled operating model and the importance of reskilling the workforce.
Read moreYou may also like
Anthropic says Claude writes and reviews about 90% of Claude Code team's code 21 Nov 2026 Anthropic Adds Message Threads to the Claude API 3 Nov 2026 Anthropic Says Claude Mythos Got Claude Running on AMD GPUs in Three Days 11 Nov 2026 Anthropic offers credits of up to $2,000 per user to push its newer AI products 19 Nov 2026 Anthropic Finds Researchers Use Claude Mostly for Data Analysis 5 Nov 2026 Anthropic Reports Early Claude Results in Drug Development 27 Oct 2026Daily AI Brief: the AI news that matters, in your inbox.