Skip to main content
bash TV

How to Ship Millions of Lines of Agent-Written Code — Jarred Sumner, Anthropic

AI Engineer

24.8K views24 Nov 2026

YouTube

Jarred Sumner, creator of Bun, recently merged a PR of several million lines that adds an ahead-of-time compiler to Bun, the runtime behind Claude Code. It went through five rewrites in about a month, and the result uses about 4x less memory and starts about 2x faster. He explains why the team made JavaScript faster instead of rewriting Claude Code in Rust, why tests that predate the project are what make agent-written code trustworthy, and what he actually does all day while 140 agents write code. Speaker info: - https://x.com/jarredsumner - https://bun.sh Timestamps: 0:00 - A multi-million-line PR for Bun 1:42 - Five rewrites in a month 2:27 - Testing decides the approach 3:57 - Why not rewrite Claude Code in Rust 4:42 - 4x less memory, 2x faster startup 6:12 - Types as predictions 6:57 - Tests that predate the project 8:27 - Three versions that must agree 9:12 - Write in batches, then fix 10:46 - When the code was slop 12:21 - 140 agents at once 13:06 - Build times and the fifth rewrite 15:21 - Long-lived subagents 16:51 - Hourly scorecards and fuzzing 19:06 - What you actually do all day 20:36 - Lessons for large agent projects

Join the discussion

Have something to add?

Sign in to reply, follow this thread, and earn XP when your answer helps someone.