Anthropic migrated Messages API to Rust using agents, with Python as the oracle
RLanceMartin · x · 2026-11-26
Anthropic's engineering team published a deep dive on migrating the Messages API — the primary entry point for Claude Code, Cowork, and all customers — from Python to Rust, after API traffic grew 1,800x from early 2024 to fall 2026.
Key points:
- Generator–verifier gap: Claude wrote the first version of the core request path in about a week; the hard part was proving parity with production
- Verification was hard because the Python API kept changing (a moving target), Claude replies nondeterministically to identical requests, and customer requests couldn't be inspected
- Solution: use the Python API as an oracle, set up verification loops, and let a team of agents fix diffs until the Rust version matched production's observable behavior
A valuable engineering retrospective on making agents trustworthy for live-system migrations.
More from coding & agent
- CodeRabbit x Antigravity: MCP Apps bring interactive code review into the agent workflow — leslysandra · 2026-11-26
- Living Brain launches cross-platform AI memory layer claiming 92.2% on LoCoMo and 95% cost savings — testingcatalog · 2026-11-26
- 25 things to do before launching your first AI-built app, from a studio that shipped 25+ — PrajwalTomar_ · 2026-11-26
- Harness engineering: the layered stack that makes coding agents reliable — Pavan_Belagatti · 2026-11-26
- Blogger uses Grok bot to hourly auto-block snarky replies on X — AlchainHust · 2026-11-26
- Chatbot handoff test: does your agent confuse its own suggestions with customer actions? — AssociationNew7925 · 2026-11-26