cd /news/artificial-intelligence/the-bun-rewrite-burned-165000-78-bil… · home topics artificial-intelligence article
[ARTICLE · art-80155] src=blog.stackademic.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

The Bun rewrite burned $165,000, 78 billion tokens, and 64 AI agents in 11 days

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.

read1 min views1 publishedJul 30, 2026
The Bun rewrite burned $165,000, 78 billion tokens, and 64 AI agents in 11 days
Image: Blog (auto-discovered)

Member-only story

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 #

Jarred Sumner, 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, and the numbers below come from that writeup and the reporting around it.

Bun 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.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @jarred sumner 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-bun-rewrite-burn…] indexed:0 read:1min 2026-07-30 ·