Stacks/Coding agent
Anthropic: Claude agent teams migrating the Messages API from Python to Rust
Anthropic moved its Messages API from Python to Rust by turning the production API into a verifier. Claude wrote a first version of the core request path in about a week; the hard part was proving parity, so diffs on shadowed traffic were fingerprinted and routed by a coordinating Claude agent to worker agents that reproduce, fix and test them in sandboxes, with engineers reviewing fixes in Slack and corrections saved to memory. The Rust API uses about 70% less CPU per request and cuts median time to first token by about 20%, shipped without taking the service offline. Found via an X post by @AnthropicAI; co-author Lance Martin is @RLanceMartin.
- Use case
- Migrating Anthropic's production Messages API from Python to Rust while it kept changing, using the live Python service as the verifier and teams of Claude agents to find and fix every difference on shadowed production traffic.
- Category
- Coding agent
- Orchestrator / framework
- A script runs every 10 to 30 minutes, groups diff records from shadowed production traffic by which fields differed, and alerts a coordinating Claude agent only on a new kind of record. The coordinator assigns a worker agent to own each kind and opens a thread in a shared Slack channel where engineers follow and steer. Inner loop: each worker runs in a cloud sandbox with both codebases and sub-second local input/output parity checks (against a fake model), writes its own request to reproduce the fingerprint, edits the Rust until versions match, and adds a test. Fixes cross to the outer loop only after human PR review; the outer loop compares Rust deployments with and without each fix on shadowed traffic and sends unresolved bugs back.
- Memory
- Memory loop: corrections from reviews and agents' own work are saved as notes and rules every later agent reads (including CLAUDE.md rules). An agent grouped about 60 review comments into proposed rules that an engineer edited and approved. Lessons also became permanent tests, lints and a merge check requiring matching Python and Rust changes.
- Evals
- About 700 existing integration tests (an audit of ported tests found more than 100 weakened assertions), plus shadowing on production traffic: the model runs once and its output is replayed to Rust, and each step before and after the model call is compared at checkpoints. Differences are recorded by shape (step, prompt piece, first differing byte, lengths) as fingerprints, never by reading customer text.
- Observability
- Diff records per request in logs, grouped by fingerprint; per-request facts (model, features such as prompt caching, tools, extended thinking) logged without text so builds with and without a fix can be compared.
- Reliability (as stated)
- about 98%Eval
Rust API integration tests passed (early agent-written port) · April 2026 · test pass rate of the early port, before the shadow verification loops
“Our Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic (Figure 6).” Source
about a quarterProductionRust inputs matching Python on shadowed production traffic (early port) · April 2026 · starting point that the agent verification loops then closed; later match rates are only shown in a chart
“Our Rust API passed about 98% of its tests in April, yet only about a quarter of inputs matched on production traffic (Figure 6).” Source
As stated in the source, checked 2026-11-25. Never a WhatWeRun estimate. Eval, benchmark, and target figures are not production results.
- Models
- Other tools
- Slack (agent threads)Cloud sandboxesShadow traffic comparison with checkpoints and fingerprintsCLAUDE.md
- Source
- https://www.anthropic.com/research/migrating-api-to-rust
Lance Martin (@RLanceMartin), Jake Eaton, Arvin Aminpour, Emma Webb, Bharat Mediratta, Ravi Trivedi (Anthropic, @AnthropicAI) · Published Nov 25, 2026 · Last verified Nov 25, 2026
Related
More like this

Runway software factory: agents write, review, approve, test and merge PRs
Runway's internal software delivery line where cloud coding agents take a task to a green pull request, an AI reviewer reviews it, a risk agent decides who approves, browser agents QA the product, agents fix breaks on main, and a coordinator runs the line. Nearly every PR merged into the App Studio codebase in October and November was written by agents.

Airbnb AirChat: coding agents run on cost per task
Internal coding agents (AirChat on AirDev cloud workspaces, plus AirChat Remote cloud agents) used weekly by thousands of Airbnb engineers. Every model request goes through Airbnb's LLM gateway on Amazon Bedrock, and evals plus production metrics set each model's default and reasoning-effort ceiling.
Mastra Factory software factory
Agentic kanban board, @-taggable in Slack, that the Mastra team uses to triage issues, build, review and ship PRs across the mastra-ai GitHub org.
