{"slug": "the-bun-rewrite-burned-165000-78-billion-tokens-and-64-ai-agents-in-11-days", "title": "The Bun rewrite burned $165,000, 78 billion tokens, and 64 AI agents in 11 days", "summary": "Jarred Sumner's Bun team rewrote the entire Zig codebase of the Bun JavaScript runtime to Rust in 11 days using 64 parallel AI agents, costing $165,000 and 78 billion tokens. The rewritten runtime passed its test suite and went green on CI, a feat that would typically take a team of engineers months or years. Bun ships 22 million downloads per month and underpins tools like Claude Code, OpenCode, and hosting platforms Vercel, Railway, and DigitalOcean.", "body_md": "Member-only story\n\n# The Bun rewrite burned $165,000, 78 billion tokens, and 64 AI agents in 11 days\n\n## That bill looks wasteful until you see what Jarred Sumner’s team pulled off: a production-grade language migration most teams could not finish in a year, at any price\n\n[Jarred Sumner](https://bun.sh/), the creator of the Bun JavaScript runtime, rewrote its entire Zig codebase to Rust in 11 days, using 64 parallel AI agents. (About 20% of Bun was already C and C++, and that part stayed put; the Zig core is what moved.) The result shipped, passed its own test suite, and went green on CI. That sentence alone is worth pausing on, because most projects that get pitched at this scope don’t finish. This one did. Sumner wrote up the whole thing in detail on the [Bun blog](https://bun.com/blog/bun-in-rust), and the numbers below come from that writeup and the reporting around it.\n\nBun isn’t a hobby project. It ships 22 million downloads a month and sits underneath tools people use daily, including Claude Code, OpenCode, and hosting platforms like Vercel, Railway, and DigitalOcean. A rewrite of its core runtime is not a weekend refactor. It’s the type of project that normally gets scoped in quarters, staffed with a small team of engineers who already know the codebase cold, and still runs long.", "url": "https://wpnews.pro/news/the-bun-rewrite-burned-165000-78-billion-tokens-and-64-ai-agents-in-11-days", "canonical_source": "https://blog.stackademic.com/the-bun-rewrite-burned-165-000-78-billion-tokens-and-64-ai-agents-in-11-days-bbd601d4cec7?source=rss----d1baaa8417a4---4", "published_at": "2026-07-30 12:05:52+00:00", "updated_at": "2026-07-30 12:27:42.979203+00:00", "lang": "en", "topics": ["artificial-intelligence", "developer-tools", "ai-agents"], "entities": ["Jarred Sumner", "Bun", "Zig", "Rust", "Claude Code", "OpenCode", "Vercel", "DigitalOcean"], "alternates": {"html": "https://wpnews.pro/news/the-bun-rewrite-burned-165000-78-billion-tokens-and-64-ai-agents-in-11-days", "markdown": "https://wpnews.pro/news/the-bun-rewrite-burned-165000-78-billion-tokens-and-64-ai-agents-in-11-days.md", "text": "https://wpnews.pro/news/the-bun-rewrite-burned-165000-78-billion-tokens-and-64-ai-agents-in-11-days.txt", "jsonld": "https://wpnews.pro/news/the-bun-rewrite-burned-165000-78-billion-tokens-and-64-ai-agents-in-11-days.jsonld"}}