Skip to content
Agent Friendly Code

What's in an AGENTS.md? 260 real files, section by section

160 of the 260 AGENTS.md or CLAUDE.md files on our board (62%) give an exact command to run the tests, and 67 (26%) show how to run a single test. The most common sections: testing (163 files), build and run commands (161 files) and code style and conventions (160 files). Read on 25 Nov 2026, each file as of the board's last scoring.

By Himanshu Singh · Updated · How we score →

Exact test command

62%

160 of 260 files

Point to other files

87%

225 of 260 link, import or name another Markdown file

Say never or don't

90%

234 of 260 files; median 7 such lines

No headings at all

3%

8 of 260 files are flat prose or lists

Which sections appear

Share of the 260 files with at least one heading on each topic, and the median length of that topic's sections in the files that have it. A heading can count for two topics (“Build and test”). Of the 3,276 headings below a title, 2,043 matched a topic (62%); the rest name something specific to the project.

  • Testing163 of 260 (63%), median 1,256 chars
  • Build and run commands161 of 260 (62%), median 986 chars
  • Code style and conventions160 of 260 (62%), median 1,762 chars
  • Commits, PRs and review150 of 260 (58%), median 1,312 chars
  • Architecture and layout136 of 260 (52%), median 1,434 chars
  • Rules, limits and gotchas106 of 260 (41%), median 1,169 chars
  • AI agents and skills93 of 260 (36%), median 1,192 chars
  • Setup and install75 of 260 (29%), median 730 chars
  • Project overview68 of 260 (26%), median 442 chars
  • Documentation59 of 260 (23%), median 543 chars
  • Security41 of 260 (16%), median 676 chars
  • Troubleshooting and debugging17 of 260 (7%), median 265 chars

Commands

  • Has a code block145 of 260 (56%)
  • Gives a test command160 of 260 (62%)
  • Shows how to run one test67 of 260 (26%)

A test command is code (a block or inline) that calls a test runner, a tool's test subcommand, or the project's own test script. One test means it narrows to a file, a name or a pattern.

Pointers to other files

  • Relative Markdown link126 of 260 (48%)
  • An @-import15 of 260 (6%)
  • Names another .md file222 of 260 (85%)
  • Links to a web page76 of 260 (29%)

CLAUDE.md beside an AGENTS.md

  • No root CLAUDE.md126 of 238 (53%)
  • Symlink to AGENTS.md33 of 238 (14%)
  • Imports @AGENTS.md53 of 238 (22%)
  • Mentions AGENTS.md14 of 238 (6%)
  • Separate file12 of 238 (5%)

Out of the 238 repos whose file is a root AGENTS.md; in 11 of them the AGENTS.md is itself a symlink. When both exist, Claude Code reads only CLAUDE.md unless it imports @AGENTS.md: AGENTS.md vs CLAUDE.md.

Rules and emphasis

  • A never / do not / avoid line234 of 260 (90%)
  • All-caps MUST, NEVER or ALWAYS75 of 260 (29%)

Median file: 6,941 characters over 116 lines, with 11 headings. More on length: AGENTS.md sizes.

From the files

Picked by rule, not by hand: for each kind, the first matching line in the most-starred repo not already quoted. Each links to the file at the commit read.

Methodology

  • The sample is every repo on the leaderboard whose AGENTS.md check found a file with content: a root AGENTS.md, or a CLAUDE.md (root or .claude/) where there is none. 261 files; 260 were read (238 AGENTS.md, 22 CLAUDE.md), and every share on this page is out of 260 unless it says otherwise. Nested files aren't read.
  • The board stores no file contents or commit, so each file was read at the last commit on the default branch before the repo's last scoring time. 259 of the 260 came out the exact length the board scored, so the commit read is the one scored or holds the same file; 1 did not. 1 could not be read (repo or branch no longer found).
  • Topics come from headings (# to ######, outside code fences), matched against keyword lists; a file's first heading is skipped when it is a level-1 title. A section runs to the next heading at its level or above. Underlined headings and bold lines used as headings aren't counted, so a file can have a topic in prose that this misses, and a keyword can misfire (“Important files” counts as a rule).
  • Only counts and the 4 short quotes above are stored, never the files: agents-md-contents.csv has every file's row, with the commit read.
The keyword list for each topic
  • Project overview: \b(overview|about|introduction|intro|purpose|summary|context|background|what is|mission|goals?)\b
  • Setup and install: \b(setup|set up|install\w*|getting started|prerequisites?|requirements|environment|dependencies|quick ?start|bootstrap\w*|toolchain|local development)\b
  • Build and run commands: \b(build\w*|compil\w*|commands?|scripts?|run|running|makefile|cli usage|dev(elopment)? (workflow|loop|server))\b
  • Testing: \b(test\w*|qa|verif\w*|validat\w*|checks?|ci|continuous integration|coverage)\b
  • Code style and conventions: \b(style|styling|conventions?|format\w*|lint\w*|naming|best practices?|standards?|code quality|idioms?|patterns?|typing|error handling|comments|(code|coding|development|general|implementation|programming|engineering) (guidelines?|rules|practices|principles))\b
  • Architecture and layout: \b(architecture|structure|layout|organi[sz]ation|director(y|ies)|folders?|modules?|codebase|project map|key (files|paths|concepts)|design|packages|monorepo|crates|where things live)\b
  • Commits, PRs and review: \b(pull requests?|prs?|commits?|git|branch\w*|changelog|code review|reviews?|contribut\w*|releases?|merging|versioning|changesets?)\b
  • Rules, limits and gotchas: \b(don'?t|do not|never|avoid|boundar\w*|restrictions?|limits|constraints|gotchas?|pitfalls?|caveats?|warnings?|important|mistakes|anti ?patterns?|forbidden|rules|must)\b
  • Security: \b(security|secrets?|credentials?|safety|permissions?|vulnerabilit\w*|sensitive|privacy|secure)\b
  • Documentation: \b(documentation|docs|readme|docstrings?)\b
  • AI agents and skills: \b(agents?|ai|llms?|assistants?|claude|copilot|codex|cursor|gemini|mcp|prompts?|skills?)\b
  • Troubleshooting and debugging: \b(troubleshoot\w*|debug\w*|faq|common (issues|problems|errors)|known issues)\b

Writing your own

Only 67 of the 260 files show how to run a single test, the quickest check an agent can make after an edit; that line is worth adding to yours. Adoption over time is in State of AGENTS.md adoption; whole files to read are under AGENTS.md examples.

Cite this

Agent Friendly Code. "What's in an AGENTS.md? 260 real files, section by section." Data as of 25 Nov 2026. https://agentfriendlycode.com/report/agents-md-contents