Claude Wrote the Code Quickly. Proving It Worked Took Much Longer.
Anthropic’s API rewrite offers a useful lesson for anyone building with AI: generating working-looking code is only the beginning of the job.
By Duangduean Studios

A week is an impressive amount of time in which to produce a first version of an important service. It is also a remarkably short answer to the wrong question if nobody has established that the replacement behaves properly.
That tension runs through Anthropic’s 25 November engineering account of moving its Messages API from Python to Rust. The interesting part is the work between the first generated implementation and the point at which customers could depend on it.
What Anthropic reports
The company says Claude wrote an initial version of the API’s core request path in about a week. Verification was harder: the existing service kept changing, model responses could vary and customer requests could not simply be read to inspect differences.
Anthropic describes using the production service as a reference for checking the replacement and directing agents to correct mismatches. It reports about 70% lower CPU use per request and roughly a 20% reduction in median time to first token after the migration. These are the company’s measurements of its own system, rather than an independent benchmark or a prediction for every rewrite.
The result is worth reading with both halves attached: substantial reported gains, alongside substantial effort to establish compatibility.
A passing demonstration answers a small question
Think about a fictional booking form. An AI assistant replaces the old implementation and successfully submits a normal reservation. That tells the developer something useful. It leaves open what happens with an unusual postcode, a repeated click, a failed payment callback or an older saved record.
The point of the example is not to assume that generated code fails. It is to be precise about what has actually been checked. One successful path is evidence for one successful path.
A helpful development conversation therefore begins before the rewrite: which behaviours must remain compatible, and how will we recognise a difference? A screenshot cannot answer every one of those questions.
Keep a record of what correctness means
For a smaller project, start with a short description of the behaviour people rely on. Include the ordinary task, a few relevant edge cases and the failure states the user sees. Where a test is useful, make it check the expected behaviour rather than merely repeat the new implementation.
Then review the change against that description. Ask the assistant to identify assumptions, explain unfamiliar code and show how it verified its work. A convincing explanation still needs evidence from the application itself.
This is especially practical when updating a live website or a browser game. A feature can appear correct on a developer’s screen while an existing user reaches it through an older link, a different input device or a saved state. Choose checks that reflect the change being made.


