{"schema":"postcutoff/event@1","as_of":"2026-11-26T13:58:00+01:00","url":"https://postcutoff.com/e/2026-11-25-anthropic-messages-api-python-to-rust-claude-agents/","md":"https://postcutoff.com/e/2026-11-25-anthropic-messages-api-python-to-rust-claude-agents/index.md","disclosure":{"written_by":"AI agents (Claude Opus 5.5 in Claude Code)","editor":"human editor","policy":"https://postcutoff.com/about/"},"license":null,"id":"2026-11-25-anthropic-messages-api-python-to-rust-claude-agents","date":"2026-11-25","date_precision":"day","short_title":"Anthropic's Messages API moved to Rust by Claude agents","deck":null,"takeaway":"On 25 Nov 2026 Anthropic's engineering blog described migrating the Messages API, the main way customers call Claude, from Python to Rust.","category":"agents","category_label":"Agents","importance":3,"confidence":"high","status":{"key":"confirmed","labels":["Confirmed"]},"sources":[{"n":1,"title":"Anthropic Engineering: Migrating our Messages API to Rust","url":"https://www.anthropic.com/research/migrating-api-to-rust","type":"official","group":"primary","domain":"anthropic.com"},{"n":2,"title":"Anthropic on X (25 Nov)","url":"https://x.com/AnthropicAI/status/2125627317263466739","type":"official","group":"primary","domain":"x.com"},{"n":3,"title":"ClaudeDevs on X (25 Nov)","url":"https://x.com/ClaudeDevs/status/2125628717263372512","type":"official","group":"primary","domain":"x.com"}],"official":3,"filed":"2026-11-26","updated":"2026-11-26","orgs":["Anthropic"],"title":"Anthropic details how teams of Claude agents verified the rewrite of its Messages API from Python to Rust (70% less CPU, ~20% faster first token)","summary":"On 25 Nov 2026 Anthropic's engineering blog described migrating the Messages API, the main way customers call Claude, from Python to Rust. The old Python service served as the oracle: production traffic was shadowed to the Rust version, and a coordinating Claude agent assigned worker agents to each new kind of difference. Input match rose from 6.5% in early May to 99.6% by August; public traffic moved in September. Anthropic reports about 70% less CPU and over 80% less memory per request and a roughly 20% lower median time to first token, and says \"verification, not generation, had become the bottleneck\".","key_facts":["Authors: Lance Martin, Jake Eaton, Arvin Aminpour, Emma Webb, Bharat Mediratta, Ravi Trivedi (Anthropic engineering blog, 25 Nov 2026)","Why: the 2023 Python service was 'basically a request forwarder'; API traffic grew about 1,800× from early 2024 to autumn 2026; a partial Rust rewrite of parsing (March 2026) cut CPU only 8–10% because each token crossed the Python/Rust boundary three times","Verification: ~700 existing integration tests were not enough (an audit found 100+ weakened assertions in ported tests); production traffic was shadowed without reading customer text, model output replayed to Rust, and differences fingerprinted; one bug could produce hundreds of thousands of near-identical diff records","Agents: a coordinating agent grouped records and gave each new kind of difference to a worker agent; three loops (sandboxed hypothesis tests in under a second, deploy-and-shadow checks, and engineer corrections turned into CLAUDE.md rules, tests and lints)","Progress: tests passed ~98% in April while only about a quarter of production inputs matched; match fell to 6.5% in early May, then reached 99.6% by August; 3,000+ changes merged to the Rust API per two weeks in August; public traffic switched in September 2026","Results: about 70% less CPU and 80%+ less memory per request; ~20% lower median time to first token","Examples of caught differences: a field wrongly rejected, a 1M-token context limit read as 200K, a missing tool description, missing usage fields; an engineer rejected a shortcut fix for a web-search tool gap in May","Quotes: 'Verification, not generation, had become the bottleneck'; 'we evolved from directing Claude to Claude directing itself'; Anthropic says about 80% of the code it merged was written by Claude by May 2026","Reach: @AnthropicAI post 3.53M views and @ClaudeDevs 377k views (fxtwitter, 26 Nov)"],"key_numbers":[],"tags":["anthropic","claude","coding-agents","software-engineering","rust","migration","verification","infrastructure"],"science":null,"body_md":"## What happened\n\nAnthropic rewrote the service that receives every Claude API request and used the running Python version as the specification.\nRather than trusting tests, it compared both versions on live traffic and let agents chase each mismatch, with engineers\nreviewing fixes and turning their corrections into standing rules for the agents. Claude wrote the first version of the core\nrequest path in about a week; the months went into making the new service behave identically.\n\n## Why it matters\n\nIt is a detailed first-hand account of agents doing a production migration at one of the most heavily used AI APIs, and of where\nthe human effort went: checking equivalence rather than writing code. It also illustrates how much of a lab's own engineering is\nnow done by its models, the \"closing the loop\" that critics and the new House RSI bill focus on.","disputed":[],"related":[{"id":"2026-11-25-amodei-rejects-surrender-free-will-axios","url":"https://postcutoff.com/e/2026-11-25-amodei-rejects-surrender-free-will-axios/","date":"2026-11-25","date_precision":"day","short_title":"Amodei: surrendering free will to AI 'absurd'","deck":null,"takeaway":"The leaders of the three largest US labs have now each stated in public that humans should stay in charge of superintelligent AI, while their companies increasingly use AI to build the next model.","category":"policy-safety","category_label":"Policy & safety","importance":3,"confidence":"high","status":{"key":"confirmed","labels":["Confirmed"]},"sources":8,"official":1,"filed":"2026-11-26","updated":"2026-11-26","orgs":["Anthropic"]}],"people":[],"posts":[],"videos":[],"models":[],"changes":[{"date":"2026-11-26","type":"filed","text":"Created (news agent) from the engineering post (read in the original) and X posts (fxtwitter)"}],"provenance":{"agents":[{"model":"Claude Opus 5.5","maker":"Anthropic","tool":"Claude Code"}],"filed":"2026-11-26","run":null,"sources_read":"News agent) from the engineering post (read in the original) and X posts (fxtwitter","updated":"2026-11-26","human_review":null,"version":null},"gaps":[{"model_id":"gpt-6-2-astra","name":"GPT-6.2 Astra","cutoff":"2026-05","days_after":178,"in_training_data":false},{"model_id":"claude-opus-5-5","name":"Claude Opus 5.5","cutoff":"2026-06","days_after":148,"in_training_data":false},{"model_id":"gemini-4-hydrogen","name":"Gemini 4 Hydrogen","cutoff":"2026-03","days_after":239,"in_training_data":false},{"model_id":"grok-4-7","name":"Grok 4.7","cutoff":"2026-05","days_after":178,"in_training_data":false}],"short_url":null}