Claude Code Now Ships with the Rust-Ported Bun
Score
75首次公开揭示 Claude Code 底层 Bun 切换为 Rust 重写的具体证据,此前无类似细节披露
方法清晰(strings 命令)、证据链完整(版本号+文件列表),逻辑严谨
对 AI 工具开发者如何安全迁移底层运行时有参考意义,但普通用户影响较小
文章写于 2026 年 7 月 19 日,对应 v2.1.181(6 月 17 日发布),时效性高
Simon Willison 是知名技术博主,验证方法透明可信
Base 83 × T2 Source weight ×0.9 = 75
Curation line 70Selected
Why selected
High information gain; first empirical evidence of Claude Code's Bun migration, directly valuable for AI toolchain performance optimizers.
AI commentary
「This article caught my eye because it goes beyond features to uncover a core technology switch in Claude Code. For developers focused on AI tool performance optimization, it offers a rare inside look—the fact that a Rust rewrite could be deployed without user disruption shows Anthropic's solid engineering in compatibility and performance. If you're considering a Rust port of your own runtime, study Willison's forensic approach.」
Quick overview
As of Claude Code v2.1.181 (released June 17th), the tool ships with the Rust port of Bun (v1.4.0, not yet publicly released). Author Simon Willison discovered evidence by scanning the binary with strings, finding both the Bun version number and 563 .rs source file paths. Linux startup improved by ~10%, with negligible impact on other platforms. Bun creator Jarred Sumner commented, 'Boring is good,' highlighting a seamless migration.
- Claude Code v2.1.181+ uses the Rust port of Bun
- Evidence: strings command shows Bun v1.4.0 (unreleased) and 563 Rust file paths
- Linux startup ~10% faster; other platforms unchanged
- Bun creator calls the boring migration a positive sign
Full text
Showing the source text; the full translation is being generated.
In Rewriting Bun in Rust Jarred Sumner made the following claim:
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.
I decided to have a poke at my own Claude Code installation to see if I could find evidence that it was using Bun written in Rust.
I found these two commands convincing:
strings ~/.local/bin/claude | grep -m1 'Bun v1'
For me this outputs Bun v1.4.0 (macOS arm64). The most recent release of Bun on GitHub is currently v1.3.14 from May 12th, so that v1.4.0 version number in Claude supports them shipping a preview of a not-yet-released Bun version.
strings ~/.local/bin/claude | grep -Eo 'src/[[:alnum:]_./-]+\.rs'
This outputs a list of 563 filenames, starting with these:
src/runtime/bake/dev_server/mod.rs
src/runtime/bake/production.rs
src/bundler/bundle_v2.rs
It looks like Bun in Rust is indeed being run in production across millions of different devices. Like Jarred said, "Boring is good".
Tags: bun, rust, anthropic, claude-code, jarred-sumner
Related items
92
FeaturedOpenRouter Launches Prompt Caching with Sticky Routing to Drastically Reduce Multi-Turn Costs
OpenRouter 推出提示缓存与粘性路由,大幅降低多轮对话成本
For developers making frequent AI API calls, this feature is a direct money-saver. Sticky routing guarantees cache hit rates, and session_id requires zero configuration—every OpenRouter user should try it immediately.
91
FeaturedChatGPT Work: An AI Agent That Takes Action Across Apps and Files
ChatGPT Work:可在跨应用和文件中执行操作的AI Agent
I think this is a key step for AI assistants moving from Q&A to execution. Especially noteworthy for professionals who need to automate complex workflows. ChatGPT Work could become a new paradigm for productivity tools.
90
FeaturedAnatomy of a Frontier Lab Agent Intrusion: A Technical Timeline of the July 2026 Incident
前沿实验室代理入侵事件技术时间线:2026年7月事件剖析
This technical timeline is a must-read for all AI security researchers and agent developers—it doesn't just describe one attack but sounds an alarm on the weak defense systems of agent architectures. For teams deploying autonomous agents, this is an essential disaster prevention manual.
90
FeaturedBetter Tools Made Copilot Code Review Worse? Here's How GitHub Improved It
更好的工具反而让Copilot代码审查更糟?GitHub这样改进
This blog post deserves close reading by all AI product engineers and ML practitioners—it breaks the intuition that 'more powerful tools = better AI' and instead emphasizes an engineering philosophy aligned with agent reasoning patterns. Especially important for teams optimizing code review or similar agent-based products.
88
FeaturedOpenRouter Launches Unified Multimodal API: Single Endpoint for Image, Video, Audio, Embeddings, and Transcription
OpenRouter 推出统一多模态 API:单端点支持图像、视频、音频、嵌入与转录
This news is worth attention from all developers building multimodal AI applications: OpenRouter's unified API solves the pain of model switching, especially for startups or rapid prototyping. If you're struggling with multiple API keys and SDKs, this interface could be the unified layer you need.
87
FeaturedAnthropic Launches Claude for Teachers: AI Tools Designed for Educators
Anthropic 推出 Claude for Teachers:面向教师的教育 AI 工具
This announcement is valuable for educators and AI industry watchers alike. Instead of a generic chatbot, Anthropic designed a safety-first tool specifically for teachers, demonstrating the right approach for AI vertical deployment: solving real pain points rather than showing off technology. The built-in guardrails also set a reference for other AI companies, especially when serving scenarios involving children or teenagers.
86
FeaturedOpenRouter Introduces New Auto Router: Model Routing Powered by Market Wisdom
OpenRouter发布全新Auto Router:用市场智慧优化模型路由
This update is worth attention for anyone using APIs to build AI apps. Instead of guessing or testing model selection, market data now does the heavy lifting. Though sparse on details, the direction is right, especially for teams relying on aggregated model services.
86
FeaturedClaude Code v2.1.211 Release: Multiple Fixes and Improvements
Claude Code v2.1.211 发布:多项修复与改进
As a developer who frequently uses Claude Code for automated coding, I'm particularly interested in the security fixes, especially the permission preview character bypass and auto mode overriding hook decisions—these directly affect the security boundaries during team collaboration. The improvement in background agent reporting also makes long-running tasks more reliable. I recommend all users upgrade as soon as possible.