with-agents

The Pragmatic Engineer — selected conversations

How Anthropic builds software in 2026 with Katelyn Lesse

Twenty-five curated conversations on agent workflows, software factories, software correctness, developer platforms, engineering leadership, resilient systems, and software quality

A manually reviewed selection of Pragmatic Engineer conversations with Katelyn Lesse, Harjot Gill, Satya Nadella, Sean Allen, Will Larson, Uday Kiran Medisetty, Sam Newman, Maggie Appleton, Matt Pocock, Tibo Sottiaux, Martin Fowler, Dex Horthy, Boris Cherny, Mario Zechner and Armin Ronacher, Laura Tacho, Hillel Wayne, Mitchell Hashimoto, Kent Beck, Peter Steinberger, Grady Booch, Steve Yegge, DHH, Dax Raad, Charity Majors, and Addy Osmani. Topics include software factories and risk-based review, software correctness and fault-injection test workloads, engineering management and careers, developer platforms, resilient distributed systems, design prototyping, reusable skills, agent workflows, context and harness design, TDD and verification, architecture, measurement, accountability, and open-source governance. Practitioner observations, product-team and vendor claims, and forecasts are not controlled findings.

The Pragmatic Engineer 1 of 25
In this collection Browse 25 summaries 1 of 25

Katelyn Lesse, head of engineering for the Claude Platform at Anthropic, describes how her organization builds and runs the API layer that serves Claude's tokens and the infrastructure behind Claude Code and Claude Desktop. The conversation covers an agent-written rewrite of that API layer from Python to Rust, a redesign of Claude Managed Agents, agent-classified code review and on-call triage, product managers shipping code, and changes to hiring and leveling. Before Anthropic, she worked at Betterment and Stripe.

Based on the video's English auto-generated captions, with product and personal names corrected in the saved transcript; no check against the original audio. Lesse's accounts of Anthropic's systems, practices, and results are first-party reports without published measurements, apart from the figures she states. The host reads sponsor segments for turbopuffer, Entire, and Antithesis. Some of the Rust-migration and Managed Agents material also appears in Lesse's Latent Space conversation.

