H
Howardism
Plate IIEntitiesHOWARDISM

Bun

PublishedAugust 3, 2026FiledEntityDomainEntitiesTagsEntitySoftwareAnthropicAI CodingReading5 minSourceAI-synthesised

The JavaScript/TypeScript runtime, bundler, package manager and test runner created by Jarred Sumner; 22M+ monthly CLI downloads; Claude Code's runtime and the sandbox dynamic workflows execute inside; acquired by Anthropic December 2025 and ported from 535,496 lines of Zig to Rust by Claude in 11 days (v1.4.0)

Illustration for Bun

Sources#

Summary#

A JavaScript and TypeScript runtime that bundles what is normally five separate tools: transpiler/minifier/bundler, npm-compatible package manager, Jest-like test runner, Node.js-compatible module resolution and API surface (fs, net, tls, …), and an HTTP/WebSocket client. Created by Jarred Sumner, who wrote his first line of Zig on April 16, 2021 and shipped the initial version — scoped as a line-for-line port of esbuild's Go transpiler into Zig — in one year, solo, pre-LLM. As of mid-2026 the CLI sees 22M+ monthly downloads; Claude Code and OpenCode run on it, and Vercel, Railway and DigitalOcean carry first-party support.

Acquired by Anthropic in December 2025. Sumner and the Bun team are Anthropic employees — the disclosure that governs how every Bun-sourced claim in this wiki is weighted.

Why it matters to this wiki#

Bun appears at three different layers, which is unusual and easy to conflate:

  1. As Claude Code's runtime — the thing the product is built on (Claude Code).
  2. As the sandboxdynamic workflows execute the model-authored orchestration program inside a VM in the Bun runtime.
  3. As the subject — the Zig→Rust port is the flagship worked case of that same orchestration primitive.

The Zig→Rust port (v1.3.14 → v1.4.0)#

Bun's defining engineering problem was that JavaScriptCore is garbage-collected while Zig is manually managed, and Zig has no destructors — cleanup is written out at every call site with defer. The recurring bug tail was use-after-free, double-free, and forgot-to-free-on-the-error-path. Existing mitigations (a patched Zig compiler with ASAN, ReleaseSafe builds on Windows, 24/7 Fuzzilli fuzzing, end-to-end leak tests) were "more than many projects do" and still insufficient.

The port — 535,496 lines of Zig across 1,448 files, 11 days, ~50 Claude Code dynamic workflows, 6,502 commits — is documented in Dynamic Workflows: An Algebra for Agents. Outcomes: 128 bugs fixed in v1.4.0 that reproduce in v1.3.14, every instrumentable memory leak closed, ~20% smaller binary, 2–5% faster, 19 known regressions. Bun v1.3.14 was the last Zig version; v1.4.0 is the first Rust one.

The enabling property was accidental: Bun's test suite is written in TypeScript, so it does not depend on the runtime's implementation language and survived the port untouched — 1M+ expect() assertions across ~4,175 files, 0 skipped or deleted.

Public repo state after the merge#

Worth keeping separate from the port narrative, because the two are easy to conflate. An outside audit of the public repository (Lockwood, 2026-07-27, case-study) found:

  • No release tag since bun-v1.3.14 (2026-05-12) — 11 weeks, and 6 weeks past the merge to main. The longest prior gap in Bun's history was 6 weeks (v0.2.2 → v0.3.0, late 2022). v1.4.0 was still canary-only at Sumner's July 8 publication.
  • Open robobun PRs rose 1,277 → ~2,475 between July 9 and July 27; at an observed ~40–90 min per Buildkite merge that queue implies ~86 days of continuous pipeline to drain.
  • Anthropic employees authoring PRs alongside the agent fleet, with Rust involvement ramping after the merge.

This is not in tension with "Claude Code has shipped the Rust port since v2.1.181": Claude Code vendors Bun, so a production deployment there is a different artifact from a tagged public Bun release. What the repo state does show is that the stabilization tail Sumner documented was still running eleven weeks after the last tag — see Dynamic Workflows: An Algebra for Agents for the cost-to-green vs cost-to-shipped reading.

Connections#

  • Jarred Sumner — creator; author of the port methodology
  • Anthropic — acquirer (December 2025) and the employer that makes every Bun claim first-party
  • Claude Code — built on Bun; ships the Rust port in production since v2.1.181 (2026-06-17), ~10% faster Linux startup
  • Dynamic Workflows: An Algebra for Agents — both the sandbox Bun provides and the flagship case the port supplies
  • Verification as the New Bottleneck — Bun's language-independent test suite is the substrate that made the port checkable
  • Boris Cherny — gave the secondhand stage account of the port that the first-party post later corrected

Sources#

  • Rewriting Bun in Rust — Jarred Sumner, bun.com (2026-07-08, case-study): scope, history, the acquisition disclosure, the port and its outcomes
  • Boris Cherny: We Cut 80% of Claude Code's Prompt — Y Combinator interview (2026-07-27, practitioner-opinion): Bun as Claude Code's runtime and as the dynamic-workflow sandbox
  • How is the Bun Rewrite in Rust Going? — Tom Lockwood, lockwood.dev (2026-07-27, case-study, independent): the public repo state 11 weeks after the last release tag — tag history, robobun PR queue growth, Buildkite merge times
§ end
About this piece

Articles in this journal are synthesised by AI agents from a curated wiki and are refreshed automatically as new concepts arrive. Topics, framing, and editorial direction are curated by Howardism.

Cited by 7
  • Dynamic Workflows: An Algebra for Agents×3

    Most of the apparent contradiction dissolves against Sumner's own account, and should not be staged as a conflict. "In production since Claude Code v2.1.181"…

  • Anthropic×2

    Bun / Jarred Sumner — acquired December 2025; the runtime under Claude Code, ported Zig→Rust by Claude and documented as the wiki's flagship dynamic-workflow…

  • Claude Fable 5×2

    Jarred Sumner ported Bun from 535,496 lines of Zig to Rust in 11 days using a pre-release version of Fable 5 (rewriting bun in rust, 2026-07-08, case-study) —…

  • Jarred Sumner×2

    Creator of Bun. Wrote his first line of Zig on April 16, 2021, having bet on the language after reading its single-page reference on Hacker News, and built the…

  • Claude Code

    Runtime: built on Bun. In July 2026 Cherny reported Bun itself was rewritten from Zig to Rust by Claude in an 11-day dynamic workflow run (~~">100k LOC", "one…

  • Entities — People, Orgs, Tools & Projects

    Bun — The JavaScript/TypeScript runtime, bundler, package manager and test runner created by Jarred Sumner; 22M+ monthly CLI downloads; Claude Code's runtime…

  • Optimizer–Evaluator Decoupling

    Jarred Sumner's account of porting Bun from Zig to Rust (rewriting bun in rust, case-study, Anthropic-employee disclosure) runs this invariant across 6,502…

Related articles
  • Claude Code

    Anthropic's agentic coding product; created by Boris Cherny late 2024; TypeScript/React on Bun (itself Claude-rewritten…

  • Anthropic

    AI safety company / vendor of Claude; mission-as-tiebreaker culture; ~30–40 PMs across teams; Mike Krieger leads Labs r…

  • Boris Cherny

    Creator of Claude Code at Anthropic; phone-driven workflow with hundreds of agents; primary advocate of `/loop` primiti…

  • Dynamic Workflows: An Algebra for Agents

    Claude Code's sandboxed orchestration primitive: Claude writes and runs a program that composes agents in sequence and…

  • Jarred Sumner

    Creator of the Bun runtime, now an Anthropic employee after the December 2025 acquisition; author of 'Rewriting Bun in…