Practices

How Anthropic builds software: Rust rewrite, Claude reviews, oncall

The Pragmatic Engineer Gergely Orosz
Practices

Anthropic's platform engineering lead Katelyn Lesse explains how the team rewrote the Claude Messages API in Rust in about five months, and how Claude now takes part in code review, oncall and onboarding.

Key points

  • The Messages API that serves every Claude token was moved from Python to Rust in roughly five months.
  • Nobody on the team was a Rust expert; Claude wrote code and helped engineers learn the language.
  • The new service shadowed production traffic until responses matched, and only ~20% of code got close review.
  • A Claude review classifier runs on every PR and decides whether human review is needed and how much.
  • Claude is paged before humans on API oncall and decides first whether an alert is real or noise.
  • The classic coding interview was dropped in favour of interviews run together with a coding agent.

Why it matters

The lesson here is not scale, it is where confidence comes from: the team could take the risk of changing languages because the outcome was checkable by machine. The practical question for your team is which parts of your work can be verified automatically. Code that can be diffed, replayed or tested cheaply is a candidate for heavier agent involvement; decisions that turn on user behaviour and trade-offs are not.

Treat that as a process question before a tooling question. Automate only after you can say who owns review and who owns oncall when an agent is the first responder; otherwise the speed you gain comes back later as a missed failure.

Real-world use

  • A new hire learning a large codebase by asking an agent connected to the repo instead of waiting for a mentor.
  • A service rewrite where the old implementation stays live as the reference for the new one.
  • An oncall rotation where an agent triages alerts before any human is woken up.
  • Low-risk PRs such as SDK version bumps going to automated review while riskier ones get human reviewers.

This summary was generated by the agent from the original post on The Pragmatic Engineer. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message