Anthropic migrated its Messages API from Python to Rust with zero downtime, using Claude agent teams to hunt differences
luisdans · x · 2026-11-26
Anthropic's engineering blog details a zero-downtime migration of its Messages API (used by Claude Code, Cowork, and all API customers) from Python to Rust.
- Claude wrote the first version of the core request path in about a week; the hard part was proving behavioral equivalence
- The Rust version passed 98% of tests, but on real traffic only 25% of inputs matched the old service
- The old Python API acted as a judge: live requests ran through both versions, with every difference logged by location and magnitude (never customer text)
- Since one bug leaves the same fingerprint across requests, a coordinator agent assigned each new fingerprint a worker agent and opened Slack threads for engineers; workers validated guesses in sandboxes within seconds
- Results: 70% less CPU per request and 20% lower median time to first token
More from coding & agent
- Developer crams a full Alpine Linux box inside a Claude artifact — rmcwhorter99 · 2026-11-26
- Sakana Marlin adds Twilight 2.0 and Midnight 2.0 deep-research modes, refreshed slide output — SakanaAILabs · 2026-11-26
- Voice-only coding: dictating to Codex to orchestrate Devin, no keyboard needed — blelbach · 2026-11-26
- Zero-to-one tutorial: recreate a glasses-free 3D game with AI — lxfater · 2026-11-26
- SLDX ships B3 market data MCP server for AI agents, scores 100/100 on mcptry — mateusdacroce · 2026-11-26
- KlingAI's VibeVideoAgent lifts code-driven video quality, Opus 5.5 up 4.03→4.43 — Kling-Keye · 2026-11-26