How Anthropic builds software in 2026 with Katelyn Lesse
· Summarized
Key takeaways
- Anthropic rewrote the Claude API from a Python monolith to Rust in roughly five or six months because CPU capacity had become a bottleneck; models helped engineers learn and implement Rust despite limited prior experience.
- The rewrite was validated primarily through shadow traffic and output comparisons, because privacy rules prevented engineers from inspecting users’ prompts and completions directly.
- Anthropic’s internal Claude is connected to code, observability, postmortems, and other systems, allowing it to generate continually updated, interactive onboarding material.
- Managed Agents were rebuilt around durable servers, separate session storage, on-demand sandboxes, and credential injection at egress, improving reliability and reducing CPU use to about one-third of the original design.
- Code review is becoming risk-based: Claude classifies mechanical changes for autonomous merging, while humans still review changes with greater risk or uncertain side effects.
- Anthropic is using Claude to filter on-call noise and diagnose real incidents before a human responds, although humans still own the final operational responsibility.
- Anthropic has phased out traditional coding interviews as a major signal and is experimenting with exercises that measure how candidates use coding agents.
- Lesse argues that software engineering is shifting from hand-written implementation toward system design, coordination, accountability, security, and raising the ambition of the problems teams attempt.
Summary
From chemical engineering to Betterment and Stripe
Katelyn Lesse began studying chemical engineering, switched to computer science after enjoying her introductory programming course, and interned at Betterment when fintech was still a relatively new term. She returned for a second internship, joined full time, and spent almost seven years there. She became a manager early because she had joined a small team building Betterment’s new 401(k) business line and was positioned to take over when its manager left. Although she worried she might be managing too soon, she remained hands-on and enjoyed deciding both what to build and how to build it. She later joined Stripe Capital, partly to work again with a favorite former manager and partly because of Stripe’s engineering-led culture.
What Anthropic’s Cloud Platform actually owns
Lesse explains Anthropic’s stack from the bottom up: inference teams run models on GPUs, TPUs, and other accelerators, while Cloud Platform owns the layer above them. That layer includes the externally facing APIs used by customers and the foundational infrastructure for Anthropic’s own applications, including authentication, CPU and networking, sandboxing, billing, tokenization, and safety checks. Every token served by Claude passes through the Messages API, whether the request comes from an external developer, Claude Code, or another Anthropic product. Requests run across multiple regions and clouds, and unlike typical web APIs, a streaming conversation can hold a request open for up to an hour while conversation state is exchanged.
Why a Python monolith became a CPU problem
The original API was a Python monolith running in one Google Cloud region, a reasonable choice roughly three years earlier when a small group of researchers and engineers first exposed Anthropic’s models through an API. Python let research, inference, infrastructure, and product engineers work together easily, and the team was not yet operating at today’s request volume. That changed as Claude usage grew, including after a Super Bowl commercial drove more people to Anthropic’s apps, which also use the Messages API. The team tried conventional fixes—adding another region, routing traffic, and finding infrastructure efficiencies—but CPU became unusually difficult to obtain at cloud scale. Horizontal scaling was no longer effectively infinite.
The five-month Python-to-Rust rewrite
One engineer proposed rewriting the entire API layer in Rust rather than continuing to optimize Python. Anthropic had already chosen Go for some newer services because it balanced developer experience and efficiency, but Rust offered greater performance and memory safety without the perceived cultural cost of moving to C++. Lesse says models had become good enough to help engineers learn Rust, navigate the borrow checker, and implement unfamiliar details. The team used a “great leap” approach: instead of gradually replacing components, it created a Rust fork of the system while retaining a thin Python front door. A small core team, working with owners of other components, completed the rewrite in roughly five or six months.
Shadow traffic verified the rewrite without reading user data
The Python front door sent production requests through the existing system while shadowing them through Rust, and the team compared outputs until the difference rate was nearly zero. Privacy constraints made this unusually difficult: engineers could not inspect users’ prompts or completions to diagnose discrepancies. They therefore compared behavior up to the inference boundary and checked token counts on the way back out. The team iterated day by day, reducing differences without access to raw payloads. During rollout, the Python path remained available as a fallback if Rust failed, even though it was slower. Lesse estimates that engineers deeply inspected only about 20% of agent-created pull requests, while the rest were verified through behavioral checks and system-level validation.
Claude became the documentation and onboarding layer
Anthropic’s original Python system had grown so quickly that its documentation was incomplete, so the code itself became the main source of truth for both people and agents. New engineers now connect Claude to the codebase and internal systems through MCP servers and ask it to explain how the system works. Claude can produce prose, interactive diagrams with clickable components, videos, or podcast-style explanations, depending on how someone learns best. Lesse says this replaces the old pattern of finding a senior engineer, drawing boxes and arrows on a whiteboard, and relying on diagrams that quickly become outdated. The approach depends on giving Anthropic’s internal Claude access to code, observability, postmortems, and other company data.
Why Claude Managed Agents had to be rebuilt
Anthropic initially built Managed Agents by starting a sandbox for each request and booting Claude Code inside it, then released early versions for API customers and the Cloud Code web experience. The design exposed four problems: a dead sandbox killed the agent, booting the sandbox and Claude Code created high latency, credentials inside the sandbox created security risks, and every running sandbox consumed CPU. The team went back to first principles and moved the harness to a durable server, spawning sandboxes only when work required them and storing session state separately. A proxy could inject credentials from a vault at egress, and the redesigned system used roughly one-third as much CPU as the original. The rebuild took about five or six months.
Teams stayed small, but work became more senior and coordinative
Anthropic still organizes engineers into roughly two-pizza teams of about five to ten people because a team needs enough humans to understand a system, handle on-call, and cover vacations or illness. The teams now skew more senior: instead of a technical lead designing a system for less-senior engineers to implement, most team members must reason about architecture, coordination, and agent orchestration. The implementation phase is much shorter because agents write much of the code, but alignment remains substantial. Engineers still define goals, design service boundaries, coordinate with adjacent teams, and ensure that changes fit together. Lesse says the average engineer spends more time on these coordination tasks and less time writing code or manually orchestrating individual agents.
Agents changed code review and the change lifecycle
Anthropic uses a Claude-based classifier on every change to decide whether it needs human review, how many reviewers are required, and which teams should review it. Mechanical changes, such as updating SDK versions, can be categorized as low risk and merged without a human; riskier changes still require people. Agents can open pull requests, perform first-pass reviews, repair flaky tests when CI turns red, and report progress in Slack. Engineers increasingly specify an end-to-end goal rather than manually driving each pull request, while agents discover related tasks and ask for help only when necessary. Lesse emphasizes that the system is not yet fully autonomous: humans remain responsible for the systems their teams own, including changes made by agents or product managers.
Claude began screening Anthropic’s on-call alerts
Anthropic’s API is a highly load-bearing system, so its on-call rotation still has conventional monitors, detectors, pages, and human responders. The team first had Claude shadow the on-call process, with the goal of deciding whether an incoming page represented real trouble or noise. This already saved engineers from investigating alerts that turned out not to matter. When Claude determines that a page is real, it escalates to a human and simultaneously diagnoses the incident, often producing a recommended fix by the time an engineer reaches a laptop—especially useful when someone is woken during the night. Lesse says Anthropic is not yet comfortable letting Claude handle every real incident, but hopes to eliminate more human interruptions as confidence grows.
A product manager shipped a production feature
Anthropic’s boundary around who may ship code is moving. Lesse gives the example of a technically strong product manager who built and deployed prompt-cache diagnostics in the developer console with Claude in Slack. The feature explains cache misses through API responses and provides a dashboard showing cache-hit behavior, which matters because better prompt caching improves both cost and latency. Engineers could review the work and help maintain quality, but the product manager performed the implementation and pushed it to production. Accountability still follows system ownership: if the developer console has a problem, its owning team is paged, and that team may involve the product manager for context. The same principle applies when an agent makes the change.
Anthropic’s “software factory” automates the full loop
Although Anthropic does not usually call the system a software factory internally, Lesse says the description fits. Agents can create changes, verify them, perform code review, deploy them, monitor production, and respond to incidents. The platform acceleration team built QA agents that continuously exercise a system against a human-written description of how it should work and open pull requests when behavior breaks. Other agents classify changes, repair CI failures, and filter on-call noise. Lesse says engineers across the company also build their own workflow improvements, such as Slack-based multi-agent channels for ambitious or persistent problems. More agentic development has therefore increased, rather than reduced, the amount of tooling and experimentation engineers perform around the work.
Coding interviews are being replaced by agent-driven exercises
Anthropic has phased out its traditional coding interview as a primary signal because candidates sometimes performed strongly in system design and project discussions but struggled with hand-written data-structures-and-algorithms questions. Lesse connects that mismatch to the fact that engineers no longer write code by hand as often. The company is experimenting with alternatives: reviewing code written by an agent, reviewing an agent-generated system design, or building a system with a coding agent. The rest of the interview loop—technical design, past projects, and other evaluation areas—remains. Lesse says Anthropic has not found one perfect replacement because interviews must provide reliable signal, be reasonably consistent across interviewers, and avoid becoming overly burdensome to run.
The engineer’s role is shifting toward ambition and coordination
Lesse says levels, promotions, performance reviews, and team accountability remain in place, but evaluating seniority is harder because implementation speed is no longer a useful proxy for complexity. A migration that once might have taken two years can now take five or six months, so Anthropic focuses more directly on impact, technical difficulty, cross-team coordination, and outcomes. She sees an identity crisis among engineers whose identity was tied to typing code, but argues that the valuable work is moving toward solving larger problems: secure infrastructure, multi-agent systems, model-to-hardware interfaces, and reliable agent workflows. She recommends Project Hail Mary as a break from day-to-day work and as a science-fiction story about humans and an unfamiliar intelligence learning to cooperate.
Sponsors
- Entire · Entire, founded by GitHub’s last CEO Tomasz Dymke, is an AI-native Git forge with private repositories in the US, Europe, India, Australia, Brazil, and Singapore. Its “Trails” replace conventional pull requests by combining intent, code changes, and agent sessions across repositories, with configurable evals such as code, security, and slop reviews. Teams control whether agents may merge based on human review or automated gates.
- Antithesis · Antithesis runs deterministic hostile simulations, targeted tests, and fuzzing to find and reproduce bugs without traditional code review or integration testing. The ad described a Claude Code plugin that found and fixed a real HashiCorp Raft bug for about $50 in Claude tokens, and mentioned a self-serve Teams plan costing $2,999 per month. The code pragmatic50 gives 50% off the first month.
- TurboPuffer · TurboPuffer is presented as a fast, cheap, highly scalable hybrid search engine built on object storage. The ad says it serves hundreds of thousands of searches per second, hosts trillions of searchable documents, and is used by companies including Anthropic, Cognition, and Notion for large AI-scale search workloads.
Show notes
Brought to You By:
• Antithesis – verify your system’s correctness without human review or traditional integration tests – and avoid bugs or outages.
• turbopuffer– a vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable.
• Entire – The Git forge for agent-human collaboration. Built for the scale and throughput of agentic coding.
—
How did Anthropic rewrite the API serving every Claude token from Python to Rust?
Today’s guest is Katelyn Lesse, who leads platform engineering at Anthropic and previously led engineering teams at Stripe. Her team owns the Claude API and the infrastructure behind products like Claude Code and Claude Desktop.
We start with Anthropic’s move from a Python monolith to Rust. Katelyn explains why adding CPU capacity is tricky due to a global CPU shortage, how Claude helped engineers get up to speed in Rust, and how the team used shadowing to verify the rewrite against production traffic. We also get into why the team rebuilt Claude Managed Agents before launch, and what the new design means for reliability, latency, and CPU usage.
Katelyn walks us through what the software engineering job looks like today at Anthropic, and how code review and oncall interact with agentic workflows. We also get into the frontier lab’s “software factory”, how a product manager shipped a feature to production, and why Anthropic is replacing traditional coding interviews with agent-based exercises.
As of last week, Anthropic is a publicly traded company, with a market capitalization of around $1T, all while having a tenth of the headcount of other businesses with similar market capitalizations. Learning how Anthropic does software engineering might be instructive for companies that want a similar structure.
Timestamps
00:00 Intro
03:09 Stripe
07:04 How the Claude API works
10:21 The Rust rewrite of the Claude API
23:40 Verifying the rewrite with shadow traffic
31:11 Onboarding new hires with Claude
44:35 Building Claude Managed Agents
53:59 How engineering teams work at Anthropic
58:43 What agents handle on their own
1:04:47 Human code review
1:06:41 Oncall with Claude
1:09:31 Product managers shipping to production
1:16:25 Anthropic’s software factory
1:24:13 Phasing out traditional coding interviews
1:28:24 Levels, promotions, and performance reviews
1:33:21 The software engineer identity crisis
1:47:23 Book recommendation
1:48:12 Closing takeaways
—
The Pragmatic Engineer deepdives relevant for this episode:
• How building software is changing at Anthropic
• Inside OpenAI’s agentic software factory
• What is happening with code reviews?
• When AI writes almost all code, what happens to software engineering?
• AI SRE: what is it, how could it change on-call – and does it work?
• Inside Stripe’s Engineering Culture
• How Anthropic built Artifacts
—
Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email [email protected].
Get full access to The Pragmatic Engineer at newsletter.pragmaticengineer.com/subscribe
Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account