This article provides insights into how Anthropic approaches software engineering, particularly for complex AI platform projects like Claude Managed Agents. It highlights architectural decisions, such as migrating from Python to Rust for performance, and practical engineering processes, including internal dogfooding and iterative re-architecture, that are relevant to designing scalable AI infrastructure.
Read original on The Pragmatic EngineerThe article explores how AI tooling is influencing software development at Anthropic, focusing on both changes and continuities in engineering practices. It delves into the development of Claude Managed Agents, a complex infrastructure project, and touches upon the rapid re-writing of Bun to Rust, demonstrating the impact of AI-assisted development.
Anthropic's Claude Platform team is responsible for the API and underlying infrastructure that powers Claude models. This layer handles critical tasks like tokenization, safeguards, and billing. Initially developed in Python for rapid iteration and researcher familiarity, the platform is undergoing a migration to Rust to address performance bottlenecks and single-threaded limitations under high load.
Token Hot Path
The Claude Platform operates on the "token hot path," meaning it processes user prompts, tokenizes them, and applies safeguards and billing logic before model inference. This critical path demands high performance and reliability.
The development of Claude Managed Agents, a pre-built harness for production agents, took six months. Key architectural lessons from this project include:
While some core engineering principles endure, AI is significantly altering others. Prototyping has become more fluid, and verification is increasingly time-consuming relative to implementation. AI-assisted code review and testing are becoming more prevalent. This suggests a shift towards optimizing the verification and iteration cycles with AI, while core design principles for complex systems remain foundational.