Claude CodeIntermediateClaude Code
Keep CLAUDE.md short or the rules get diluted
A CLAUDE.md of hundreds of lines makes Claude ignore the very rule that mattered; keep only what changes its behavior.
CLAUDE.md is loaded in full in every session, so each new line takes weight away from the others. Generate the base with /init, validate it and trim it: test commands, conventions, forbidden paths. The course guideline is not to go past about 200-300 lines; history or directory-specific material goes elsewhere (path rules, skills, docs read on demand).
Example
Quick audit of your CLAUDE.md: 1. Does this line change what Claude does today? If not, out. 2. Does it only apply to one directory? → .claude/rules/ with paths. 3. Is it history or archived notes? → a separate doc. 4. Is it a rule that CANNOT fail? → a hook.