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 software development, including a roughly five-month rewrite of its Claude-serving API from Python to Rust. The account also details AI-assisted code review and on-call practices, though the source does not fully specify their safeguards or the results of all these workflows.

Anthropic rewrote the service that handles requests for Claude from Python to Rust in about five months, according to platform engineering leader Katelyn Lesse, who discussed the work and the company’s broader software practices in an interview with The Pragmatic Engineer. The account offers a look at how the AI company is using its own models in development, code review and on-call support, while leaving some details about safeguards and outcomes unspecified.

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 service, called the Messages API, handles external Claude requests as well as traffic from Claude Code and Claude Desktop. Lesse said it performs authentication, tokenization, billing and safety checks before passing requests to the GPU infrastructure that generates tokens. The service had been built as a Python monolith; after attempts to optimize it did not address the performance overhead sufficiently, the team chose to rebuild it in Rust.

The migration took a few engineers and around five months, despite the team not having Rust experts, the report says. Engineers used Claude to help them learn the language and produce code. Rather than rely on strict code review for every change, the team ran the Rust service in shadow alongside the existing API and iterated until the two produced identical responses, according to Lesse. She estimated that engineers examined closely about 20% of the generated code, framing verification as a way to avoid reading every line.

The interview also describes an AI classifier that reviews pull requests, decides whether human review is needed, estimates the number of reviewers for higher-risk changes and routes work to teams. For some mechanical, low-risk changes, the system can assign review to another Claude agent and merge and deploy the change, the source says. Separately, a Claude agent had shadowed the API team’s on-call rotation for months before the team began considering it for a role ahead of a human responder.

At a glance
reportWhen: Published in 2026; the interview descri…
The developmentA Pragmatic Engineer interview with Anthropic platform engineering leader Katelyn Lesse details the company’s API rewrite and its growing use of AI agents in engineering workflows.

How AI Enters Engineering Operations

The account matters because it describes AI being used not just to generate code but to shape how a software team verifies, reviews and responds to changes. The Rust migration illustrates one approach: compare a replacement service against a live, established implementation before relying on it. That method gives the team a concrete behavioral check, although matching responses alone does not establish how every safety, reliability or performance concern was evaluated.

Anthropic’s approach may interest organizations weighing whether coding agents can take on operational work. The interview describes a range of responsibilities, from assisting with unfamiliar languages to triaging pull requests and shadowing on-call. It is an account of one company’s practices, not evidence that the same workflow will produce similar results elsewhere. The report provides limited quantitative information about review accuracy, incident rates, time saved or the longer-term effects of deploying agent-reviewed changes.

Products Worth Considering

Bose QuietComfort Headphones (2nd Gen), Wireless Noise-Cancelling Over-Ear Headphones, Black

Bose QuietComfort Headphones (2nd Gen), Wireless Noise-Cancelling Over-Ear Headphones, Black

Bose QuietComfort Ultra Earbuds (2nd Gen), Wireless Noise-Cancelling Earbuds, Black

Bose QuietComfort Ultra Earbuds (2nd Gen), Wireless Noise-Cancelling Earbuds, Black

As an affiliate, we earn on qualifying purchases.

From Python API to Rust

The API was originally written in Python when Anthropic was a smaller research-focused company in 2023, according to the report. The language made it easier for a small team working closely with researchers to connect the API to inference and other infrastructure. As use grew, the service’s CPU footprint became a concern. Lesse also cited difficulty adding CPU capacity amid what the report describes as a global CPU shortage.

The company had previously selected Go for new services because team members could already read and write it. Lesse said the team later judged Claude capable enough to assist with Rust, changing the calculation for the rewrite. The Pragmatic Engineer report says Anthropic published a separate technical walkthrough of the migration. It also describes an earlier period of shadowing for the on-call agent, showing that the company tested the agent alongside the human rotation before considering a change in responsibility.

“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, Anthropic platform engineering leader, as quoted in The Pragmatic Engineer

Limits of the Reported Workflow

The account does not provide a full breakdown of the migration’s performance gains, operational costs or error rates. It also does not explain how the team established that identical responses in shadow testing covered all relevant cases, or what additional checks applied to safety-sensitive changes. The estimate that engineers closely inspected about 20% of generated code is Lesse’s account; the report does not define how that figure was calculated.

Details of the on-call agent’s current authority are also incomplete. The supplied report text ends while describing how the team evaluates whether an alert is appropriate for Claude to handle. It does not establish the agent’s present escalation rules, whether it can take actions without approval, or how often humans still intervene. The described practices should not be read as confirmation that the agent independently manages all API incidents.

What Anthropic Has Yet to Detail

The next useful milestones would be fuller technical and operational details: the published migration walkthrough, measured performance and reliability results, and a clearer account of how the on-call agent escalates alerts. Anthropic’s stated process also leaves readers looking for evidence on how its pull-request classifier performs over time, including how often it sends changes to human reviewers and how errors are caught.

For now, the interview records reported practices rather than a complete evaluation of their effects. Further detail from Anthropic or subsequent reporting would help establish how broadly the workflows are used, what review and approval controls remain in place, and whether the engineering changes have produced measurable improvements.

Key Questions

What did Anthropic rewrite from Python to Rust?

It rewrote the Messages API, the service that handles Claude requests and performs tasks such as authentication, tokenization, billing and safety checks before requests reach the GPU generation infrastructure.

How long did the API rewrite take?

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

How did Anthropic check the Rust replacement?

According to Lesse, the team ran the new Rust API in shadow alongside the existing Python API and iterated until their responses matched. The report does not give a full account of test coverage or other validation measures.

Does Claude make all Anthropic code-review decisions?

No. The report says a Claude classifier sorts pull requests by review need and risk, while some low-risk changes may receive agent review and be merged and deployed. It does not say that every change bypasses human review.

Is Anthropic’s Claude agent handling on-call independently?

The report says the agent shadowed the API team’s on-call rotation for months and was being considered ahead of a human for some alerts. The supplied material does not clarify its current authority or escalation rules.

Source: newsletter.pragmaticengineer.com

You May Also Like

Is Moving Away From Sentence-Centric AI The Next Big Step?

TypeSafe AI’s Jev introduces a new class of decision-focused models, challenging traditional text-generating AI, with implications for automation and enterprise AI.

Calendar Infrastructure For Coordinating AI Agent Schedules

A proposed calendar layer would coordinate tentative holds across AI scheduling tools, but its effectiveness and demand remain untested.

Does 512GB Storage Really Boost AI On The M5 Ultra Mac Studio?

Analyzing if the 512GB storage option in the M5 Ultra Mac Studio enhances AI performance, focusing on memory capacity versus bandwidth impacts.

Manage Your AI Coding Subscriptions From One T3 Code Workspace

T3 Code is a free, open-source workspace for running coding agents with existing subscriptions, managing branches and reviewing changes.