Anthropic migrates its Messages API from Python to Rust: about 70% less CPU per request and about 20% faster median time to first token
Claude wrote the core request path in about a week; verification was the hard part. This covers how they used the production API itself as the oracle, shadowing live traffic to find differences and dispatching agents to fix them.
// Key points
- API traffic grew roughly 1,800 times from early 2024 to fall 2026; an earlier partial rewrite of output parsing in Rust cut CPU only about 8% to 10%, with each token crossing between Python and Rust three times
- About 700 integration tests were not enough: an audit of the ported tests found more than 100 weakened assertions, so a pass did not prove correctness
- They shadowed production traffic to compare Python and Rust inputs and outputs, grouped differences by fingerprint, dispatched agents to fix them, and saved corrections as memory rules every agent could read
- The service never went offline and feature work never froze; the post concludes that verification is the new bottleneck
Builder's takeWhat I take from this is the order: build a comparator that can judge right and wrong on real traffic first, then let agents write the code, or a green test suite still won't give you the nerve to cut over. Read with Microsoft's contradictory-docs experiment from 11-26, a coding agent's ceiling increasingly depends on the verification you give it; if we change languages or storage engines behind AI Cloud Drive, shadow comparison and difference fingerprints come before any rewrite.
// Background · from #Anthropic
Full timeline →- Nov 25 Amazon Bedrock's trusted access program API is generally available, with Enterprise Frontier Safeguards and Enterprise Data Controls for Claude in public preview: retained data can live only in your own S3 bucket
- Nov 24 Claude API launches Enterprise Frontier Safeguards in beta: zero data retention for its most capable models, with encrypted safety data kept in your own cloud bucket; Opus 4.5 retires on January 22, 2027
- Nov 23 Anthropic closes its IPO: 1.127 billion shares for about $93.5 billion gross, plus about $26.0 billion in a private placement to AMD, NVIDIA, Microsoft, Google and others