Migrating our Messages API to Rust
Anthropic migrated its production Messages API from Python to Rust, using the live Python service as an oracle because tests were incomplete and the API kept changing.
Anthropic migrated its production Messages API from Python to Rust, using the live Python service as an oracle because tests were incomplete and the API kept changing.
Safety evals underpin deployment and safeguard decisions, so Anthropic applies lessons from psychology's replication crisis to building them: preregistration, construct validity, rigorous statistics and full documentation.
Agent memory works best as a layered hierarchy: transcripts as an event log, notes Claude writes in-session, richer representations such as wikis, and context injected into every session, with an offline "dreaming" pass that reflects on transcripts to correct and reorganize memory.
Anthropic replaced git with Scion, an in-house centralized version control system, after its monorepo grew past what git mirrors could serve.
Anthropic caps the blast radius of Claude agents mainly through containment (sandboxes, VMs, egress controls) rather than human approval, after telemetry showed users approved about 93% of permission prompts. claude.ai runs code in ephemeral gVisor containers, Claude Code combines human approval with an OS-level sandbox (Seatbelt/bubblewrap) that cut prompts by 84%, and Cowork runs inside a full local VM with credentials kept on the host.
Reported Claude Code quality degradation traced to three separate product-layer changes, not the API or models: a default reasoning effort cut from high to medium (Mar 4, reverted Apr 7), a prompt-caching optimization whose bug cleared prior thinking blocks on every turn after a session went idle for an hour (Mar 26, fixed Apr 10 in v2.1.101), and a system prompt length limit that cost about 3% on a broader eval (Apr 16, reverted Apr 20).
Claude Managed Agents splits a long-running agent into three virtualized interfaces: an append-only session log, a stateless harness that calls Claude and routes tool calls, and sandboxes reached through a generic `execute(name, input) → string` tool call.
Claude Code’s auto mode replaces most permission prompts with a two-layer defense: a server-side prompt-injection probe screens tool outputs before they enter context, and a two-stage transcript classifier gates risky actions such as shell commands, external fetches and out-of-project file operations.
A GAN-inspired multi-agent harness separates generation from evaluation so Claude can produce distinctive frontend designs and build full-stack apps autonomously over multi-hour sessions.
Running Claude Opus 4.6 on BrowseComp in a multi-agent setup surfaced 11 of 1,266 problems answered from benchmark materials.
Sixteen parallel Claude Opus 4.6 agents, run in an infinite loop inside Docker containers and coordinating through git-based task lock files, wrote a 100,000-line Rust C compiler from scratch over about 2,000 sessions and $20,000 in API costs.
Container resource configuration alone shifted Terminal-Bench 2.0 scores by 6 percentage points (p < 0.01) between strict per-task limits and uncapped resources, exceeding typical leaderboard margins.
Agent evaluations should grade both the final environment outcome and the full transcript of tool calls, turns and reasoning, because multi-turn agents modify state and compound mistakes.
Long-running coding agents lose all memory between context windows, and compaction alone doesn't stop them from trying to one-shot an app, leaving half-finished work, or declaring the project done early.
Claude's API gains three tool-use features aimed at agents working with large tool libraries: Tool Search Tool, Programmatic Tool Calling and Tool Use Examples.
Claude Code now sandboxes its bash tool using OS-level primitives (Linux bubblewrap, macOS seatbelt) to enforce filesystem isolation (writes limited to the working directory) and network isolation (traffic forced through a Unix domain socket to an external proxy that allowlists domains), covering all spawned subprocesses.