Anthropic rewrote its Messages API in Rust with Claude writing the code, and says CPU use dropped 40-50%
On the Latent Space podcast, Anthropic's Katelyn Lesse described how the team moved the Messages API, the backend behind Claude's API, to Rust even though nobody on the team was a Rust developer. According to the widely shared summary, Claude wrote the code while engineers wrote the plan and checked that the old and new versions gave matching results on real traffic, and CPU use fell by 40-50%. Latent Space host swyx's post about it passed 2,400 likes, and the clip has been read as a sign that the risky 'big rewrite' is now doable with agents.
Why it matters
It's a real production example of using an agent for a full language migration, with humans owning the plan and the testing rather than the typing.
Who it's for
Engineering leads weighing a rewrite or language migration, and anyone curious how Anthropic uses Claude on its own systems.
What it means for you
- Start small: pick one well-tested service and have Claude Code draft a migration plan you review first.
- Run the old and new versions side by side on copied traffic and compare outputs before switching anything over.
- Roll out gradually and keep the old version ready to switch back.
Applies to: The account comes from the Latent Space podcast; Anthropic hasn't published a written write-up we could find. The same approach works with Claude Code on any paid Claude plan.
Note: reported on X from a podcast interview; we haven't seen Anthropic confirm the figures in writing.
Source: Somi AI (@somi_ai), citing Katelyn Lesse on Latent Space on X
Written by Carlos Mendoza from the original post. Checked Nov 1, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
anthropicrustrewriteclaude-codebackend
More Claude tricks
- One URL and one key for all your MCP servers: ngrok's MCP Gateway is live · Dec 2
- OpenCode 2.4.2 cuts about 700 tokens per request and tunes GPT-6.2 · Nov 26
- OpenCode 2.4 gives your coding agent a browser, automations, and video generation · Nov 24
- Claude Code 2.1.330 draws your charts with easel and lets scheduled tasks run 30 days · Nov 21