Anthropic 用 Claude 代理将核心 Messages API 从 Python 重写为 Rust
11/26/2026 — 11/27, 23:19·3 sources (all)·6 reports (all)
Key takeaways
- Anthropic announced that it used Claude agents to write and fix the majority of code required to successfully migrate its core Messages API…
Background & analysis
On November 25, 2026, Anthropic published an engineering post recounting how it moved the Messages API, the entry point through which customers and its own apps reach Claude, from Python to Rust. According to the reports, Claude agents wrote and fixed much of the new code, producing a first version of the core request path in about a week. Anthropic says the new service uses roughly 70% less CPU per request and cuts median time to first token by about 20%; one account also cites a memory reduction of more than 80%.
The timeline runs from April, when testing began, to September 2026, when public traffic was switched to the Rust version. The cutover involved no downtime and no feature freeze, and the API itself did not change for users. The team said the real bottleneck was not generating code but confirming that the new code behaved exactly like the old one. The existing test suite could not be trusted, so the two versions were compared on live traffic instead.
As for why the migration happened, one report says API traffic grew about 1,800x between early 2024 and the fall of 2026. An earlier, narrower change to the output parser saved 8% to 10% of CPU, but every token still required three cross-language calls. The reports agree on the CPU and time-to-first-token figures; the memory figure appears in only one of them.
AI-generated from 6 reports · updated 2 days ago
Latest turnAnthropic has published an engineering account of moving its Messages API from Python to Rust, with Claude agents producing a first version of the core request path in about a week. Testing ran from April to September before public traffic switched, and Anthropic says API traffic grew roughly 1,800-fold from early 2024 to fall 2026. An early parser-only Rust rewrite cut CPU use by 8–10% but still moved each token across languages three times.
Related AI tools
- Heat index
- 34
- All sources
- 3
- All reports
- 6
- First seen
- 3 days ago
Reports on this story headlines open the original
Anthropic has published an engineering account of moving its Messages API from Python to Rust, with Claude agents producing a first version of the core request path in about a week. Testing ran from April to September before public traffic switched, and Anthropic says API traffic grew roughly 1,800-fold from early 2024 to fall 2026. An early parser-only Rust rewrite cut CPU use by 8–10% but still moved each token across languages three times.
DEV Community · AIAI score 53
Anthropic has moved the Messages API that powers Claude from Python to Rust, with most of the new code written by Claude itself, according to DEV Community. The company says the rewrite cut CPU per request by about 70% and median time to first token by about 20%, with zero downtime and no API changes.
DEV Community · AIAI score 54Anthropic rebuilt its Claude Messages API from Python to Rust, reporting about 70% less CPU per request, over 80% less memory, and roughly 20% faster median time to first token. The new version went live for public traffic in September 2026 with no downtime and no feature freeze.
DEV Community · AIAI score 58According to a DEV Community write-up, Anthropic rewrote its Messages API, the main entry point to Claude, from Python to Rust, cutting CPU per request by about 70% and median time to first token by about 20% with no downtime or feature freeze. Claude produced the first version of the core request path in about a week, but engineers said verification, not generation, was the real bottleneck.
DEV Community · AIAI score 56Anthropic announced it has migrated its Messages API from Python to Rust, with Claude agents writing and fixing much of the code. The new API reduces CPU usage per request by about 70% on live traffic.
The Next WebAI score 67Katelyn Lesse explains how Anthropic rewrote Claude's API in Rust and how AI agents are transforming engineering practices at the company. The discussion offers a look into how leading AI labs are integrating agents into real-world software development workflows.
Pragmatic EngineerAI score 63
Other stories people are talking about
- Heat index 383SurgeAnthropic Denies Claims Claude Sabotages ML Research5 sources
- Heat index 72Anthropic ships Claude Fable 5.2 and Mythos 5.2 with fallback to Opus 51 sources
- Heat index 59Claude Pro coding credits expire monthly, overage billed at API rates1 sources
- Heat index 173RisingClaude Code adds /ship command for automated PR review3 sources
- Heat index 79Tutorial: connecting Hugging Face model APIs to Claude MCP and n8n1 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

