All research
Research

What 7,370 popular GitHub repositories put in AGENTS.md and CLAUDE.md

A census of every active GitHub repository with 5,000+ stars: who has an AGENTS.md or CLAUDE.md, what the files say, and whether the two connect.

N=7,370

Key findings

  1. 33.4% of the 7,370 active GitHub repositories with 5,000 or more stars have at least one instruction file for coding agents. AGENTS.md is the most common (25.3%), then CLAUDE.md (19.2%) and GitHub Copilot's instructions file (6.0%).
  2. The more popular the repository, the likelier the file: 21.9% of repositories with 5,000–9,999 stars have an AGENTS.md, against 41.8% of those with 50,000+.
  3. 1,013 repositories have both files. In 74.1% of them the two are joined by a symlink or CLAUDE.md imports or copies AGENTS.md; in the other 25.9%, Claude Code by default reads CLAUDE.md and does not load AGENTS.md.
  4. The median AGENTS.md is 819 words (105 lines), more than double the 200 to 400 words Codex's /init command asks for, and 67 are larger than the 32 KiB Codex reads by default.
  5. 73.5% of AGENTS.md files name a test, build or lint command, but only 10.6% state a rule against committing, logging or exposing secrets.
  6. The files are maintained, not written once: the median AGENTS.md has 5 commits, and 79.6% have been changed more than once.

Methodology

A census, not a sample: every public GitHub repository with 5,000+ stars, not a fork or archived, pushed to in the 90 days to 27 September 2026. We read each root AGENTS.md and CLAUDE.md (root or .claude/), following symlinks, and seven other instruction files.

Dataset: AGENTS.md and CLAUDE.md census 2026: per-repository metrics · License: CC BY 4.0: attribute "Stride Research, AGENTS.md and CLAUDE.md census 2026" with a link to the report. · Download raw data

Read the full methodology

Coding agents start every session knowing nothing about the repository in front of them. An instruction file is how a project tells them what the code cannot: the commands that build and test it, the conventions reviewers enforce, the mistakes to avoid. Two names now dominate. AGENTS.md is an open format that OpenAI Codex, Cursor, GitHub Copilot's cloud agent and many other agents read. CLAUDE.md is the file Claude Code reads.

This study measures what projects actually write in them. On 27 September 2026 we read the instruction files of every public GitHub repository with 5,000 or more stars that is not a fork, is not archived, and was pushed to in the previous 90 days: 7,370 repositories. It is a census of that population, not a sample. The per-repository dataset (CC BY 4.0) and the scripts that produced it are free to download.

Who has an instruction file

33.4% of the 7,370 repositories have at least one instruction file for a coding agent, and AGENTS.md is the most common: 1,864 repositories (25.3%) have one at the root, against 1,415 (19.2%) with a CLAUDE.md. GitHub Copilot's instructions file follows at 6.0% and Cursor's rules at 2.4%.

AGENTS.md25.3%
CLAUDE.md19.2%
GitHub Copilot instructions6.0%
Cursor rules2.4%
GEMINI.md1.1%
AGENT.md0.2%
Windsurf rules0.2%
Cline rules0.1%
Junie guidelines0.1%
Figure 1. Instruction files by type. Share of the 7,370 repositories with each kind of file. CLAUDE.md counts the root or .claude/ (Claude Code reads either); Cursor and Windsurf rules count the legacy root file or the rules directory. A repository can have several.

Source: Stride Research census of 7,370 GitHub repositories, 27 September 2026. Download the data.

Chart description (text)

Figure 1. Instruction files by type: AGENTS.md 25.3%; CLAUDE.md 19.2%; GitHub Copilot instructions 6.0%; Cursor rules 2.4%; GEMINI.md 1.1%; AGENT.md 0.2%; Windsurf rules 0.2%; Cline rules 0.1%; Junie guidelines 0.1%.

The more popular the repository, the likelier the file. 21.9% of repositories with 5,000–9,999 stars have an AGENTS.md, rising to 41.8% of the 409 repositories with 50,000+. At that top band, 50.1% have an instruction file of some kind.

5,000–9,999 stars21.9%
10,000–19,999 stars24.6%
20,000–49,999 stars30.8%
50,000+ stars41.8%
Figure 2. Repositories with an AGENTS.md, by stars. Share of repositories in each star band with an AGENTS.md at the root.

