En 30 secondes
Anthropic rewrote the API layer serving Claude from Python to Rust in roughly five or six months, says platform engineering lead Katelyn Lesse. Engineers compared shadow traffic against the old system and kept a Python fallback, allowing them to focus detailed review on discrepancies. The same shift is changing daily work: a classifier routes risky changes to humans, agents help triage alerts, and teams remain accountable for their systems. Anthropic is also testing agent-based exercises in place of hand-coding interviews.
- 1CPU pressure drove a Python-to-Rust API rewriteLesse says request growth made CPU capacity difficult to obtain. Better models made Rust practical even with limited prior experience on her team.
- 2Shadow requests and a fallback made the rewrite testableThe team ran requests through the existing Python path and a Rust shadow, compared behavior without viewing prompts or completions, and retained Python as a temporary fallback.
- 3A redesigned agent service used roughly one-third of the CPUSeparating the durable agent harness and session state from on-demand sandboxes addressed latency, reliability and credential placement, Lesse says.
- 4A classifier decides which changes need human reviewIt routes risky changes to people while allowing certain mechanical updates to proceed automatically. Lesse says the set eligible for automation is still growing.
- 5An on-call agent filters alerts and starts investigationsClaude first shadowed responders, then began filtering noise and escalating real problems; autonomous handling of more real incidents remains a goal.
- 6Hand-coding interviews are being replaced with agent-based exercisesLesse says product and platform teams are testing how candidates review or build with agents while keeping design and project interviews.
À retenir
- Make an agent-built migration verifiable with parallel traffic, measurable comparisons and a fallback.
- Route mechanical changes and risky changes differently; Lesse says humans still review the latter.
- Use an on-call agent to filter noise and begin diagnosis, escalating real incidents to a person.
- Assign accountability to the team operating a system even when an agent or another role changes it.
- Test candidates on working with agents while retaining technical design and project discussions.
Lire le texte remanié, chapitre par chapitre
The API rewrite as a test of agent-built software
Lesse describes a rewrite where engineers relied on verification and focused review. Her team also changed how it evaluates engineering candidates.
Katelyn Lesse says Anthropic rebuilt the API layer serving Claude in Rust and relied on verification rather than reading every line generated by coding agents. She estimates that engineers did not deeply read all the code in roughly 80% of the agent-opened pull requests, but examined details where problems arose.
From Betterment and Stripe to Anthropic
Lesse moved from engineering into management while remaining hands-on. She later worked on Stripe Capital.
Lesse studied chemical engineering before an introductory computer science class persuaded her to change majors. She interned at Betterment, an automated investment adviser, and returned after college, spending almost seven years there.
She joined a new business line at Betterment as it was building a retirement product. When the manager left, her knowledge of the team’s work helped her step into the opening.
At Betterment, she joined a small team building a 401(k) offering and became its manager after a few years. The team was small enough for her to keep building and reviewing code while learning management.
Lesse later joined Stripe to work on its lending business, Stripe Capital. She describes Stripe as an engineering-led company that moved quickly and expanded into new financial products.
The platform behind every Claude response
The platform supplies the external API and supports Anthropic’s applications. Requests pass through CPU services before reaching model inference.
At Anthropic, her platform team sits between the inference systems running models on accelerators and applications built on top. It owns the external API and foundational services for Anthropic’s own apps; Lesse says every Claude token goes through the Messages API.
Lesse says the platform also supports authentication, networking, CPU infrastructure and sandboxing for the company’s applications. The inference team below it operates the models on accelerators.
A request passes authentication and authorization before reaching a CPU service that handles tokenization, billing and safety checks. The service runs across regions and clouds, sends work to accelerators, and returns the response. Long-lived requests and repeatedly sending conversation state create their own reliability challenges.
Why a Python service moved to Rust
CPU pressure and higher request volumes pushed the team beyond incremental optimization. Better models helped engineers work in Rust despite limited prior experience.
The API layer began as a Python monolith in a single cloud region. Python made sense when a small group spanning research, inference, infrastructure and products needed a common language, but rising request volumes made CPU capacity and efficiency harder to manage.
Before selling API access, Anthropic had mainly been a research company. Lesse says Python let a small group close to research bring models to external customers and applications without introducing a separate language barrier.
The team expected traffic spikes from the Super Bowl commercial because Anthropic’s apps use the same API. Lesse says the CPU cluster became constrained and obtaining additional cloud capacity was less straightforward than in her earlier experience.
The commercial was a familiar engineering problem: anticipate a sudden increase in demand. Someone who downloaded the Claude app during the game would use the same underlying API as an external developer.
Before considering a rewrite, engineers expanded into another region and found smaller infrastructure efficiencies. Network bandwidth between regions introduced another constraint, and some engineers argued a more drastic change would be needed for continuing growth.
Anthropic had already started building some services in Go, a compromise between performance and a language developers could readily use. By the time the team considered the most performance-sensitive API paths, models had improved enough to make Rust practical even without many experienced Rust developers on the team.
For earlier services, Go balanced efficiency with developer experience at a time when models were less capable. Later, engineers chose Rust for stronger performance and the verification benefits of its compiler.
Lesse says Claude helped engineers both write Rust and understand the code. The team had growing pains, but people became comfortable faster than expected. She distinguishes needing a general understanding of the system from knowing every detail of language syntax.
A similar transition had happened with Go: engineers used to Ruby or Python worried about a new language, then found they could learn its patterns relatively quickly with model assistance.
An engineer can ask the model why a piece of code works and learn as deeply as needed. Lesse estimates that the model does much of the implementation work, while human curiosity and judgment still lead people to investigate details.
Lesse says engineers remain inclined to understand what a model writes, even if they no longer need to memorize every syntactic detail. They can ask follow-up questions until they understand the parts that matter to their work.
Host Gergely Orosz notes that Rust’s compiler checks can be frustrating for people writing code by hand. Lesse says agents can work through those iterations, while the checks provide a useful verification layer for the result.
Shadowing traffic without inspecting prompts
A parallel Rust implementation processed shadow requests while Python remained the front door. The team reduced differences and retained a fallback during rollout.
The original migration plan was to extract and rewrite pieces one by one. A new senior engineer proposed building a parallel Rust version of the whole codebase, with a thin Python front door sending the original request through Python and a shadow request through Rust.
Comparing the two paths was difficult because Anthropic does not inspect customers’ prompts or completions. The team compared behavior up to the inference layer and checked token counts on the way back, then worked to reduce the observed differences.
The privacy rule complicated debugging: when the two implementations disagreed, the team could not simply open a customer’s raw prompt and response to find the cause. It had to rely on observations available around inference instead.
The verification loop compared what the two systems sent toward inference and checked resulting token counts. Engineers repeatedly investigated differences until the shadow outputs were close enough to begin rollout.
Once the mismatch rate was nearly eliminated, the team began rolling out Rust. The Python front door remained temporarily so that requests failing on the Rust path could fall back to the old system. They removed it after gaining confidence.
Lesse says verification made it possible not to read every line of agent-written code. Because the API is central, engineers nevertheless dug into the details when a change was especially important or a discrepancy proved difficult to resolve.
In Lesse’s rough estimate, the team did not deeply read every line in around four out of five agent-created pull requests. The remaining changes often involved tricky failures or behavior the engineers needed to understand precisely.
Onboarding from the codebase
New hires ask Claude to explain systems using connected internal information. Lesse contrasts this with earlier investments in language training.
The old Python system had grown quickly without perfect documentation, so the code itself became much of the source material for agents. New hires can ask Claude to explain how components fit together and generate interactive diagrams, prose or other formats tailored to how they learn.
Instead of relying only on a colleague to draw boxes and arrows at a whiteboard, a new engineer can request a navigable rendering of the architecture. The model can also make a written explanation or other presentation from the same available sources.
Anthropic connects its internal systems to Claude through tools, giving it access to information such as code and incident records. Lesse says the codebase itself supplies much of the material used in onboarding explanations.
At Stripe, Lesse worked on new API abstractions where a team considered Java for performance. After starting in Java, they chose Ruby instead: the projected efficiency gains did not justify the years the team expected implementation to take in an unfamiliar language.
The earlier Stripe example turned on a practical tradeoff: a theoretically more efficient language would have imposed a large cost to learn and implement. The team still wanted clean services, but decided to write them in its established language.
She recalls earlier language changes involving hours of tutorials and training before teams could build. Agents can now help with both implementation and learning, reducing the upfront investment needed to work in a new language.
Lesse says people who enjoy creating a result may welcome faster tools, while people who most enjoy language details may find the transition harder. She still sees work on languages and frameworks for engineers who care deeply about those problems.
Orosz argues that companies hire engineers to achieve business goals, with readable code historically serving maintainability and performance. Lesse agrees that language choices are often means to those ends, though language design itself remains a field of work.
Asked how quickly the rewrite happened, Lesse includes an initial period when one or two people were investigating the idea. The small core team then needed help from multiple owners across the API.
Coordinating a five-to-six-month migration
The old service continued changing while the rewrite progressed. Checks eventually required teams to implement new features on both paths.
The Rust migration took approximately five or six months, including some early investigation, with a small core team coordinating with owners of other parts of the system. Other teams continued developing the Python service during the migration.
A feature went from beta to general availability in Python without the Rust team expecting it, producing discrepancies in the shadow traffic. The team added checks so later features also received Rust implementations, then tried to shorten the period during which teams had to maintain both.
Lesse says engineers spend more time coordinating with other teams and less on implementation. Agents can also orchestrate other agents; people concentrate on bringing the pieces together and ensuring teams agree on the work.
A new architecture for managed agents
Separating durable orchestration from disposable sandboxes addressed four operational problems. Lesse says average CPU use fell to about a third.
The team also built Claude Managed Agents, a set of APIs for running cloud-based agents. Customers had been building their own agent infrastructure and encountering the same reliability, latency and security problems.
Customers running agents inside sandboxes had to consider what happens if the sandbox dies and where credentials belong. Anthropic wanted a shared architecture usable both for customer APIs and its own Claude Code web and mobile experiences.
The new services needed to run the agent harness, store session state and start sandboxes. The team chose Go, before the Rust migration, and devoted more effort to API design, architecture and verification than to typing the implementations.
An early design started Claude Code inside a sandbox for each request, supporting both API customers and Claude Code sessions on the web and mobile. The team found that a dead sandbox killed the agent, startup delayed responses, credentials could end up inside the sandbox, and CPU use was high.
In the first design, every request needed to boot a sandbox and then Claude Code before the model could return tokens. Running a separate sandbox for each agent also consumed substantial CPU.
The team redesigned the system around a durable server for the agent harness, separate session storage and sandboxes started only when needed. A sandbox failure no longer had to kill the agent, and the initial request could go to the model without waiting for a sandbox.
For external tool calls, a proxy can inject credentials from a vault as traffic leaves rather than placing them in the sandbox. Lesse says the redesigned system used about one-third as much CPU on average as the initial version.
The revised architecture keeps credentials in a separate vault and injects them at the point of outbound use. Lesse presents the change as a way to avoid storing them alongside an agent in the sandbox.
Rebuilding the architecture was a serious decision, but Lesse says the team judged it worthwhile because it could address all four problems and implementation was faster with agents. The project from idea through redesign and rollout took roughly five or six months.
When Lesse joined, the API team had around 30 engineers and was occupied with model launches and cloud distribution. As the team grew and building became easier, it became feasible to allocate people to the more ambitious managed-agent system.
Even a faster implementation required upfront agreement on what the system should achieve. The platform’s position in the middle of research, model inference, safety and product teams creates many connection points to coordinate.
What has not changed, she says, is the need to agree on goals and coordinate across teams. The platform sits between research, inference, safety and applications, so many groups must align even when implementation itself moves faster.
Small teams work with persistent agents
Teams still own systems and coordinate across people, but agents can handle parts of implementation and routine changes.
Anthropic still organizes engineering around teams of roughly five to ten people, enough to understand and operate a system through absences and on-call rotations. Lesse says teams skew more senior because more members work on design and coordination rather than implementing a lead’s plan.
Lesse says each engineer is more likely to be involved in design or discussions with other teams. The team size still reflects the need for people who understand the service and can support it when colleagues are away.
Many API customers build their own internal agent platforms rather than only public products. Anthropic similarly uses Claude Code for interactive work and has built its own tools for orchestrating cloud agents, often through Slack.
Lesse says the company generally works with a recognizable Claude rather than a cast of separately named agents. Permissions and behavior can differ by direct message or channel, while people and Claude collaborate in the same place.
The team’s agents do not all have separate identities. Lesse describes a shared Claude interaction model whose permissions and context can vary across Slack channels and private messages.
Instead of following every individual code change, an engineer may define a larger project, discuss a plan with Claude and send agents to work on components. Some agents spawn further tasks, and a human may interact with only a subset of the resulting changes.
Mechanical SDK version changes are one example of work the team is trying to automate end to end. Claude can open a pull request and another classifier determines whether it fits a known low-risk pattern or needs a human reviewer.
For an SDK release, a version bump can be sufficiently predictable to treat as a mechanical change. A review agent checks whether the change genuinely matches that category or needs a person.
Persistent agents can also react to events such as a failing continuous-integration test. Lesse says the shift is from a human directly coordinating every step toward some processes running without a person in each loop.
Orosz asks what happens after an engineer delegates a project. Lesse says the first agents can create more tasks themselves and provide updates, allowing the engineer to choose how closely to follow the intermediate work.
In Slack, agents report what they have done and what they plan to do next. They might notice a related system owned by another team and ask whether to contact that team; a person can steer the work or let it continue.
Review, on-call and production ownership
A classifier assigns human review according to risk, and an on-call agent filters alert noise. Teams remain accountable for the systems they operate.
A classifier runs on each change and decides whether a human should review it, how many reviewers are needed and which teams should be involved. Lesse says Anthropic wants more predictable, mechanical changes to pass without human review, but risky changes still receive human attention.
For the API on-call rotation, Claude first shadowed human responders for months. The team has begun sending alerts to it first to distinguish noise from genuine incidents; a real issue is escalated to a person while Claude starts investigating.
The first gate for an alert is a narrow question: is this noise or a real issue? If real, the system pages a human rather than pretending the agent already handles the incident alone.
By the time a human reaches a laptop, the agent may have identified a problem and suggested or started a fix. Lesse says the current system mainly filters noise; independently resolving more real incidents is a future goal, not yet the normal state.
Orosz asks whether non-engineers can also ship to production. Lesse says the boundary has moved: a technical product manager built a prompt-cache diagnostic dashboard for the developer console with Claude, while engineers could review the work.
The dashboard helps customers understand cache hit rates and misses, which affect cost and latency. Lesse distinguishes such a feature from a core API change, which she would not yet expect a product manager or designer to implement directly.
The product manager worked back and forth with Claude in Slack on the prompt-cache diagnostic feature. Lesse says engineers could review it, but the product manager supplied the implementation with the agent.
The team owning a system remains accountable when it breaks, whether the change came from another engineer, a product manager or an autonomous agent. That team receives the page and can involve the person who made a relevant change.
Orosz asks whether the person making a change is accountable. Lesse emphasizes the established ownership model: the team responsible for the affected system is paged first and can call in others who know the change.
Building the tooling around agents
Central and platform acceleration teams provide common tools. Individual engineers also experiment with orchestration and persistent quality checks.
Lesse recognizes the idea behind a software factory even though she has not heard Anthropic use that name internally. Agents write, verify and sometimes review changes, while other agents can deploy or monitor systems after release.
The company has begun experimenting with quality-assurance agents that repeatedly exercise a system against a human-written description of intended behavior and open pull requests when they find problems.
An agent checking production can use a human-authored description of intended behavior. It can then repeatedly test the service and propose a fix when it observes a failure.
A central developer acceleration team builds shared infrastructure, while a platform acceleration group adapts tools for platform engineering. The latter built the QA agent and agents that help repair failing tests.
Individual engineers also experiment with tools to remove their own bottlenecks. Lesse says people are spending more human time on this surrounding tooling as they work to reduce the number of steps requiring intervention.
One engineer experimented with a Slack channel coordinating a multi-agent team around an ambitious goal. The idea evolved toward persistent tasks such as scanning for vulnerabilities and fixing them, illustrating how internal tooling can emerge outside a dedicated tooling role.
Hiring and performance when agents write code
Product and platform teams are testing agent-based interview exercises. Levels and reviews remain, but impact and project complexity must be assessed differently.
Anthropic has phased out traditional hand-coding interviews across its product and platform teams, Lesse says. Candidates sometimes performed well in design and project discussions but poorly in coding exercises because they no longer routinely wrote code by hand.
The old coding exercise sometimes gave a signal inconsistent with the rest of a candidate’s interview. Lesse says the organization increasingly gave that result less weight before it began trying replacements.
The company is experimenting with alternatives: reviewing agent-generated code or system designs, or building with a coding agent. Design and prior-project interviews remain, while the team evaluates how to score the new exercises consistently and fairly.
Choosing a replacement is not only a question of whether an exercise measures the desired skill. Interviewers also need a practical rubric, reliable scoring and a way to reduce bias across different interviewers.
Levels, promotions and performance reviews remain, although the organization hires more senior engineers. Lesse says elapsed project time is becoming a weaker proxy for difficulty: a migration that might once have taken two years can now take months.
Her team looks at impact and complexity through outcomes such as saved CPU, better latency and avoided incidents, alongside the coordination required. Feedback is often transparent, and she aims to give important feedback in real time rather than surprising someone at review time.
Lesse says feedback should ideally be direct and timely. At review time peers can provide input, and Anthropic tends to let people see the feedback about them rather than keeping it solely with a manager.
The engineering identity question
Lesse expects deep expertise and coordination to remain important as people build safeguards for more ambitious agent systems.
Orosz asks about an identity crisis among engineers who no longer write as much code. Lesse thinks people motivated by solving ambitious problems still have many opportunities, while those whose identity centered on typing code may find the change harder.
She expects larger teams of agents to help with complicated work, such as assembling material for a drug application. But that depends on solving underlying security, infrastructure, identity and authorization problems before agents can safely tackle bigger objectives.
The example of drug development illustrates why agent coordination is only part of the challenge: systems also need identity controls, authorization and security. Lesse says deep human expertise is needed to establish those foundations.
Orosz notes that most engineers lack a frontier lab’s resources and argues that even ordinary software offers plenty to improve. Lesse agrees that people can raise their ambitions at different scales, and describes customers exploring agents that handle an entire legal diligence process rather than isolated contract checks.
A legal technology company told Lesse it was moving beyond using AI to review a single contract toward coordinating a whole diligence process. That larger objective changes what product engineers must build and verify.
Lesse says a more ambitious agent system still needs engineers to build the safeguards and infrastructure around it. She does not think simply leaving agents to work without humans creating those systems is reliable enough.
Orosz compares software to civil engineering: a completed building still requires maintenance and can inspire further construction. Lesse hopes agents will increasingly handle maintenance while engineers pursue new challenges.
She points to continued work on tools that let agents interact with outside systems, including MCP, and early efforts to connect agents with laboratory equipment and robotics. These physical-world uses bring further engineering questions.
Lesse describes the engineering role as increasingly concerned with coordination, connecting ideas to delivered systems, and exercising deep expertise where it matters. She suggests learning with agents while anticipating how problems in areas such as security may become more complex.
Orosz suggests that agents can help engineers learn their own domains more deeply. Lesse agrees, arguing that people should look ahead to problems likely to grow rather than only solving the immediate issue in front of them.
Project Hail Mary and closing reflections
Lesse recommends a science-fiction story about communicating across differences. Orosz reflects on the rewrite, hiring and connected onboarding tools.
For a book recommendation, Lesse chooses Project Hail Mary. She likes its story of a human and an alien learning to communicate, which she finds relatable to working with AI.
Orosz closes by highlighting the CPU pressure and verification advantages behind the Rust rewrite. He notes that Anthropic is still experimenting with alternatives to coding interviews and that engineers remain on call for production changes even when a product manager helps build them.
The host adds that Anthropic’s internal agents can consult connected company systems, giving onboarding assistants more context than many external tools. He advises teams considering similar connections to protect company information.
Sur la même chaîne
1:27:31EN
1:03:39EN
1:25:20EN
1:19:29EN
1:41:17EN
1:56:28EN