# Anthropic Platform Engineering Lead Katelyn Lesse on Building Software with Claude in 2026

> From Python monolith to Rust rewrite, Claude code review, and on-call agents, Anthropic reveals its internal 'software factory' engineering practices

- **Canonical URL**: https://aipress.im/en/article/anthropic-claude-software-engineering-2026-86c14842bc51
- **Markdown URL**: https://aipress.im/en/article/anthropic-claude-software-engineering-2026-86c14842bc51.md
- **Language**: English (en)
- **Published**: 2026-11-25T17:31:32.000Z
- **Updated**: 2026-11-25T20:15:22.461Z
- **Category**: Engineering & OSS
- **Editorial Score**: 78/100
- **Primary Source**: Pragmatic Engineer（RSS） (https://newsletter.pragmaticengineer.com/p/how-anthropic-builds-software-in)
- **Topics**: AI Agents, AI Coding & DevTools, Founder Interviews, Product Updates
- **Entities**: Anthropic / Claude

## Executive Summary

In the Pragmatic Engineer podcast, Anthropic platform engineering lead Katelyn Lesse revealed that her team used Claude to rewrite the API from Python to Rust, and has Claude agents handle code review and on-call alert triage. She estimates engineers closely review only about 20% of generated code, relying instead on shadow traffic to verify correctness.

## Key Takeaways (TL;DR)

- Anthropic's Messages API was rewritten from a Python monolith to Rust in about five months; no one on the team was a Rust expert, and Claude helped engineers get up to speed.
- The company runs a persistent Claude code review classifier that decides whether a PR needs human review, how many reviewers are required, and which team to route it to.
- Claude agents now receive API on-call alerts before humans and judge whether they are real, with the long-term goal of handling incidents without waking anyone up.

## Messages API Migrated from Python to Rust in Five Months

Katelyn Lesse leads the platform engineering team responsible for the Claude API and the infrastructure behind Claude Code and Claude Desktop. She revealed that the Messages API, which serves all external Claude token traffic, was originally a Python monolith handling authentication, tokenization, billing, and safety checks before calling the GPU stack to generate tokens. The team initially optimized Python, but the performance overhead remained substantial, so they ultimately decided to rebuild in Rust. The entire process took about five months and was completed by a handful of engineers.

The choice has historical context. In 2023, Anthropic was still a research company, and the team building the API was small and heavily overlapped with Research. Researchers primarily used Python, which made it easy to integrate with inference and other infrastructure code. OpenAI's API was likewise written in Python and later rewritten in Rust; both frontier labs faced the same problem: the monolith's CPU footprint gradually became a burden. Lesse also noted that the global CPU shortage made simply adding CPU capacity difficult.

- The Messages API handles authentication, tokenization, billing, and safety checks, and calls the GPU stack to generate tokens
- The rewrite was completed by a handful of engineers in about five months; no one on the team had expert-level Rust experience
- The team used shadow traffic to compare the new Rust API against the existing API in parallel, iterating until responses were completely identical

> "As long as you can break something down to a verifiable degree, you don't have to look at every line of Rust code written." — Katelyn Lesse

### A Rewrite Path Without Rust Experts or Strict Code Review

A year earlier, the same team chose Go for a new service because members could read and write it. By 2026, the team believed Claude performed well enough in Rust and used Claude to deepen their understanding of Rust during the rewrite. Lesse said the team did not perform strict code review; the real advantage was that the original Python API itself was a perfect test baseline.

She estimates engineers closely review only about 20% of generated code. This ratio is built on verifiability: the new API ran in shadow mode alongside production traffic until all responses matched the old system before switching over. For teams planning to use AI agents for large refactors, this approach suggests that designing verification mechanisms is more critical than line-by-line review.

## Claude as a Persistent Code Reviewer and On-Call Alert Triage

Anthropic runs a persistent Claude code review classifier internally that covers all pull requests. It first determines whether a change requires human review: for mechanical, low-risk changes such as SDK version bumps or adopting a newer model, Claude can decide no human involvement is needed; for fixing flaky tests, another Claude completes the review, merge, and deployment.

For changes that do require human review, Claude assesses a risk score and combines it with additional rules to decide how many human reviewers are needed, while routing the PR to the correct team. Lesse noted that code review and on-call are now interwoven with agent workflows, forming part of what she calls a 'software factory.'

- The Claude classifier determines whether a PR needs human review, how many reviewers are required, and which team should review it
- Low-risk mechanical changes can be reviewed, merged, and deployed autonomously by Claude
- API team on-call alerts are first triaged by Claude agents before deciding whether to wake a human

> Claude agents have been trained alongside the API team's on-call rotation for months and now judge whether alerts are real incidents or noise before humans do.

### From Alert Triage to Agentified Onboarding

In the API on-call scenario, Claude agents have been trained alongside the team's rotation for months. As the team built confidence in their ability to distinguish real alerts from noise, the agents now triage incoming alerts first. Lesse said the long-term goal is for Claude to handle actual incidents without waking a human, but the team has not yet reached that stage.

New hire onboarding has changed as well. In the past, tech companies assigned 'onboarding buddies' to new engineers, with senior engineers drawing diagrams to explain system architecture; at Anthropic, Claude is connected to the codebase and internal systems, and new members talk directly to Claude to learn the architecture. Additionally, the company is replacing traditional coding interviews with agent-based exercises, and some product managers are pushing features to production with agent assistance.

## Engineering Organization Lessons at a Ten-Thousand-Person Scale

According to the interview, Anthropic became a public company last week with a market value of about $1 trillion, while its headcount is only one-tenth that of companies with comparable market value. This efficiency structure and its agentified engineering processes are two sides of the same coin: code review, on-call triage, and onboarding are partly handled upfront by Claude, while human engineers focus on verification and high-risk decisions.

For engineering teams in the Asia-Pacific region, the transferable lesson is not to directly copy the Rust rewrite or eliminate code review, but to establish verifiable migration and review mechanisms. Shadow traffic comparison, replacing line-by-line review with test baselines, and configuring human review by risk tier are all practices that become more relevant as the proportion of agent-generated code rises.

- Anthropic has a market value of about $1 trillion and a headcount about one-tenth that of companies with comparable market value
- Agentified processes cover code review, on-call triage, new hire onboarding, and technical interviews
- Transferable practices include shadow traffic verification and risk-tiered human review configuration

> Lesse's team published an in-depth technical write-up of the Python-to-Rust migration the same day for external teams to reference.

## Industry Impact & Outlook

This disclosure shows that frontier labs are embedding AI agents across the entire software delivery chain, not just using them for code completion. For AI and platform engineering teams in the Asia-Pacific region, the takeaway is that verification infrastructure is rising in priority: as the share of agent-generated code increases, shadow traffic comparison and risk-tiered review are more scalable than line-by-line human review. At the same time, Anthropic's efficiency structure—supporting a $1 trillion market value with one-tenth the headcount—will prompt regional enterprises to reassess the role of agents in organizational design and hiring processes.

## Frequently Asked Questions

#### Why did Anthropic rewrite the Messages API from Python to Rust?

The Python monolith's CPU performance overhead remained substantial even after optimization, and the global CPU shortage made scaling capacity difficult, so the team rebuilt it in Rust in about five months, using shadow traffic comparison to ensure identical responses.

#### What exactly does Anthropic's Claude code review agent do?

It covers all pull requests, determines whether human review is needed and how many reviewers are required, and routes PRs to the appropriate team; for low-risk changes such as SDK version bumps, it can review, merge, and deploy autonomously.

#### Can Claude agents already handle on-call incidents independently?

Not yet. The agents currently triage alerts before humans, judging whether they are real incidents or noise; Lesse said the long-term goal is to handle incidents without waking a human, but the team has not yet reached that stage.
