Fetching from the wire…
Public story · 2026-07-20 · high
Anthropic's own numbers show reading, not writing, ate the budget: 5.9 billion input tokens against 690 million output.
Why now: Anthropic published the numbers as debate over whether AI can handle large-scale migrations keeps running on demos, not receipts.
Bun's team ported over a million lines of code from Zig to Rust in under two weeks for $165,000 in AI agent costs, per Anthropic's engineering blog. The bill: 5.9 billion input tokens against 690 million output, an 8.5-to-1 ratio. Reading code, not writing it, is the real cost of an agentic migration.
The port shipped as a single 1,448-file pull request, with the full existing test suite passing before merge. Nineteen regressions surfaced afterward, all fixed, about one for every 53,000 lines touched. Anthropic doesn't say how long the fixes took or what the regressions cost Bun's users in the meantime.
A second migration in the same post tells the sharper story. It ported 165,000 lines from Python to TypeScript over a weekend, using hundreds of agents behind eight phase gates and three adversarial review rounds. Total cost: 27 million tokens, for roughly a sixth of Bun's line count and a fraction of Bun's cost per line. Phase gates and adversarial review, not model quality, explain that gap. Gates stop agents from re-reading the same files across independent attempts. A review pass built to find failure catches what a single pass waves through.
Anyone budgeting an agentic rewrite should treat cost as reading volume times number of passes. Put a real adversarial review stage before merge, not after.
Each link below shares sources, entities, or timing with this story.
Anthropic released Claude Code / Shared entities / Same source / Shared topic / Earlier coverage
Linked by a graph relationship (Anthropic released Claude Code); both cover Anthropic, Python, Rust, TypeScript; cite the same source (engineering post on AI code migration).
Anthropic released Claude Code / Shared entities / Shared topic / Earlier coverage / Tension
Linked by a graph relationship (Anthropic released Claude Code); both cover Anthropic, Compare, Rust, TypeScript; overlapping topics (agent, cost).
Claude Opus built by Anthropic / Shared entities / Shared topic / Earlier coverage
Linked by a graph relationship (Claude Opus built by Anthropic); both cover Python, Roughly, TypeScript, Which; overlapping topics (cost, model, token).
OX Security criticizes Anthropic / Shared entities / Shared topic / Earlier coverage
Linked by a graph relationship (OX Security criticizes Anthropic); both cover Anthropic, Python, Rust, TypeScript; overlapping topics (agent, model).
Anthropic released Claude Code / Shared entities / Same source domain / Shared topic / Earlier coverage
Linked by a graph relationship (Anthropic released Claude Code); both cover Anthropic, Roughly, Rust; reported by the same outlet (claude.com).
Anthropic released MCP / Shared entities / Earlier coverage
Linked by a graph relationship (Anthropic released MCP); both cover Anthropic, Python, Rust, TypeScript; earlier Anthropic coverage from 2026-04-30.
Claude Opus built by Anthropic / Shared entities / Shared topic / Earlier coverage
Linked by a graph relationship (Claude Opus built by Anthropic); both cover Output, TypeScript; overlapping topics (agentic, cost, model, number).
DeepSeek competes with Anthropic / Shared entities / Shared topic / Earlier coverage
Linked by a graph relationship (DeepSeek competes with Anthropic); both cover Anthropic, Rust; overlapping topics (agentic, cost, model, token).