Hacker News new | ask | show | jobs
by F7F7F7 113 days ago
I've found that maintaining minimal structural cues (typically a single repeating heading) in Claude.md helps it better index information. And anecdotally a lot less GREP'ing, web searching and wasted tokens.

I also include a short instruction a the top of my file. Requiring context to be written as single line rationales with up to 1 additional line for links/refs/pointers. While explicitly forbidding "tutorial-like" explanations and blocks/pages of code.

1 comments

The single repeating heading as an index anchor is a smart middle ground — keeps structure without the full markdown overhead. The "single line rationale, no tutorial explanations" constraint is interesting, that's essentially forcing the same signal-over-noise discipline at the instruction level rather than just the formatting level. I might steal that.