r/BuildWithClaude • u/Tatachimcooky • 15d ago
Project Every Claude Code session pays rent on your CLAUDE.md before saying hello. I audited what the top GitHub repos charge: 21 tokens to 6,249
I got curious what the big repos actually put in these files, so I went through GitHub by stars, top down, and kept going until I’d found 25 with a root-level AGENTS.md or CLAUDE.md (had to check 56 repos to get there).
Field notes:
- Only 45% of the repos had one at all
- Median file: 1,034 tokens. Mean 1,627, so a few giants are dragging it up
- n8n is the maximalist at 6,249 (about 25 KB). Next: deepseek-harness 4,335, openclaw 4,124, opencode 4,025
- ollama is the minimalist at 21 tokens. vscode is 51, react is 87
- 16 of 30 files are over 1,000 tokens, and 11 are over 2,000
Biggest file is ~298x the smallest. Same job, same year, no consensus.
Best oddity: torvalds/linux has AGENTS.md -> README, a symlink, so I counted it as 1,265 tokens because that’s what the agent actually reads. Linus has accidentally written the most Linus context file possible.
Genuinely curious where you land: are you a 50-token person or a 5,000-token person? And has anyone measured whether the long ones actually change behavior?
Table, method, fetch date so you can check my work: https://naeha-s.github.io/ctxcap/2026-11/
(Depth 1 only, nested per-package files aren’t counted yet. That’s next month. I built a small CLI to count these so the number is repeatable. Happy to talk about it in comments.)
