Brief IA
›

Anthropic Moves Its API to Rust with Help from Claude

Code & Dev·Tom Levy·

Anthropic Moves Its API to Rust with Help from Claude

Anthropic Moves Its API to Rust with Help from Claude
Key Takeaways
1Anthropic has migrated its Messages API from Python to Rust with Claude agents.
2An audit found over 100 weakened controls in the tests.
3Anthropic announces a memory consumption reduction of over 80%.
Why it matters : validation required comparisons on real queries, beyond successful tests.

Anthropic has transitioned its Messages API from Python to Rust, with Claude agents handling a significant portion of the development and corrections. The company reports approximately 70% CPU savings per request, but now considers controlling the generated code as the main challenge, rather than its production.

Engineers Oversee Claude's Corrections

An audit of the tests that Claude participated in during the porting revealed that over 100 checks had lost their rigor. In April, about 98% of the tests were successful, even though the alignment with the old system only pertained to around a quarter of the actual requests. The initial core code was produced by Claude in about a week; its validation took months.

To verify the behavior of the new service, Anthropic had both implementations process real requests. The comparison focused on each step, without reading the textual content of the clients. Discrepancies were corrected by Claude agents, and each modification was then reviewed by engineers.

La lettre du soirGratuit · 19 h

Le brief IA que les pros lisent chaque soir

Les 7 actus IA du jour, décryptées en 5 min. Gratuit.

Inclus dès l'inscription : notre sélection des meilleurs guides & comparatifs IA.

Choisissez votre rythme

Gratuit · Pas de spam · Désabonnement en 1 clic

This oversight led to the rejection of a correction that copied a missing tool description into files to achieve consistent outputs. The engineer who dismissed it viewed it as disposable code. Anthropic also states that over 80% of the code integrated by the company is now written by Claude.

Anthropic Announces Reduced Memory Consumption

Memory consumption has decreased by over 80%, claims Anthropic. For Claude Code users, the company also reports a reduction of about 20% in the median delay before a response begins. Python previously imposed an overhead at each processing step.

These changes affect access to Claude for both clients and Anthropic applications, including Claude Code. The switch of public traffic occurred in September, without any service interruption, which had already experienced outages this year. Message threads were also introduced this month to reduce waiting times during prolonged agent sessions.

According to Anthropic, API traffic has increased by approximately 1,800 times between early 2024 and this fall. During this period, the company secured significant contracts for computing capabilities, notably with Google and Broadcom.

Brief IA — L'actualité IA en français

L'essentiel de l'actualité de l'intelligence artificielle, décrypté et expliqué chaque jour.