Anthropic says Claude agents helped rewrite the very API that serves Claude. The company moved its Messages API from Python to Rust with no downtime, cutting CPU use per request by about 70% and median time to first token by about 20%, according to its own Anthropic post published Nov. 25.
The numbers
The Messages API is the main way customers, and Anthropic's own apps like Claude Code and Cowork, reach Claude. Per Anthropic and InfoWorld:
- About 70% less CPU per request.
- More than 80% less memory, per InfoWorld.
- About 20% lower median time to first token.
- No downtime and no freeze on feature development.
- Claude wrote a first version of the core request path in about a week.
API traffic grew roughly 1,800 times from early 2024 to fall 2026, Anthropic says. The Python service, built in 2023 as what one engineer called "basically a request forwarder," was not designed for that load.
Anthropic's own chart of daily API requests barely registers through 2024, climbs gradually in 2025, then shoots up in 2026 to its highest point in October. By late 2025, every request also had to be validated, turned into a prompt, tokenized and screened by safety classifiers, and Python added overhead to each of those steps.



