HN
Today

Claude Code uses Bun written in Rust now

Simon Willison provides compelling evidence that Claude Code has indeed integrated the new Rust-based Bun runtime, confirming a quiet but significant backend shift. This technical deep dive showcases a major AI tool adopting performance-enhancing infrastructure, validating a successful and "boring" (read: seamless) rewrite. It appeals to HN's appreciation for behind-the-scenes engineering triumphs and real-world system optimization.

7
Score
0
Comments
#1
Highest Rank
27h
on Front Page
First Seen
Jul 19, 10:00 AM
Last Seen
Jul 20, 2:00 PM
Rank Over Time
3120655543787782235766676101220

The Lowdown

Simon Willison delves into his local Claude Code installation to verify Jarred Sumner's claim that the AI assistant now utilizes Bun's recently rewritten Rust port. Sumner, Bun's creator, stated that Claude Code v2.1.181 and later versions are running on the Rust-based Bun, leading to a modest 10% faster startup on Linux but otherwise going largely unnoticed—a testament to a smooth transition.

  • Willison used the strings command on the claude binary to search for specific identifiers.
  • A grep for 'Bun v1' revealed Bun v1.4.0 (macOS arm64), which is a newer version than the publicly available v1.3.14. This indicates Claude Code is shipping a pre-release version of Bun.
  • Another grep for .rs file paths within the binary yielded a list of 563 Rust source files, confirming the presence of Rust code from the Bun runtime.
  • The findings corroborate Sumner's statement, suggesting the Rust port of Bun is successfully running in a high-profile production environment across numerous devices.

This investigation underscores a successful and understated migration of a critical JavaScript runtime to Rust within a significant AI application, demonstrating how foundational technological shifts can occur without user-facing disruption.