---
id: 18642
lang: en
title: "Anthropic Rewrote Its Core API in Rust with Claude and Cut Compute Use by 70%"
published_at: "2026-11-29 16:35:19"
source_name: "X: @SleepDoNothing"
source_url: "https://x.com/SleepDoNothing/status/2126481137027711319"
canonical_url: "https://news.hamidun.com/en/news/18642"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Anthropic Rewrote Its Core API in Rust with Claude and Cut Compute Use by 70%

> **Краткая суть (BLUF):** Anthropic has moved the core API that customers use to reach Claude over to Rust, and Claude itself helped write the new code. According to the company, the new code uses roughly 70% less compute per request and starts responding about 20% faster. In practical terms, the same server can handle more users, and people wait less for the first words to appear. Teams running heavy services should consider where this kind of AI-assisted rewrite would pay off.  - Anthropic published the update on November 25; the figures come from the company itself - Compute savings per request are about 70%, and response start is about 20% faster - The team rewrote the core of the API in Rust, not a secondary peripheral service

Rewriting a working service in a different language is a classic engineering dream and a nightmare at the same time: months of work, the risk of breaking what keeps the business running, and uncertain payoff. Anthropic claims it found a cheaper way: the company used its own Claude model to rebuild its core API in Rust. In a post dated November 25, it reports two results: about 70% less compute per request and a response start about 20% faster.

## What Actually Changed

The API is the front door: applications and developers send requests to Claude through it and receive responses. This layer accepts the request, checks keys and limits, routes it to the model, and streams the result back. The neural network itself sits behind this door and did not change. What was rewritten was the scaffolding around the model.

The two claimed metrics are easier to grasp in everyday terms. "70% less compute per request" means the same server or the same amount of processor time can serve noticeably more calls. For a company that pays for a huge fleet of machines, that is direct infrastructure savings. "The response starts 20% faster" refers to the time until the first chunk of text. A chatbot user or a developer with streaming output notices this most: the pause before the words start coming.

## Why Rust, and Why Claude Matters

Rust is typically chosen for networking and high-load services because it compiles to fast machine code and does not use a garbage collector, the mechanism that in other languages periodically pauses a program to reclaim memory. As a result, latencies become more consistent. This is a well-known property of the language, not a separate admission from Anthropic, but it clearly explains why someone would undertake such a migration.

The more interesting point is that the port was carried out with the model itself. When an AI assistant takes on routine work, such as translating logic from one language to another, writing tests, and checking that the behavior of the old and new versions matches, the cost of rewriting drops. Projects that were previously postponed because of the volume of manual work become more realistic. For Anthropic, this also serves as a product demonstration: the company is showing that Claude can handle not only educational tasks but also the core of its own commercial system.

## How to Read the Numbers

Sober judgment is needed here. Both figures come from Anthropic itself, and there is no independent verification. The brief summary of the post provides no details about the load conditions under which the measurements were taken, nor how much of the result is tied specifically to the language change rather than to a broader architectural overhaul. Part of the gain almost always comes from the refactoring itself: when a team rewrites a system from scratch, it sheds accumulated poor decisions. That is why one cannot say "Rust delivers minus 70%"; it is more accurate to speak of the result for a specific project.

## What Practitioners Should Take Away

First: if you have a hot path, such as a proxy, gateway, or event handler, that is expensive in CPU or produces latency spikes, it is worth evaluating as a candidate for migration. Target the bottleneck, not the whole monolith.

Second: if you plan to use an AI assistant for a migration, put tests at the center of the process. Automated comparison of the old and new implementations is what separates a confident port from a gamble. Without it, the assistant's speed turns into a faster accumulation of hidden bugs.

Third: count the benefit in money. If the compute savings per request really amount to tens of percent, at high traffic volumes they will quickly outweigh development costs. For small services, the gain may not justify the effort.

The core takeaway is simple: a major player is publicly showing that migrating a core system to a more efficient language with an AI assistant is a workable approach. How reproducible it is in your own codebase is something you will have to verify with your own measurements.

---
- **Первоисточник:** [X: @SleepDoNothing](https://x.com/SleepDoNothing/status/2126481137027711319)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18642
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
