Anthropic moves its Messages API to Rust, with teams of Claude agents checking the new version against the old
Anthropic has published how it rebuilt its Messages API, the service that customers and its own apps such as Claude Code use to reach Claude, moving it from Python to Rust. Claude wrote a first version of the core request path in about a week; the hard part was proving the new version behaved exactly like the old one. Anthropic used the live Python API as the reference, compared the two versions on production traffic stage by stage, grouped the differences and sent agents to fix them in sandboxes, with engineers reviewing every fix. Anthropic says the Rust version uses about 70% less CPU per request and cuts median time to first token by about 20%, without taking the service offline; those figures are its own.
Why it mattersThe lesson travels well beyond code. When an AI agent rewrites something important (a process, a spreadsheet model, a website), keep the old version running and compare outputs on real cases before you switch, rather than trusting a demo.
Sourcesx.com post ↗ · anthropic.com ↗