Source: Stride Research census, 27 September 2026.

Chart description (text)

Figure 2. Repositories with an AGENTS.md, by stars: 5,000–9,999 stars 21.9%; 10,000–19,999 stars 24.6%; 20,000–49,999 stars 30.8%; 50,000+ stars 41.8%.

By primary language, among the 11 languages with at least 150 repositories in the census, TypeScript projects are the most likely to have an AGENTS.md (40.3%) and Shell projects the least (12.8%).

TypeScript (1,253)40.3%
Rust (439)36.0%
Java (318)29.9%
Go (711)29.3%
Python (1,343)26.4%
C# (214)23.8%
C++ (422)19.9%
PHP (183)19.7%
JavaScript (629)14.9%
C (288)14.2%
Shell (164)12.8%
Figure 3. Repositories with an AGENTS.md, by primary language. Languages with at least 150 repositories in the census; the number of repositories is in brackets. The language is the one GitHub reports as the repository's primary language.

Source: Stride Research census, 27 September 2026.

Chart description (text)

Figure 3. Repositories with an AGENTS.md, by primary language: TypeScript (1,253) 40.3%; Rust (439) 36.0%; Java (318) 29.9%; Go (711) 29.3%; Python (1,343) 26.4%; C# (214) 23.8%; C++ (422) 19.9%; PHP (183) 19.7%; JavaScript (629) 14.9%; C (288) 14.2%; Shell (164) 12.8%.

When a repository has both files

1,013 repositories have both an AGENTS.md and a CLAUDE.md: 54.3% of the repositories with an AGENTS.md, and 71.6% of those with a CLAUDE.md.

How the two files relate decides what Claude Code sees. Its documentation says that by default it reads AGENTS.md only when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or above it. When both exist, it reads CLAUDE.md, and gets the contents of AGENTS.md only if CLAUDE.md carries them.

In 74.1% of these repositories it does. 360 import AGENTS.md with an @AGENTS.md line, 367 join the two files with a symlink, and 24 keep a copy of AGENTS.md in CLAUDE.md.

In the other 262 (25.9%), CLAUDE.md is a separate file, and Claude Code by default does not load AGENTS.md at all. 72 of these are short files that tell Claude to read AGENTS.md, and 64 longer ones mention it; Claude Code's documentation notes that when a CLAUDE.md only tells Claude in words to read AGENTS.md, Claude sees it only if it decides to open the file. The remaining 126 never mention AGENTS.md.

CLAUDE.md imports it (@AGENTS.md)360
CLAUDE.md is a symlink to it281
AGENTS.md is a symlink to CLAUDE.md69
Both are symlinks to one file17
CLAUDE.md holds a copy of it24
A short CLAUDE.md that says to read it72
A separate CLAUDE.md that mentions it64
A separate CLAUDE.md that never mentions it126
Figure 4. What CLAUDE.md does with AGENTS.md. The 1,013 repositories with both files, by how CLAUDE.md relates to AGENTS.md, grouped by whether Claude Code loads the AGENTS.md instructions through CLAUDE.md.

Source: Stride Research census, 27 September 2026. Classification rules on the methodology page.

Chart description (text)

Figure 4. What CLAUDE.md does with AGENTS.md: Claude Code loads AGENTS.md (751): CLAUDE.md imports it (@AGENTS.md) 360; Claude Code loads AGENTS.md (751): CLAUDE.md is a symlink to it 281; Claude Code loads AGENTS.md (751): AGENTS.md is a symlink to CLAUDE.md 69; Claude Code loads AGENTS.md (751): Both are symlinks to one file 17; Claude Code loads AGENTS.md (751): CLAUDE.md holds a copy of it 24; It does not by default (262): A short CLAUDE.md that says to read it 72; It does not by default (262): A separate CLAUDE.md that mentions it 64; It does not by default (262): A separate CLAUDE.md that never mentions it 126.

Symlinks carry a cost the import does not. Claude Code's documentation warns that on Windows, Git checks a committed symlink out as a plain text file unless core.symlinks is enabled, which leaves that clone with a one-line file in place of the instructions. 36.2% of the repositories with both files depend on a symlink, against 35.5% that use the import.

How long the files are

The median AGENTS.md is 819 words and 105 lines long, and one in ten runs past 2,696 words. Codex's /init command, which writes an AGENTS.md for a repository, asks for 200 to 400 words. 13.4% of files fall in that range, and 41.0% run past 1,000.

