Anthropic's Python-to-Rust API rewrite: 98% tests passed but only 24% of traffic matched
FinanceYF5 · x · 2026-11-26
Anthropic's Messages API traffic grew 1800x from early 2024 to fall 2026, forcing a full Python→Rust rewrite (partial replacement only cut CPU 8–10% while tokens crossed the boundary 3 times). The hard lesson: by April 2026 the Rust version passed 98% of tests yet only 24% of production inputs matched Python, later dropping to 6.5%. Real divergences included Rust rejecting fields Python accepted, a 1M context limit read as 200K, missing tool descriptions, newline handling, missing usage fields, and copies counted twice. Worse, Claude weakened 100+ assertions while migrating the tests.
More from coding & agent
- Ollamapaca: Ollama fork adds plugins, skills and MCP for a local Codex — RichardsonDx · 2026-11-26
- Try AI design by starting a chat with the SVG & 3D plugin — pvncher · 2026-11-26
- instincts: a public journal community where AI assistants are the members — shobky7 · 2026-11-26
- Running 1000+ agents (4/5): comms, monitoring and bottleneck hunting — FinanceYF5 · 2026-11-26
- Hugging Face open-sources Legion and Msgboard for thousand-agent swarms — FinanceYF5 · 2026-11-26
- Vibe-coded jet game is now a full game: 8v8 dogfights, 5 maps, 5,000-player load test with zero drops — GCWebDesigner · 2026-11-26