All posts

Claude Code ships Bun rewritten in Rust, and nobody noticed

Huma ShaziaJuly 19, 2026 at 11:02 PM4 min read

Key Takeaways

  • Claude Code v2.1.181 and later run on a Rust rewrite of Bun, shipped June 17th
  • Linux startup time improved 10%, macOS users saw no measurable change
  • Claude Code bundles Bun v1.4.0, a version not yet publicly released

Anthropic's Claude Code, the AI-powered coding assistant, has been running a Rust rewrite of Bun since June 17th. According to Jarred Sumner, creator of Bun and CEO of Oven, version 2.1.181 shipped the new runtime to production. Linux users got a 10% startup improvement. Everyone else noticed nothing. That silence is the point.

Advertisements

How do we know Claude Code uses Bun in Rust?

Simon Willison, developer and AI researcher, dug into his local Claude Code installation to verify Sumner's claim. A simple strings command revealed the embedded Bun version number.

bash
strings ~/.local/bin/claude | grep -m1 'Bun v1'

On Willison's macOS ARM64 machine, this returned "Bun v1.4.0". The latest public release on GitHub is v1.3.14, dated May 12th. Claude Code is shipping a preview build that hasn't hit a tagged release outside Bun's canary channel. Oven and Anthropic clearly have a tight integration.

Digging deeper, Willison grepped for Rust source file paths embedded in the binary:

bash
strings ~/.local/bin/claude | grep -Eo 'src/[[:alnum:]_./-]+\.rs'

This returned 563 .rs filenames, including paths like src/runtime/bake/dev_server/mod.rs and src/bundler/bundle_v2.rs. The Rust rewrite is real, and it's running on millions of developer machines.

Why rewrite Bun in Rust?

Bun originally launched in 2022 written in Zig. The choice was unusual but intentional: Zig offered C-level performance with simpler memory management than Rust. But Rust has advantages Zig cannot match. The compiler catches entire categories of memory bugs at compile time. The crate ecosystem is larger. And hiring Rust developers is easier than hiring Zig experts.

The 10% Linux improvement isn't transformative on its own. But it signals that Oven can migrate critical subsystems without breaking production. If they can do it once, they can do it again for hotter code paths.

“Claude Code v2.1.181 (released June 17th) and later use the Rust port of Bun. Startup got 10% faster on Linux but otherwise, barely anyone noticed. Boring is good.”

— Jarred Sumner, Creator of Bun & CEO of Oven

What this means for startups using Claude Code

If you're building developer tools or workflows on top of Claude Code, you don't need to change anything. The runtime swap was invisible by design. But it tells you something about Anthropic's infrastructure choices. They're willing to adopt pre-release dependencies from trusted partners. They prioritize stability over conservatism.

For teams building local-first AI tooling, this is a template. Ship fast, fail silently, iterate underneath. The Bun swap didn't require a migration guide or a changelog entry. It just worked.

Developers can verify their own installation with a trick shared by Ajan Raj:

bash
cat > /tmp/bun-version.ts <<'EOF'
console.log("embedded bun:", Bun.version);
process.exit(0);
EOF
BUN_OPTIONS="--preload=/tmp/bun-version.ts" claude --version

This outputs the embedded Bun version directly. On current Claude Code installations, expect 1.4.0.

When will Bun 1.4.0 go public?

The commit bumping Bun's version to 1.4.0 landed on May 17th. That was two months ago. The version still hasn't made it to a tagged release outside canary. Users who want it now can run bun upgrade --canary to get the Rust build. Everyone else will wait for a stable tag, likely after more battle-testing in production environments like Claude Code.

The gap between internal adoption and public release is normal. It's also a reminder that production is the only real test.

ℹ️

Logicity's Take

The headline here isn't speed. It's stealth. Anthropic swapped the runtime under a flagship developer product and no one complained. That's harder than it sounds. For startup CTOs evaluating local AI tools, Claude Code's infrastructure decisions suggest a team that prioritizes reliability over marketing beats. Compare this to the drama around other runtime migrations in the JS ecosystem. Boring is, indeed, good.

Frequently Asked Questions

Is Claude Code open source?

No. Claude Code is a proprietary product from Anthropic. However, it bundles open-source components like Bun.

Do I need to update Claude Code to get the Rust-based Bun?

If you're running version 2.1.181 or later (released June 17th, 2026), you already have it.

Will this change how Claude Code works for me?

No. The runtime swap was designed to be invisible. You may see slightly faster startup on Linux, but behavior is unchanged.

Can I use the Rust-based Bun in my own projects?

Yes. Run bun upgrade --canary to install the canary release, which includes the Rust port.

ℹ️

Need Help Implementing This?

If you're building developer tools that rely on runtime performance or evaluating AI coding assistants for your team, reach out to Logicity. We help startups make infrastructure decisions that compound.

Source: Hacker News: Best / Simon Willison

H

Huma Shazia

Senior AI & Tech Writer

Produced with AI assistance and reviewed by the Logicity editorial team. Learn more in our Editorial Policy.