819 words
The median AGENTS.md: more than double the 200 to 400 words that Codex's /init command asks for.Source: Stride Research census of 1,864 AGENTS.md files, 27 September 2026

Length has a hard edge in Codex. By default it reads 32 KiB of project instructions and truncates a file past that point. 67 AGENTS.md files (3.6%) are larger than that on their own, so Codex at its default settings never reads their end.

CLAUDE.md files are shorter: a median of 483 words and 71 lines, partly because 32.7% are under 100 words (an @AGENTS.md import on its own is one word). Claude Code's documentation suggests keeping each CLAUDE.md under 200 lines, because longer files take more context and are followed less reliably; 265 (18.7%) are 200 lines or longer.

What the files say

We sorted every heading below the title into topics, using rules published on the methodology page. The five most common topics in AGENTS.md files are testing, code style and conventions, project structure, Git and pull requests, and commands. They are the five sections Codex's /init template recommends: project structure, build and test commands, coding style, testing guidelines, and commit and pull request guidelines.

Testing55.7%
Code style and conventions54.3%
Project structure54.3%
Git and pull requests47.6%
Commands44.0%
Build29.1%
Project overview28.2%
Documentation27.7%
Setup22.4%
CI and deployment17.2%
Dependencies17.1%
Security14.6%
Troubleshooting13.4%
Figure 5. Topics of AGENTS.md headings. Share of the 1,864 AGENTS.md files with at least one heading on each topic. One heading can count toward several topics: "Build, Test, and Development Commands" counts toward commands, testing and build.

Source: Stride Research census, 27 September 2026. Topic rules on the methodology page.

Chart description (text)

Figure 5. Topics of AGENTS.md headings: Testing 55.7%; Code style and conventions 54.3%; Project structure 54.3%; Git and pull requests 47.6%; Commands 44.0%; Build 29.1%; Project overview 28.2%; Documentation 27.7%; Setup 22.4%; CI and deployment 17.2%; Dependencies 17.1%; Security 14.6%; Troubleshooting 13.4%.

Commands are the part an agent can act on without interpretation. 73.5% of AGENTS.md files name a test, build or lint command in code formatting: 60.1% a test command, 50.3% a build command, and 52.3% a lint, format or type-check command.

Secrets are the gap. 39.3% of AGENTS.md files mention security, credentials or secrets somewhere, but only 10.6% state a rule against leaking them, such as never committing an API key or logging a token. In CLAUDE.md files the share is 4.5%. We checked the rule by hand on a random sample of 40 files it flagged, and 38 were genuine rules about secrets. It finds explicit prohibitions only, so more files touch on secrets than it counts.

Files written from a template

Some files show where they came from. Codex's /init prompt tells the model to title the document "Repository Guidelines", and 4.9% of AGENTS.md files carry exactly that title. 18.6% of CLAUDE.md files contain the sentence "This file provides guidance to Claude Code", a common opening we could not trace to a published template, so we report it only as text.

How the files change

The files are maintained, not written once. The median AGENTS.md has been changed in 5 commits, and 79.6% have more than one; for CLAUDE.md the figures are 3 commits and 68.6%. Symlinks are left out of these figures, because a link's history is the commit that created it.

Counting the quarter in which each file was first added, more repositories have added an AGENTS.md than a CLAUDE.md in every quarter since 2025 Q4.

New files per quarter: files that still exist on 27 September 2026, by the quarter of the commit that first added them. Files with more than 100 commits are left out, because their first commit was not fetched.
QuarterAGENTS.mdCLAUDE.md
2024 Q210
2025 Q1014
2025 Q24165
2025 Q3116149
2025 Q4184123
2026 Q1515464
2026 Q2524341
2026 Q3 (to 27 Sep)453239

The most-starred repositories with an AGENTS.md

For examples to read, these are the 12 most-starred repositories in the census with an AGENTS.md, with the size of each file and what the repository's CLAUDE.md does.

