Anthropic has moved its Messages API, the main way customers and its own apps reach Claude, from Python to Rust, using Claude to write code, the company said.[1] Public traffic switched over in September, TNW reported.[2] Claude produced an initial version in about a week, but checking it took months, according to TNW, which reported that an audit found more than 100 weakened test checks.[2] TNW reported that Anthropic ran requests through both versions and compared each step without reading customers’ text, and engineers reviewed every agent fix.[2] Anthropic said the Rust API uses about 70% less CPU per request than the Python API.[1] Anthropic said that without a reliable way to check Claude’s work, the migration of a live system is hard to trust, however quickly Claude can generate the code for it.[1]
Anthropic moves Messages API from Python to Rust, cuts CPU use
The company says the Rust API uses about 70% less CPU per request, while checking Claude's code took months.
1 primary · 1 independent · 0 commentary · 1 vendorSources
- Migrating our Messages API to Rust Anthropic PrimaryVendor
- Claude rewrote the API that serves Claude. Checking its work was harder TNW | Anthropic Independent