AGENTS.md files grew about 70 times in a year
A new count finds 1.4 million AGENTS.md files, which tell AI coding tools how to work in a project, on public GitHub. In August 2025 there were about 20,000. Similar CLAUDE.md files also passed 1.1 million.
Many coding projects now keep a text file that tells AI agents how to work in the repository. The two common names are AGENTS.md and CLAUDE.md.
A researcher counted these files on public GitHub in November 2026. AGENTS.md files rose from about 20,000 to 1.4 million, roughly 70 times more in just over a year. About half sit in subfolders of larger projects. CLAUDE.md files grew from 700,000 in September to 1.1 million in November.
Among the 100 most-starred repositories, 52 have at least one such file. About 15 percent of commits that touched these files were written by AI. The author says that's a lower bound, because undeclared AI help isn't counted.
The post also notes that agents often don't follow written rules, and that wording matters. The author recommends keeping rules clear, keeping them in sync with the code, and turning checkable rules into automatic checks.
New to this? The key idea
An instruction file such as AGENTS.md is a README written for an AI, with rules like how to run tests. The AI reads it at the start of a task but is not forced to obey it, so a rule is a request. A rule that a program can check, such as a lint or test, is enforced, which is much stronger.
Use it at work
Use it for: developers and team leads who set up AI coding agents in a shared repository.
Try it: treat your instruction file like code. Keep rules unambiguous, update them when the code changes, and review changes to them. Move rules a machine can check (tests, lint, hooks) out of prose and into automated checks. If an agent keeps breaking a rule, the rule may be unclear or outdated. The author mentions his own tool, InstructGuard, which turns checkable rules into checks that run during agent work and leaves vaguer rules as guidance. Source is at github.com/reSHARMA/InstructGuard.
Before you roll it out: InstructGuard's licence and cost are not stated, so check the repository. The counts come from GitHub code search of public repositories on 27 November, excluding forks and archived repos. The 15 percent AI-written figure is a lower bound. Agents often deviate from these files, and wording affects how well they comply.
Summaries are written by AI from the linked source. Always check the original.