Stars on 27 September 2026. "CLAUDE.md" shows how the repository's CLAUDE.md relates to its AGENTS.md, or None where it has no CLAUDE.md.
RepositoryStarsLinesWordsCLAUDE.md
openclaw/openclaw390,6241413,589None
vinta/awesome-python323,42223485Separate file
obra/superpowers292,0421151,397None
mattpocock/skills270,45125489AGENTS.md links to it
affaan-m/ECC268,0911741,226Separate file
NousResearch/hermes-agent249,3355284,954None
deepseek-ai/deepseek-harness237,2991821,949Symlink to AGENTS.md
TheAlgorithms/Python225,04262406None
anomalyco/opencode210,3131611,234None
n8n-io/n8n206,0854082,868Imports AGENTS.md
ultraworkers/claw-code195,29292804Separate file
microsoft/vscode193,151533None

What this means for your repository

  1. If you keep both files, join them. Put the shared instructions in AGENTS.md and add an @AGENTS.md line to CLAUDE.md, with anything that applies only to Claude Code below it. If CLAUDE.md would hold nothing else, you can delete it: from version 2.1.277, Claude Code reads AGENTS.md directly when there is no CLAUDE.md.
  2. Prefer the import to a symlink if anyone clones on Windows. A symlink checked out without core.symlinks becomes a one-line text file.
  3. A sentence is not an import. A CLAUDE.md that says "read AGENTS.md" leaves it to the model to open the file. The @AGENTS.md line loads it every session.
  4. Check the length against the agents you use. Codex stops at 32 KiB by default, and Claude Code suggests under 200 lines per CLAUDE.md. Move detail that applies to one part of the code into an AGENTS.md in that directory.
  5. Put commands in code formatting, exactly as they run. Agents act on them without interpretation.
  6. Say what to do with secrets. Only 10.6% of files do. One line closes the gap: never commit, log or print credentials, and where they come from instead.
  7. Name the file exactly AGENTS.md. 14 repositories use another case, such as agents.md. Codex looks for the exact name, so on a case-sensitive file system it would not find them.

For how to write the file itself, see our guide to AGENTS.md and CLAUDE.md for coding agents.

Methodology in brief

  • Population. Every public GitHub repository with 5,000 or more stars that is not a fork, is not archived, and was pushed to between 29 June 2026 and 27 September 2026: 7,370 repositories, listed through GitHub's search API. All 7,370 could be read.
  • Files. The root of each repository's default branch, read through GitHub's GraphQL API. AGENTS.md and CLAUDE.md are matched in any letter case, CLAUDE.md also in .claude/, and symlinks are followed to the file they point at.
  • Classification. Pattern rules for topics, commands, security and secrets rules, and a comparison of links, imports and text for how CLAUDE.md relates to AGENTS.md. Every rule is published in full.
  • History. Commits that touched each file on the default branch, up to 100 per file.

Every rule, the validation checks, the limitations, and what each column of the dataset means.

Read the full methodology

Limitations

  • Popular, active, public repositories only. The census says nothing direct about private code or smaller projects, where habits may differ.
  • Root files only. Nested AGENTS.md files in subdirectories, common in monorepos, are not counted.
  • A file is not use. A repository can have an instruction file that no one's agent reads, and contributors can use agents without one.
  • Rules are patterns. Topic, command and secrets classifications are pattern matches. They are published in full and were checked by hand on samples, but they will misread some files.
  • Word counts split on spaces, which undercounts Chinese, Japanese and Korean. 69 AGENTS.md files are mostly such text; without them the median is 840 words rather than 819.
  • Tool behaviour is as documented on 27 September 2026. Claude Code reads AGENTS.md directly from version 2.1.277, and a user can change its default so that it reads both files. Our classification describes the default.
  • A snapshot. Repositories change daily; the figures describe 27 September 2026.