Key points

  • The platform sits between inference and every Anthropic app. Below Lesse's team, the inference team runs models on accelerators. Her team owns the external API and also runs authentication, networking, sandboxing, and other foundation services for Anthropic's own apps, which use the same Messages API as customers. A request passes through authentication and authorization, then a CPU cluster that runs across regions and clouds and handles tokenization, billing, and safety checks before tokens go to the GPUs. Unlike the APIs she worked on at Stripe, a request can stay open for up to an hour. 07:04–09:51(opens in a new tab)

  • A CPU shortage forced the Rust rewrite, and models made the language choice possible. The API started about three years ago as a single-threaded Python monolith in one GCP region, chosen so the small team could work easily with research. As request volume rose, including traffic around a Super Bowl commercial, getting more CPU from its cloud providers became a harder conversation than ever before. It first ran in another region and found smaller efficiencies. 10:39–15:27(opens in a new tab) Earlier new services had used Go as a compromise between efficiency and developer experience. For the most performance-sensitive work, the team chose Rust even though few members had used it, because models could handle the language's details. Lesse says engineers became comfortable with Rust faster than expected, partly by asking Claude to explain the code it wrote. 14:33–19:17(opens in a new tab) She contrasts this with new API services at Stripe that her team started in Java, then switched to Ruby because writing them in an unfamiliar language would have taken years. 34:44–37:28(opens in a new tab)

  • Verification replaced reading most of the generated code. Lesse estimates that about 75% of the time the exact syntax does not matter, while engineers ask the model questions about the remaining 25% out of curiosity. She argues that, given a clear statement of intent, the model will probably write better code than the engineer would by hand, and that Rust's compile-time checks suit agents because they make the output more trustworthy once it compiles. 20:05–23:40(opens in a new tab)

  • The port ran as a shadow system with output comparison and a fallback. Instead of replacing one piece at a time, a new senior engineer proposed porting the whole codebase at once. A thin Python "front door" served each request through the Python system and sent a shadow copy through the Rust system, and the team drove down the daily percentage of differences. Because Anthropic does not look at customers' prompts or completions, the team compared everything up to the point where a request goes to inference, then compared only token counts on the way back. During rollout, the front door fell back to Python whenever Rust errored or refused a request, until the team was confident enough to remove it. Lesse says engineers did not deeply read about 80% of the agent-opened pull requests and dug into the code for the other 20%, where they had to get behavior exactly right. 23:40–29:14(opens in a new tab)

  • Coordination took most of the human effort. A small core team finished the port in about five or six months while other teams kept changing the Python system. When a beta feature went to general availability on the Python side without warning, the shadow comparison suddenly showed many errors. The team then added linting and static analysis so new features needed both Python and Rust implementations, and aimed to keep that dual-maintenance period short. Lesse says engineers now spend far more time coordinating with other teams than implementing. 41:12–45:21(opens in a new tab)

  • Cheap implementation made a mid-project redesign affordable. Claude Managed Agents first started a sandbox for each request and booted Claude Code inside it. That design had four problems: a dying sandbox killed the agent, users waited for two boots before the first token, credentials had to sit in the sandbox with the agent, and every session ran its own sandbox, which cost CPU. After early betas, the team rebuilt the system. The harness now runs on a durable server, sandboxes start only to execute work, sessions are stored separately, and a proxy injects credentials from a vault at egress so they never enter the sandbox. Lesse says the new system uses about a third of the original CPU, and that a rebuild of this size was worth it because the implementation would be much faster than writing it by hand. 47:13–51:42(opens in a new tab)

  • A Claude classifier decides which changes need human review. It runs on every change and decides whether humans need to look, how many, and from which teams, or whether the change can merge directly. Changes that skip humans are mechanical changes the team has made many times, such as bumping SDK versions for a new model or API version; the reviewing Claude checks that the change has the intended outcome. Riskier changes, and changes in systems the team is not yet comfortable with, still go to people. Lesse says only a small number of changes skip review today, but Anthropic is pushing that share up. 59:10–1:01:14(opens in a new tab), 1:05:14–1:07:05(opens in a new tab) Other agents fix red CI, such as a flaky test merged into main, without a human. 1:01:14–1:02:16(opens in a new tab)

  • On-call starts with Claude separating noise from real pages. A Claude shadowed the API on-call rotation for months, and pages are starting to go to it first. If it judges a page to be noise, no human is interrupted. If the page is real, it escalates to a person and starts investigating, often reaching a diagnosis and recommended fix before the engineer reaches a laptop. Lesse says letting Claude resolve real issues without waking anyone is a goal Anthropic has not reached. 1:07:05–1:10:06(opens in a new tab)

  • Ownership stays with the team that runs the system. A technical product manager built and shipped prompt-caching diagnostics in the developer console by working with Claude in Slack, with engineers available to review. Lesse says core API changes are not yet in that category. 1:10:06–1:13:00(opens in a new tab) If that feature breaks, the developer experience team that owns the console gets paged and may pull in the product manager. The same rule applies to changes made by agents with no human involved. 1:13:00–1:16:11(opens in a new tab) Teams stay at about five to ten people so enough humans understand and can operate each system, but they skew more senior, because every member now designs and coordinates rather than implementing a tech lead's design. 54:14–56:07(opens in a new tab)

  • Anthropic works in the spirit of a software factory and spends more human time on tooling. Lesse says Anthropic does not use the term internally, but agents make, verify, review, and deploy changes. Experimental QA agents work from a human-written description of how a system should behave, test it continuously, and open pull requests for breakages. 1:16:11–1:19:00(opens in a new tab) A central developer acceleration team and a platform acceleration team build much of this tooling, and individual engineers build their own. Lesse says the share of human hours spent on this tooling has risen as more work became agentic. 1:19:00–1:21:58(opens in a new tab)

  • Coding interviews were phased out, and leveling falls back on impact. Lesse says Anthropic phased out the coding interview across its product and platform teams. 00:00–01:01(opens in a new tab) Candidates who failed it kept doing well in the rest of the loop because they no longer write much code by hand. The teams are testing replacements built around coding agents, such as reviewing agent-written code or designs and building something with an agent. They are judging each option on signal, trust, grading effort, and how well it fits a rubric; the design and project interviews remain. 1:24:45–1:28:24(opens in a new tab) Levels, promotions, and reviews continue, but project duration no longer indicates complexity: the Rust port took five to six months instead of an expected two years. Leveling therefore relies on impact, such as CPU saved, latency, incidents avoided, and coordination across teams. 1:28:24–1:31:29(opens in a new tab)

  • Opinion: deep expertise matters for the systems agents will need. To engineers who feel an identity crisis, Lesse argues that ambitious multi-agent systems cannot run safely until people solve engineering problems in security, infrastructure, identity, and authentication. 1:33:20–1:37:25(opens in a new tab) She expects work to center on coordination and on deep expertise in areas such as security, where problems will grow more complex. 1:44:19–1:47:19(opens in a new tab)

Full video: https://www.youtube.com/watch?v=9oNvKMd7xJo(opens in a new tab)

Search

Search field guides and resources across the site.

    Keyboard shortcuts

    Press ? to open this guide (usually Shift + /). Close it before using other site shortcuts.

    Show keyboard shortcuts
    ?
    Search site
    Ctrl + K
    Close the current dialog or menu
    Esc

    Site shortcuts are ignored while typing. Browser and extension shortcuts may take priority.