# Simon Willison — Claude Code v2.1.181 ships a Rust-built Bun v1.4.0

> Simon Willison verifies Anthropic swapped Claude Code's runtime to a Rust-rewritten Bun that isn't public yet.

- Org: Simon Willison
- Date: 2026-07-19
- Category: article
- Source: https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/
- Canonical page: https://ai-tldr.dev/releases/simonw-claude-code-bun-rust-jul19/

## In short

Simon Willison confirmed that Claude Code v2.1.181 embeds a Rust-built Bun v1.4.0 — 563 Rust source filenames appear in the shipped binary, ahead of the public Bun v1.3.14 release.

## What it is

Simon Willison's July 19 post shows that the Claude Code CLI (from v2.1.181 onward) now runs on Bun v1.4.0, a preview build that Bun's team is rewriting from Zig into Rust. Anthropic ships that unreleased Bun inside every Claude Code install without flagging the change to users.

## How it works

The proof is two shell one-liners against the Claude Code binary. `strings ~/.local/bin/claude | grep -m1 'Bun v1'` prints "Bun v1.4.0 (macOS arm64)" — a version ahead of Bun's public v1.3.14 tag. A second `grep -Eo 'src/[[:alnum:]_./-]+\.rs'` pulls 563 Rust source filenames out of the same binary, matching Bun's in-progress Rust tree (`src/bundler/bundle_v2.rs`, `src/runtime/bake/dev_server/mod.rs`, etc.).

## Why it matters

This is the first public evidence that the Rust port of Bun is already running Anthropic's coding agent for millions of installs. Anthropic gets a faster, statically-linked runtime; the Bun team gets battle-testing on real workloads before their own 1.4 tag; users see a ~10% Linux startup speedup with no announcement. It's a datapoint on how quickly major AI vendors are absorbing pre-release infrastructure.

## Who it's for

Claude Code users, runtime engineers, Bun contributors

## Try it

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

## Links

- [Article](https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/)
- [HN Discussion](https://news.ycombinator.com/item?id=48966569)
- [Rust Filenames Gist](https://gist.github.com/simonw/c92fb0f67b114ac26e3b95a09ddccfdc)
- [Bun on GitHub](https://github.com/oven-sh/bun)