Frequently asked questions

  • How many GitHub repositories have an AGENTS.md file?

    Of the 7,370 active public repositories on GitHub with 5,000 or more stars, 1,864 (25.3%) had an AGENTS.md at the root on 27 September 2026, and 33.4% had at least one instruction file for coding agents. The share rises with popularity, to 41.8% of repositories with 50,000+ stars.

  • Does Claude Code read AGENTS.md?

    Yes, from version 2.1.277, but by default only when there is no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or above it. When both exist it reads CLAUDE.md, which carries AGENTS.md's instructions only if the two are joined by a symlink, CLAUDE.md imports AGENTS.md with @AGENTS.md, or CLAUDE.md holds a copy. In our census, 25.9% of the 1,013 repositories with both files do none of these.

  • How long should an AGENTS.md file be?

    Codex's /init command asks for 200 to 400 words, Codex reads at most 32 KiB of instructions by default, and Claude Code's documentation targets under 200 lines per CLAUDE.md. Real files run longer: the median AGENTS.md in our census is 819 words, and only 13.4% fall between 200 and 400.

  • What do AGENTS.md files usually contain?

    The five most common sections are testing, code style and conventions, project structure, Git and pull requests, and commands: the same five that Codex's /init template recommends. 73.5% name a test, build or lint command, 39.3% mention security or secrets, and 10.6% state a rule against leaking secrets.

  • Should CLAUDE.md import AGENTS.md or be a symlink to it?

    Both make Claude Code load the same instructions. Claude Code's documentation recommends the @AGENTS.md import if anyone works on Windows, where Git checks a committed symlink out as a one-line text file unless core.symlinks is enabled. Of the repositories with both files, 35.5% use the import and 36.2% a symlink.

  • Can I use the dataset?

    Yes. The per-repository CSV (7,370 rows) is published under CC BY 4.0, with the scripts that produced it. It holds metrics only, not the files' text, which belongs to each repository.

  • Who ran this study, and why?

    Stride Research, part of Newlight Solutions. Stride is our product: a software delivery platform whose MCP server gives coding agents a team's stories, designs and tests. We ran the census because an instruction file is the other half of what an agent knows about a project. No finding depends on Stride.

Related work

DevTools landscape

  • AGENTS.md

    Agentic AI Foundation · 2025

    The open format this study measures: plain Markdown with no required fields, read by many coding agents.

  • How Claude remembers your project

    Anthropic · 2026

    Where Claude Code reads CLAUDE.md, when it reads AGENTS.md instead, and the import and symlink options this study classifies.

  • Custom instructions with AGENTS.md

    OpenAI · 2026

    How Codex finds and joins AGENTS.md files, and the 32 KiB it reads by default.

Methodology references

  • Codex /init prompt

    OpenAI · 2026

    The template behind the "Repository Guidelines" title, the five recommended sections and the 200 to 400 word target.

  • Codex AGENTS.md loader

    OpenAI · 2026

    The code that truncates a project instruction file once the 32 KiB budget is spent.

  • REST API endpoints for search

    GitHub · 2026

    The search API used to list the population, which returns up to 1,000 results for each search.

Cite this study

Cite the report by its title, Stride Research, 2026 and this URL. The dataset is licensed CC BY 4.0: credit "Stride Research, AGENTS.md and CLAUDE.md census 2026" with a link to this page.

How to cite this report

Stride Research. (2026). What 7,370 popular GitHub repositories put in AGENTS.md and CLAUDE.md. Newlight Solutions. https://www.stride.page/research/agents-md-claude-md-study-2026

Dataset

AGENTS.md and CLAUDE.md census 2026: per-repository metrics

License
CC BY 4.0
Version
1.0
Published
SHA-256
1f4b3228fe0fd7a4a84e93cbd15568834de8875f707d14e498de64707952ea32

Embed this chart

Republish this chart on your site or blog — the snippet renders the figure and credits the research with a link back. Free to use under CC-BY-4.0 with attribution.

What 7,370 popular GitHub repositories put in AGENTS.md and CLAUDE.md — Stride Research
<a href="https://www.stride.page/research/agents-md-claude-md-study-2026" target="_blank" rel="noopener">
  <img src="https://www.stride.page/api/og?title=What%207%2C370%20popular%20GitHub%20repositories%20put%20in%20AGENTS.md%20and%20CLAUDE.md&amp;subtitle=A%20census%20of%20every%20active%20GitHub%20repository%20with%205%2C000%2B%20stars%3A%20who%20has%20an%20AGENTS.md%20or%20CLAUDE.md%2C%20what%20the%20files%20say%2C%20and%20whether%20the%20two%20connect.&amp;eyebrow=RESEARCH%20%C2%B7%20CODING%20AGENTS" alt="What 7,370 popular GitHub repositories put in AGENTS.md and CLAUDE.md — Stride Research" width="600" style="max-width:100%;height:auto;border:0" />
</a>
<p style="font:13px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#475569;margin:8px 0 0">Source: <a href="https://www.stride.page/research/agents-md-claude-md-study-2026">What 7,370 popular GitHub repositories put in AGENTS.md and CLAUDE.md — Stride Research</a></p>