Claude Code uses Bun written in Rust now
TL;DR Highlight
Inspecting the Claude Code binary shows it now bundles Bun v1.4.0, the Rust port.
Who Should Read
A developer using Claude Code or the Bun runtime who wants to know whether the Rust port of Bun is actually shipping.
Core Mechanics
- Rust Bun since Claude Code 2.1.181
- Jarred Sumner said Claude Code v2.1.181 (released June 17) and later use the Rust port of Bun.
- Startup got 10% faster on Linux, and otherwise barely anyone noticed.
- strings shows Bun v1.4.0
- `strings ~/.local/bin/claude | grep -m1 'Bun v1'` printed Bun v1.4.0 (macOS arm64) on Simon Willison's machine.
- The latest GitHub release is v1.3.14 (May 12), so a not-yet-released version is being shipped.
- 563 .rs files in the binary
- `grep -Eo 'src/[[:alnum:]_./-]+\.rs'` returned 563 filenames.
- They include paths like src/runtime/bake/dev_server/mod.rs and src/bundler/bundle_v2.rs.
- Bun.version also confirms it
- Ajan Raj's trick preloads a script via BUN_OPTIONS="--preload=..." that prints Bun.version.
- It printed 1.4.0 for Simon Willison.
- Rust version available as canary
- The Rust version was released as Bun canary, installed with `bun upgrade --canary`.
- The commit bumping package.json to 1.4.0 is from May 17 and hasn't changed since.
Community Reactions
- Manual memory management in Zig caused bugs, one comment argued
- Tracking memory lifecycles by hand in Zig led to many missed-free bugs, while Rust handles it automatically.
- The commenter said compiler errors are a deterministic guardrail for coding agents.
- Criticism of communication and governance
- One commenter said merging a 1M+ line PR in under a month hurt trust.
- Another could find no governance docs and guessed Anthropic basically decides.
- Concerns about code quality and stability
- One commenter called the result a non-idiomatic transpile.
- Another reported Claude Code has been buggier lately, with garbled TUI rendering.
- Calls for RAM and CPU data
- A commenter wanted to know memory and CPU usage and whether deadlocks appear, beyond faster startup.
- Others asked why not use Deno or rewrite Claude Code natively.
How to Apply
- Check the Bun version in your Claude Code
- Run `strings ~/.local/bin/claude | grep -m1 'Bun v1'` in your terminal.
- If it prints Bun v1.4.0, you have the Rust build.
- Run your project on Bun canary
- In a separate branch or CI job, run `bun upgrade --canary`.
- Run your existing test suite and compare results, speed and memory against the Zig build.
- Pin the Bun version in production
- Pin an explicit Bun version in production to prevent automatic upgrades.
- Set your own switch date after the stable release and clearer governance.
Try It
# Paste into your terminal (shell): check the Bun version embedded in Claude Code
strings ~/.local/bin/claude | grep -m1 'Bun v1'
# Check that .rs file paths exist in the binary
strings ~/.local/bin/claude | grep -Eo 'src/[[:alnum:]_./-]+\.rs' | head
# Next: print Bun.version directly (Ajan Raj's trick)
cat > /tmp/bun-version.ts <<'EOF'
console.log("embedded bun:", Bun.version);
process.exit(0);
EOF
BUN_OPTIONS="--preload=/tmp/bun-version.ts" claude --versionTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques