Bun Runtime Now Auto-Generates Claude.md Files by Default
Key Takeaways
- ▸Bun init now auto-generates CLAUDE.md files when Claude CLI is detected
- ▸Streamlines setup for developers using Claude Code for AI-assisted development
- ▸Reflects closer integration between Bun and Claude/Anthropic ecosystems
Summary
Bun's bun init package initialization tool now automatically generates a CLAUDE.md file when it detects Claude CLI is installed on a developer's system. This seamless integration brings Claude Code support directly into the JavaScript project scaffolding workflow, removing extra setup steps for developers building with Claude.
This integration reflects growing collaboration between the Bun team and Anthropic to improve the developer experience for Claude Code users. By automatically creating the CLAUDE.md documentation template—which works with Claude's codebase context system—Bun makes it easier for developers to leverage AI-assisted development from the very start of a project.
The feature is enabled by default but can be disabled using the CLAUDE_CODE_AGENT_RULE_DISABLED environment variable. Bun also detects and integrates with other developer tools like Cursor, creating relevant configuration files when those are detected.
- Feature is opt-outable via CLAUDE_CODE_AGENT_RULE_DISABLED environment variable


