Ask HN: What's in Your Agents.md/Claude.md?

4 points by imasl42 ↗ HN
I'm curious what the community is putting in their AGENTS.md and CLAUDE.md memory files for coding assistants.

What have you found most valuable to document?

Especially interested in:

- Project-specific gotchas you've discovered the hard way

- Rules that prevent common agent mistakes

- Context that significantly improves code quality

- Examples of what NOT to include

Would love to see real examples if you're willing to share.

Please use one instruction per comment. This way others can vote for instructions and put them to the top.

3 comments

[ 3.0 ms ] story [ 19.2 ms ] thread
I'll start:

Never commit directly to `main` - always use feature branches

(comment deleted)
Don't run "npm run dev" during development

(I'm running it myself in a separate terminal window, otherwise there is going to be too many dev servers running simultaneously)