AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Anthropic platform engineering leader Katelyn Lesse described how the company is changing its software-development practices, including a roughly five-month rewrite of its Messages API from Python to Rust. The account also covers AI-assisted code review and on-call workflows, but some practices are described as ongoing or experimental rather than established across the company.

Anthropic rewrote its Messages API from Python to Rust in around five months, according to platform engineering leader Katelyn Lesse, who discussed the project and the company’s broader use of AI tools in a Pragmatic Engineer interview. The service handles requests for Claude through the external API and products including Claude Code and Claude Desktop, making the migration relevant to the infrastructure behind those services.

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

The Messages API performs authentication, tokenization, billing and safety checks before passing requests to the GPU systems that generate Claude’s responses. Lesse said the service began as a Python monolith because Anthropic was a small research-focused company in 2023, and Python made it easier to connect the API to research and inference infrastructure. As demand grew, the service’s CPU use became a concern. The team first tried optimizing Python, then chose a Rust rewrite because the remaining performance overhead was still substantial, according to the report.

The migration was completed by a few engineers over several months, despite the team not having Rust experts, the source says. Rather than rely on extensive manual review of every change, the engineers ran the new service in shadow mode alongside the existing API and compared responses. Lesse estimated that engineers closely examined about 20% of the generated code. She said the old API gave the team a way to check the new implementation against real traffic and verify whether outputs matched.

The interview also describes a Claude-based pull-request review system. The classifier can decide whether a change needs human review, estimate review needs for higher-risk changes, and route work to relevant teams. The report says some mechanical, low-risk changes can be handled without a human reviewer, while other cases may receive review from another Claude system. It also describes an agent that had shadowed the API team’s on-call rotation for months, with the intention of having it respond to alerts before a human. The supplied source excerpt ends before giving the full account of how that on-call arrangement works.

At a glance
reportWhen: Published in 2026; the source says the…
The developmentThe Pragmatic Engineer published an interview with Anthropic platform engineering leader Katelyn Lesse about the company’s software practices, including its Python-to-Rust API migration and use of Claude in engineering workflows.

AI Moves Into Engineering Operations

The report offers a view of how a company building AI products is using its own models in software work, from learning an unfamiliar programming language to reviewing code and preparing to handle operational alerts. The Rust migration is a concrete example: Anthropic used generated code as part of a substantial infrastructure project, while checking the replacement against the existing service rather than treating the model’s output as automatically correct.

For other engineering teams, the account points to a practical trade-off. AI assistance may let engineers take on work in languages they do not know deeply, but the approach described depends on a reliable way to verify behavior. Shadowing the existing API provided a comparison method for this migration. The interview does not establish that the same process is suitable for every service or that AI review can replace human judgment for higher-risk changes.

Lesse also discussed how code review and on-call work interact with agentic workflows, as well as changes to engineering hiring. Those details matter because they suggest the effects extend beyond code generation into how work is reviewed, assigned and staffed. The available source, however, does not provide outcome data on error rates, review speed, operating costs or the reliability of agent-led responses.

Products Worth Considering

LG UltraGear 27G640A-B 27-Inch QHD IPS Gaming Monitor, 300Hz, 1ms, G-SYNC Compatible, FreeSync Premium, DisplayHDR 400, HDMI 2.1, USB-C, Adj

LG UltraGear 27G640A-B 27-Inch QHD IPS Gaming Monitor, 300Hz, 1ms, G-SYNC Compatible, FreeSync Premium, DisplayHDR 400, HDMI 2.1, USB-C, Adj

Jackery Solar Generator 1000 V2 with 200W Solar Panel, 1,070Wh, 1,500W, Dune White

Jackery Solar Generator 1000 V2 with 200W Solar Panel, 1,070Wh, 1,500W, Dune White

As an affiliate, we earn on qualifying purchases.

Why Anthropic Chose Rust

