PromptZone - Leading AI Community for Prompt Engineering and AI Enthusiasts

Noemi Pham
Noemi Pham

Posted on

Does Claude Code Now Run on Rust-Powered Bun?

Claude Code now runs on Bun implemented in Rust, according to a post that reached 109 points and 124 comments on Hacker News.

The change replaces the previous JavaScript runtime layer with a Rust-based Bun build. Early reports in the thread focus on startup time and memory use rather than new features.

What Changed in the Runtime

The update targets the execution environment that Claude Code uses for local tool calls and script handling. Instead of the standard Bun distribution, the team adopted a Rust rewrite that compiles the core runtime components directly.

This removes several JavaScript-to-native bridges that previously existed. The result is a single binary that handles both the Bun APIs and the Rust performance-critical paths.

Numbers from the Thread

Commenters shared concrete measurements from their machines:

  • Cold start dropped from 180 ms to 65 ms on M2 hardware.
  • Peak memory during typical sessions fell by roughly 40 MB.
  • One user reported a 2.3× improvement in repeated tool-invocation loops.

No official benchmark table has been published yet. All figures come from the 124 comments in the HN discussion.

How to Test the New Build

Developers can try the updated version by installing the latest Claude Code release and enabling the experimental runtime flag:

claude-code --runtime rust-bun
Enter fullscreen mode Exit fullscreen mode

The binary is distributed through the same channels as before. No separate download is required.

Tradeoffs Reported So Far

  • Pros: Faster startup, lower memory footprint, simpler deployment on headless servers.
  • Cons: Some Node-specific packages now require additional shims; debugging output is less verbose than the previous JavaScript version.

Thread participants noted that the Rust implementation currently lacks a few Bun APIs that power users relied on for custom plugins.

Who Benefits Most

Teams running Claude Code in CI pipelines or on resource-constrained laptops gain the clearest wins from the reduced startup and memory numbers. Users who depend on niche Node packages or heavy plugin ecosystems may want to wait until the missing APIs are restored.

Current Verdict

The Rust-powered Bun version delivers measurable speed and memory improvements for the core use case while introducing compatibility friction for advanced scripting. The 109-point discussion shows the change is real but still early.

The shift aligns with a broader pattern of AI tooling moving performance-sensitive layers into Rust while keeping high-level interfaces intact.

Top comments (0)