Skip navigation
How did Anthropic rewrite the API all Claude tokens from Python to Rust, why did eng teams remove…
0:00 / 1:50:44

How did Anthropic rewrite the API all Claude tokens from Python to Rust, why did eng teams remove…

Gergely Orosz

@GergelyOrosz370K followers

Visit on X
645 likesDownloadOriginal post

42,252 views

How did Anthropic rewrite the API all Claude tokens from Python to Rust, why did eng teams remove coding interviews, and why do devs spend a LOT more time building internal tools than before? Super interesting details from Katelyn Lesse 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 Brought to you by: • turbopuffer – a vector and full-text search engine built on object storage. It’s fast, cheap, and extremely scalable. Anthropic is one of their many customers. • Antithesis – verify your system’s correctness without human review or traditional integration tests – and avoid bugs or outages. Check out their coding agent plugin and use the code PRAGMATIC50 to get 50% off your first month at • Entire – The Git forge for agent-human collaboration. Built for the scale and throughput of agentic coding. Mirror your repo with one click (or move over fully) at Three interesting details from inside this leading frontier AI lab: 1. The rewrite was done without Rust experts on the team or strict code reviews. A year earlier, the same team picked Go for their new services because it was a language that team members knew how to read and write. But by 2026, they felt that Claude was good enough at Rust, and Claude helped engineers learn more about Rust during the rewrite. Katelyn estimates that engineers looked closely at only ~20% of the code generated: “As long as you can really boil something down to make it verifiable in some way, then you don't have to look at every single line of Rust code that's getting written.” 2. A Claude agent is paged before a human for API oncall. For months, a Claude agent has been shadowing the API oncall rotation of the API team for training. As the team have gained confidence that Claude can tell if an alert is “real” or “noise,” they now let this agent categorize an incoming alert first. The long-term goal is for Claude to handle actual incidents without waking up a human – but they’re not there yet. 3. One thing that has not changed since "pre-AI" is two-pizza teams. Teams at Anthropic are still two-pizza teams of around 5-8 people. Katelyn says it’s because this is the right size for understanding a complex system and staffing an oncall rotation. Teams still own systems, and get paged. And it is a team – not an individual – that’s responsible for each system!

12 Comments

Comments from the original post on X (Twitter)

  • Peter Yang's profile picture

    @petergyang

    @katelyn_lesse I know nothing but is Rust the final boss of programming languages? :) I still alot of "rewrite to rust" projects

    2 likes

  • Gergely Orosz's profile picture

    @GergelyOrosz

    @katelyn_lesse Rust or Assembly Assembly gets the best possible performance on a specific chipset Rust gets you pretty darn close and is chipset independent - similar perf as C++ but memory safe and very good compiler validation loops Ofc I have a podcast

    4 likes

  • Peter Yang's profile picture

    @petergyang

    @katelyn_lesse It's funny because I think having human readable code is becoming less important over time? Like Python was designed to be the simplest language for humans to learn but I guess that doesn't matter much anymore.

  • DatShot's profile picture

    @DatLilShot

    @katelyn_lesse Cant wait to watch tn

    1 like

  • Andrei Maxim's profile picture

    @rockatanescu

    @katelyn_lesse I've seen @katelyn_lesse in a number of interviews and she's a breath of fresh air in this AI space. Really looking forward to listening to this episode!

    1 like

  • ilsb 👑's profile picture

    @Ilsb5h

    @katelyn_lesse Adding this to my queue

    1 like

  • jaan's profile picture

    @ahmadfiazjan

    @katelyn_lesse devs building more internal tools matches my week. i don't insist on writing features myself anymore, i write the skills and commands that run the agents

  • Daniel Ehrhardt's profile picture

    @daniiie7

    @katelyn_lesse the number from their eng blog that stuck with me: rust passed ~98% of the tests in april, but only about 1 in 4 production inputs matched python and when they audited the ported tests they found 100+ weakened assertions

  • Ronald Chumaceiro's profile picture

    @ronchumaceiro

    @katelyn_lesse the internal tools one is the sleeper. once building a tool costs less than the meeting about which saas to buy, everyone just builds

  • James Pelton's profile picture

    @JamesPelton18

    @katelyn_lesse The internal tools part matches what I see. I run 25 agents on my business, and every one of them is an internal tool nobody else will ever use.

  • null0x's profile picture

    @null0x

    @katelyn_lesse Key line: "as long as you can really boil something down to make it verifiable." With ~20% read closely, verification carries the review. Shadow traffic tests what production sends, not what an attacker would. Rare error paths may never show up. Did the episode cover those?

  • Nexqor's profile picture

    @whyNexqor

    @katelyn_lesse the python-to-rust rewrite is less about speed and more about predictable tail latency when you serve a single tokenizer under millions of concurrent streams