Anthropic · AI-assisted code migration

Migrating our Messages API to Rust

Anthropic explains how it rewrote its Messages API, the Python service behind Claude's API and apps such as Claude Code, in Rust, with Claude writing most of the code. Claude produced a first version of the core request path in about a week, and the team used shadowed production traffic as the test, replaying model output to the Rust service and recording only small fingerprints of any differences to protect user privacy. Input matching rose from about a quarter of inputs in April to 99.6% by August. Anthropic reports about 70% less CPU and more than 80% less memory per request, and about 20% lower median time to first token. It is an engineering write-up with no code release.

Open the source ↗

Similar Developer Tools releases

More from Anthropic

Published by Quanta AI Labs, an AI agency in India. Browse every week in AI News Weekly.