mdpantry / How long is a CLAUDE.md
How long is a CLAUDE.md?
The middle CLAUDE.md in a public repository is 78 lines. This is 1,591 distinct files, found in 2,101 repositories, as their saved copies stood on . 342 of them (21%) run past 200 lines, the length Claude Code's docs say to stay under, because a longer file costs more context every session.
78lines, the middle file
28 to 181lines, the middle half
21%past 200 lines
Where they fall
- 1 to 20 lines341 21%
- 21 to 50 lines236 15%
- 51 to 100 lines341 21%
- 101 to 200 lines331 21%
- Past 200 lines: the length Claude Code's own docs say to stay under.
- 201 to 400 lines221 14%
- 401 or more lines121 8%
The most-starred
affaan-m/ecc: 88 lines, 302,187 starsfirecrawl/firecrawl: 21 lines, 202,441 starsgarrytan/gstack: 627 lines, 141,854 starsjuliusbrussee/caveman: 436 lines, 119,562 starsaddyosmani/agent-skills: 60 lines, 117,236 starsthedotmack/claude-mem: 6 lines, 117,202 stars
Each one opens that repo's pantry, with its CLAUDE.md as a jar.
How it was measured
- Every public repository the registry has saved that keeps a CLAUDE.md at its root, the file Claude Code reads at the start of a session: 2,101 repositories. Files with identical bytes count once (a fork or a shared template copies its file) and an empty file is left out, which leaves 1,591.
- A line is a line of the saved file. The percentages are of those 1,591 files. The middle half runs from the 25th to the 75th file in order of length, counted by nearest rank.
- These are the registry's saved copies, read from its crawl on : not live GitHub, and not every repository on GitHub, only the ones the registry has found.
Counted by the registry that serves this pantry, with no model in the count. Updated . Starting your own? The CLAUDE.md starter is the place to begin.