simonwillison.net via Hacker News

Anthropic silently shipped Claude Code on Bun's Rust port

anthropic coding tools ai-business

TL;DR

  • Claude Code v2.1.181, released June 17, silently switched to the Rust port of Bun, per an announcement from Bun creator Jarred Sumner.
  • Simon Willison confirmed via `strings` on his binary, finding Bun v1.4.0 (macOS arm64) and 563 Rust source file references.
  • The embedded Bun v1.4.0 is ahead of the public GitHub release v1.3.14 from May 12, and Willison cites a 10% Linux startup improvement.

The most interesting shipping story of the month is one Anthropic did not announce. According to Simon Willison's teardown, Claude Code v2.1.181, released June 17, quietly switched its runtime to the Rust port of Bun. The claim originated with Bun creator Jarred Sumner, and Willison went and verified it on his own machine.

The verification is the fun part. Running `strings` on his Claude Code binary, Willison pulled out `Bun v1.4.0 (macOS arm64)` and 563 references to Rust source files, with paths like `src/runtime/bake/dev_server/mod.rs` and `src/bundler/bundle_v2.rs` showing up in a complete filename list he published as a gist. The embedded v1.4.0 is ahead of Bun's latest public GitHub release, v1.3.14 from May 12, meaning Anthropic has been running an unreleased build of the Rust rewrite in production across, per the reporting, millions of devices. Willison notes the version was later released as a Bun canary.

Why this matters if you are not shipping a JS runtime yourself: a major AI vendor picked an in-progress Rust port over a mature Zig codebase and used its own flagship CLI as the proving ground. That is a strong endorsement of a language rewrite most projects treat as a multi-year boondoggle. The payoff Willison cites is a 10% Linux startup improvement, which is modest on paper but compounds fast when a CLI is invoked constantly through a workday.

The honest caveat is that this is one blog post working from one developer's announcement plus some binary inspection, not a formal Anthropic disclosure. Take the specifics as reported, not settled. What the reporting does not give you is why Anthropic chose to ship silently, whether macOS and Windows saw similar gains (only Linux is quoted), or how the company plans to track upstream Bun security fixes while it is running ahead of the public release.

Willison's closing line is the one to sit with: "Boring is good." A runtime swap this large that produces no user-visible drama is exactly the kind of infrastructure work that only shows up in benchmarks and gists, and the fact that a widely used AI CLI is now the highest-profile production deployment of Bun-in-Rust is a signal worth watching for anyone weighing the same jump.

Shared on Bluesky by 1 AI expert