Dev & Code Aug 21, 2026Add to bookmarks

Claude Code, the official CLI from Anthropic, now uses Bun as its JavaScript runtime—Bun itself is primarily written in Zig (with some Rust components). A technical choice that highlights the shift of the JS stack toward high-performance runtimes.
Discussed on Hacker News: Claude Code - Anthropic's CLI for developers - now uses Bun as its JavaScript runtime, replacing Node.js. Bun itself is written in Zig (and uses Rust bindings for some components), making it a concrete example of the shift toward native-compiled JS runtimes.
This is an interesting signal: a tool used by critical developers (those coding with AI) is adopting a runtime that isn’t yet the industry standard. Anthropic is making a deliberate choice for performance.
Bun (https://bun.sh) was launched in 2022 by Jarred Sumner as an alternative to Node.js and Deno. Its main arguments:
For a CLI tool like Claude Code, startup time is the key metric. No one wants to wait 500ms on every invocation.
Since 2020, the JavaScript ecosystem has seen a diversification of its runtimes:
Each runtime makes different bets. Bun bets on raw speed and npm compatibility.
Article produced by artificial intelligence, reviewed under human editorial control.