Posts

Showing posts with the label AI-written code

Anthropic Used Claude to Rewrite Its Own API in Rust — 70% Less CPU, No Downtime

Image
Anthropic said yesterday, 25 November 2026, that it used Claude to rewrite its Messages API — the path behind the Claude API, Claude Code and Cowork — from Python to Rust, cutting CPU use per request by about 70% and median time to first token by about 20%, with no downtime. The story Anthropic tells in its engineering post is really about something else: verification. Writing the new code took Claude about a week for the core request path; proving it behaved exactly like the old code, on live traffic, was the hard part — and the part other teams will want to copy. All figures here are Anthropic's own, from its production charts, not independent measurements. The Messages API is the front door to Claude: the primary way customers reach the model, and the way Anthropic's own apps — Claude Code and Cowork — reach it too. Anthropic built it in 2023 in Python, when the company was still mostly a research lab and the API was, in one engineer's words, "basically a request f...