frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

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

5•bognition•1d ago
I'm very curious to see what other people have put into their claude.md memory file, what works well and what does not.

Comments

fazlerocks•16h ago
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.

muzani•3h ago
I put explanations of the code in other .md files. There's architecture.md, checklist.md, (feature).md, components.md, navigation.md.

These are designed to be easy for humans to read. There's also notes on things like deprecated libs to avoid, or how to use the design system. Get it to update things as they change.

Claude.md for me is a kind of directory to tell it what to read based on what it's trying to do.

Roadmap.md is one of my favorites. A lot of the problems that arise for both human and LLM coders is that we don't notice that there's tech debt or incomplete items. It's also easy to get back into 'flow' 7 months later.

Ask HN: Any good tools for viewing congressional bills?

15•tlhunter•41m ago•6 comments

Ask HN: What are some good resources for coding best practices?

3•genericmask•1h ago•1 comments

Ask HN: Should I build a directory product?

3•alizaid•1h ago•2 comments

Ask HN: Startup getting spammed with PayPal disputes, what should we do?

275•june3739•2d ago•179 comments

Ask HN: Has anybody built search on top of Anna's Archive?

282•neonate•2d ago•146 comments

Ask HN: Anyone else feeling increasingly alienated from the industry?

15•saubeidl•7h ago•14 comments

Ask HN: What are your fav/goto decision making hacks/heuristics?

4•ottaborra•8h ago•7 comments

Ask HN: Who is hiring? (June 2025)

365•whoishiring•4d ago•452 comments

Ask HN: Running AI agents in isolated environments

4•polycaster•10h ago•0 comments

Ask HN: How do I learn robotics in 2025?

395•srijansriv•4d ago•99 comments

Ask HN: How do I learn practical electronic repair?

180•juanse•6d ago•112 comments

Ask HN: Anyone making a living from a paid API?

247•meander_water•6d ago•172 comments

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

5•bognition•1d ago•2 comments

Ask HN: Options for One-Handed Typing

92•Townley•2d ago•93 comments

Ask HN: Walking while working and having meetings

3•martythemaniak•14h ago•5 comments

Ask HN: Who's Using the Origin Private File System?

4•ChadNauseam•14h ago•1 comments

Ask HN: Who wants to be hired? (June 2025)

125•whoishiring•4d ago•384 comments

Ask HN: What Does Your Self-Hosted LLM Stack Look Like in 2025?

17•anditherobot•1d ago•6 comments

O(1) memory, no-preprocessing reachability algorithm for 2D grids

2•MatthiasGibis•21h ago•1 comments

Ask HN: What tools are you using for AI evals? Everything feels half-baked

4•fazlerocks•22h ago•2 comments

Ask HN: Where do you go for cutting-edge dev news and info?

2•TimTheTinker•1d ago•9 comments

Ask HN: What is the best LLM for consumer grade hardware?

238•VladVladikoff•1w ago•182 comments

Ask HN: How are parents who program teaching their kids today?

101•laze00•5d ago•91 comments

Ask HN: Dealing with Vibe Coding Depression?

16•softirq•1d ago•23 comments

Reaching my first 100 users without money or audience (at 10K users now)

32•felixheikka•3d ago•11 comments

How do you store and maintain your CV/resume over time?

10•xantin•2d ago•16 comments

Ask HN: List of skills to survive the AI tsunami

16•cookiemonsieur•1d ago•6 comments

Ask HN: What's with the repeated job posts on "Who's hiring"?

85•rafavento•2d ago•41 comments

Ask HN: Is Adrian Colyer of "The Morning Paper" fame ok?

10•yencabulator•15h ago•0 comments

Ask HN: Best way to get laid off

10•jakamm•1d ago•24 comments