AI News·25 Nov 2026·via The Pragmatic Engineer

    How Anthropic builds software in 2026 with Katelyn Lesse

    Anthropic has completed a five-month rewrite of its core 'Messages API' from Python to Rust, driven by performance demands and global CPU shortages. Katelyn Lesse, who leads platform engineering, explains how the company leveraged its own Claude AI to train engineers in Rust and verify the new system.

    Anthropic, now a publicly traded company with a market capitalization around $1 trillion, has significantly re-architected its core software infrastructure. The 'Messages API', responsible for serving all Claude tokens and managing critical functions like authentication, billing, and safety checks, was rebuilt in Rust. This move came after the Python-based monolith, originally developed in 2023 when Anthropic was primarily a research entity, demonstrated substantial performance overhead that proved challenging to optimize, especially amidst a global CPU shortage making it difficult to expand hardware capacity.

    The transition, which took a few engineers approximately five months, involved novel approaches to development. Anthropic used its own Claude AI to help engineers acquire Rust proficiency. To ensure the new Rust API's reliability, the team employed a 'shadowing' technique, verifying its performance and correctness against live production traffic before full deployment. This migration highlights a strategic shift from a research-centric development model, where Python was favored for its ease of integration with research code, to one focused on scalable, high-performance production systems.

    Beyond the API rewrite, Anthropic is integrating AI agents into its internal software engineering processes. Katelyn Lesse's team is redefining workflows, with AI agents influencing code review and on-call procedures. The company's frontier lab operates a "software factory" model, where a product manager successfully shipped a feature to production, reportedly aided by these agentic workflows. Furthermore, Anthropic is replacing traditional coding interviews with agent-based exercises, suggesting a fundamental change in how the company hires and develops its engineering talent.

    This internal transformation suggests a model where AI is not just a product, but also a core tool for enhancing engineering efficiency. The company's reported market capitalization, achieved with a headcount roughly a tenth of other businesses of similar value, points to the potential impact of these engineering practices. The decision to shift to Rust, a language known for its efficiency, addresses the practical challenges of scaling a frontier AI service while also navigating resource constraints like CPU availability. This approach aims to manage operational demands while maintaining a lean organizational structure.

    Share this article

    Go deeper
    Original reporting by The Pragmatic EngineerWe don't republish, read the full story →

    Related reading

    6 stories