Skip to content

Comment on Ask HN: What do you put in claude.md and what you leave out?

Comments

Been messing around with the different memory files and honestly it's pretty useful once you get the hang of it.

I mostly use:

Project ./claude.md - team stuff like our weird API naming conventions, how we structure components, deployment steps that always trip people up

Local ./claude.local.md - my dev URLs, test accounts, personal shortcuts. Stuff I don't want to commit to the team file

User ~/.claude/claude.md - code style preferences, how I like explanations (brief vs detailed), tools I always use

The recursive thing is neat - it picks up memories from parent folders so you don't have to duplicate everything.

That # shortcut is way faster than editing files manually. Still forget about /memory command half the time tho.

Main thing I learned is being specific helps a lot. 'Use our error handling pattern' vs actually showing the pattern makes a big difference.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.