Anthropic’s original API was built when the company was smaller and closely tied to research. According to the interview summary, researchers worked mainly in Python, making the language a practical choice for integrating an early API with inference and other internal systems. The later CPU burden was not unique to Anthropic: the report says OpenAI also built its API in Python and later rewrote it in Rust.

Before selecting Rust for this migration, the team had chosen Go for new services because engineers already knew how to read and write it. Lesse said the team’s confidence in Claude’s ability to help with Rust had changed by 2026. That does not mean the model removed the need for engineering controls: in this project, the prior Python service served as a behavioral reference for the replacement.

The interview places the migration within a broader discussion of Anthropic’s “software factory,” agent-assisted engineering and hiring. The source also makes a high-level claim about Anthropic’s market capitalization and headcount, but the supplied material does not establish those figures independently. They are not needed to assess the specific API migration.

“As long as you can really boil something down to make it verifiable in some way, then you don’t have to look at every single line of Rust code that’s getting written.”

— Katelyn Lesse, as quoted in The Pragmatic Engineer

Limits of the Reported Workflows

The source describes the migration and several AI-assisted practices, but does not provide performance measurements, CPU savings, error rates or a detailed post-migration reliability assessment. It also does not specify the complete criteria for matching API responses in shadow mode or how differences were handled.

The on-call section is incomplete in the supplied material. It says an agent had shadowed the API team’s rotation and begins to describe the team’s confidence in its ability to assess alerts, but cuts off before confirming the agent’s precise authority, whether it now acts before humans in production, or what safeguards apply. The account likewise does not quantify how often pull requests are approved without human review or report the results of replacing traditional coding interviews with agent-based exercises.

How Agent Roles Are Evaluated

The interview describes work already undertaken on the API migration and an on-call agent that had been shadowing the team. The next relevant developments are whether Anthropic expands these agent roles, how it sets boundaries between automated and human decisions, and whether it publishes evidence on their performance. The available source does not name a timetable for those steps.

For the Rust service, the source reports that the rewrite was completed; it does not identify a further migration milestone. Readers looking for technical detail can refer to the migration deep dive mentioned in The Pragmatic Engineer’s report, while treating the interview’s estimates and descriptions as attributed statements from Lesse rather than independently audited results.

Key Questions

What did Anthropic rewrite?

Anthropic rewrote its Messages API, which serves Claude requests and handles authentication, tokenization, billing and safety checks before requests reach the GPU systems.

How long did the Python-to-Rust rewrite take?

The Pragmatic Engineer report says the project took around five months and involved a few engineers.

How did the team check the Rust version?

The team ran the Rust service in shadow mode alongside the Python API and iterated toward matching responses, according to Lesse’s account.

Does Anthropic use Claude to review every change?

The report describes a Claude review classifier that assesses whether changes need human review and routes higher-risk work. It does not say that every change is reviewed only by Claude.

Is Claude already handling API on-call alerts without humans?

The supplied source says an agent had shadowed the API on-call rotation and that Anthropic was building confidence in it. The excerpt does not confirm the agent’s production authority or whether it now responds before a human.

Source: newsletter.pragmaticengineer.com

You May Also Like

Total Annihilation, Rebuilt For Modern Computers

Nanolathe has released a public beta of an open-source Total Annihilation engine, with a browser demo and native builds for Windows, Mac and Linux.

Anthropic To Extend Text Watermarking Across Older Claude Versions

A Mashable headline reports a Nov. 3 expansion of Anthropic text watermarking to older Claude versions, but leaves the models and method unspecified.

Linux Support Is Coming To Snapdragon X2 Series

Qualcomm is preparing to add Linux support to its Snapdragon X2 Series, signaling a shift toward broader OS compatibility for these chips. Details are still emerging.

It’s Not Just Steam: New Game Pages Created Per Day On Itch.io Have Doubled In The Last Two Months, With AI Slop The Likely Culprit

Itch.io reports daily new game pages rose from about 3,000 to more than 6,000, while downloads and purchases did not double.