Should I use CLAUDE.md?
Use it for facts that the code does not show. With no memory, Claude Sonnet 5.5 passed 6/15 team-knowledge checks (95% interval 19.8% to 64.3%, n = 15). With the curated 11-line file, it passed 15/15 (95% interval 79.6% to 100%, n = 15).
For rules that the code shows, Claude Sonnet 5.5 passed 57/60 with no memory (95% interval 86.3% to 98.3%, n = 60).
What are CLAUDE.md best practices?
These are our recommendations from one small repository, not a standard. Write down what the code cannot show.
Check the file that /init writes. Claude Sonnet 5.5 ran its stale test command in 13/15 sessions (95% interval 62.1% to 96.3%, n = 15).
Use a hook only for a rule that a script can check. A hook alone used 1.6× the median input tokens of no memory (calculation, n = 15).
Review notes that grow. With the raw notes, Claude Haiku 4.5 ran a stale test command in 10/10 sessions (95% interval 72.3% to 100%, n = 10). With the dreamed notes, it did so in 1/10 (95% interval 1.8% to 40.4%, n = 10).
How long should a CLAUDE.md be?
The study tested two lengths: 11 lines and 210 lines. Claude Sonnet 5.5 reached a full pass in 15/15 sessions with the curated 11-line file (95% interval 79.6% to 100%, n = 15). It reached a full pass in 15/15 sessions with the 210-line handbook (95% interval 79.6% to 100%, n = 15).
Claude Haiku 4.5 passed 3/10 team-knowledge checks with the 210-line handbook (95% interval 10.8% to 60.3%, n = 10). It passed 8/10 with the curated 11-line file (95% interval 49.0% to 94.3%, n = 10). The two intervals overlap, so the gap is not clear (calculation).
Can messy CLAUDE.md notes mislead Claude Code?
They misled the smaller model in this study. With the raw notes, Claude Haiku 4.5 ran a stale test command in 10/10 sessions (95% interval 72.3% to 100%, n = 10). After one dreaming pass over the same notes, it did so in 1/10 sessions (95% interval 1.8% to 40.4%, n = 10). The two intervals do not overlap (calculation).
Claude Sonnet 5.5 ran the stale command in 0/15 sessions with the raw notes (95% interval 0% to 20.4%, n = 15).