Key points

Why was verification so hard? A live system has countless “implicit” behaviours that no test records: users rely on edge cases and odd habits of the old system that no documentation mentions. A telling example: when Python writes a JSON tool call, it escapes emoji characters into text codes; Rust writes the characters directly — two prompts differing by a few bytes, the model still answers normally, with no error, but the answer may differ. Only by comparing step by step, before and after the model call, on real traffic, could the team catch discrepancies like this. To do that without reading customers’ request content (for privacy), they recorded only the “shape” of each difference — at which step it happened, by how much — then handed it to an agent to guess the cause and fix it.

The memory loop is the most interesting part of the project. When an engineer rejects an agent’s proposal — for example, the agent wanted to “patch” a problem by copying a search tool’s description into a file instead of making Rust call the right service for that description — the agent records the decision, the reason and the correct fix in shared memory. Later agents hitting the same error read the note and recognise at once that this is a known mistake, instead of proposing the old shortcut again. By June, one agent had even grouped 60 of the engineers’ review comments into general rules, which the engineers approved and put into CLAUDE.md. Anthropic likens the whole process to rebuilding the Ship of Theseus: replacing planks while the ship is still sailing used to be risky; now Claude lets you build an identical ship alongside — even while the old ship is still being repaired — then move passengers across in batches once you trust the two ships sail the same.

Anthropic’s diagram of the memory loop: when an engineer rejects an agent’s proposal, the agent records the decision, the reason and the correct fix in shared memory, so later agents recognise the same mistake instead of proposing the old shortcut again. Image: Anthropic.

Why it matters

This is one of the rare, detailed case studies of using AI to rewrite a live system serving millions of users — and the biggest lesson is not “AI writes code fast” but “verification is the new bottleneck”. Anthropic’s approach — using the live system itself as the referee, comparing step by step, recording each error’s “fingerprint” — can be applied to many other migration projects, and it shows the human role shifting: from writing code to defining what “correct” means and reviewing the judgements that automated checks cannot answer.

Sources
Anthropic Research — “Migrating the Claude API from Python to Rust”, Nov 25, 2026: anthropic.com/research/migrating-api-to-rust
InfoWorld — “Anthropic says it moved its Claude API from Python to Rust with no downtime”, Nov 26, 2026: infoworld.com/article/4253460/anthropic-says-it-moved-its-claude-api-from-python-to-rust-with-no-downtime.html