logoalt Hacker News

`bun init` automatically creates a Claude.md file by default

10 pointsby achristmascarltoday at 8:02 PM10 commentsview on HN

Comments

hennelltoday at 10:05 PM

It says it makes:

- a CLAUDE.md file when Claude CLI is detected (disable with CLAUDE_CODE_AGENT_RULE_DISABLED env var) - a .cursor/rules/*.mdc file when Cursor is detected, which tells Cursor AI to use Bun instead of Node.js and npm

Is it by default if it only does it when you have the tools installed?

show 1 reply
numkemtoday at 9:51 PM

To me this is a reason to not use bun. I don’t case who owns it, if you force LLM crap by default I’m not interested. It’s too bad it turned out that way as I saw bun as a good way around node’s issues but this is just too much.

show 2 replies
ventanatoday at 8:28 PM

Not only CLAUDE.md, but also .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc (which is a symlink to CLAUDE.md); so it just looks like they try to let agents know that it's a bun project and not a Node.js project. Seems reasonable to me, and also can be disabled if you don't need it.

tjadfsajtoday at 10:13 PM

I think I would have preferred AGENTS.md since it is vendor neutral.

mike_hocktoday at 10:28 PM

Thanks for the PSA but I already knew that I wasn't gonna touch it with a ten foot pole.

show 1 reply