DEV Community

Cover image for 70x in 15 months: 1.4M AGENTS.md files, half not at root
frank chu
frank chu

Posted on

70x in 15 months: 1.4M AGENTS.md files, half not at root

70x growth in 15 months sounds like a typo until you do the monthly math: it is 32.7% compound growth per month, every month, for over a year. AGENTS.md files on GitHub went from about 20,000 in August 2025 to 1.4 million on November 27, 2026 — and only 51.4% of them sit at a repository root.

Those counts come from Reshabh K. Sharma's December 1 write-up, using GitHub code search excluding forks and archived repos, with the August 2025 baseline from archived copies of agents.md. I re-ran the arithmetic on every number in the piece. It holds together — and the interesting parts are in the denominators.

Half the files are not repositories

AGENTS.md files, Nov 27 2026        1,400,000
at repository root                    719,000   (51.4%)
in subfolders                         681,000   (48.6%)
growth vs Aug 2025 (~20,000)               70x
implied compound monthly growth          32.7%
Enter fullscreen mode Exit fullscreen mode

"1.4 million projects use AGENTS.md" would be wrong by roughly 2x. The root count — 719,000 distinct repositories — is the adoption number. The other 681,000 files are monorepo packages each carrying their own instructions, which is a different phenomenon: not more projects adopting, but adopting projects fragmenting their rules per package. Sharma notes OpenAI's main repo once held 88 of them. When someone quotes you the 1.4M, ask which half they mean.

CLAUDE.md is growing faster than the standard

From September to November 2026, CLAUDE.md went 700,000 → 1.1 million (+57.1% by my recomputation) while AGENTS.md grew 46% (implying roughly 959,000 in September). By root-repository count the two are nearly even, with slightly more repos carrying a root CLAUDE.md. The cross-tool standard is winning on total files; the single-vendor file is winning on momentum and, narrowly, on repositories. Standards people should find that uncomfortable: developers write the file their daily tool reads first, and interoperability is a second commit that may never happen.

The top-100 tells a slower story

Among the 100 most-starred repositories, 47 had an instruction file in September and 52 in November. The net +5 decomposes cleanly: +3 existing projects added one (including torvalds/linux and anthropics/claude-code), +4 entrants arrived with one, −1 for openai/codex deleting its root AGENTS.md in late September, −1 for a project falling out of the top 100. Format counts — AGENTS.md 46, CLAUDE.md 23, Copilot 11 — sum to 80 across 52 projects, so at least 28 format slots are second or third files in the same repo. Even at the top of GitHub, "which file do we write" has no single answer; a third of the slots are duplication.

Adoption timing: 21 of the 52 had a file by end of 2025, 31 added during 2026. The long tail adopted explosively; the biggest projects adopted steadily. Those are different curves and probably different causes — cargo-culting a template versus a maintainer deciding agents need guardrails.

Agents are writing the rules now

393 of 2,573 commits touching these files in the top-100 set are AI-written: 15.3%. One project, garrytan/gstack, accounts for 101 of those 393 — 25.7% of all AI-written rule commits in the sample. Excluding it, the AI share rose from 6% in Q4 2025 to 22% between October 1 and November 27, 2026. Of the 292 non-gstack AI commits, Claude wrote 196 (67.1%), Copilot 71 (24.3%), others 25 (8.6%) — with Sharma's own caveat that Claude Code adds a co-author trailer by default and other tools may not, so the split partly measures who announces themselves. The 15.3% is a floor, not an estimate.

Sit with that for a second: in the most-starred projects on GitHub, at least one in seven edits to the agent rulebook is now authored by an agent, and the share roughly quadrupled in a year. The rules are becoming a maintained artifact with its own commit history — written increasingly by the thing they constrain.

The enforcement gap is the actual story

Sharma's closing point is the one the growth curve obscures: an instruction file is text the model may or may not weight, with no checker verifying compliance. His group's work (InstructGuard, accepted at ICSE 2027) turns mechanically-checkable rules into automated checks. Whether or not that tool wins, the shape is right. We spent 15 months going from 20,000 to 1.4 million rule files and roughly zero of that effort on verifying the rules are followed. Adoption is not the bottleneck anymore. Enforcement is — and 719,000 repositories are about to learn the difference between writing a rule and having one.

Sources

Top comments (2)

Collapse
 
sandscale profile image
Sandscale •

The distinction between 1.4 million files and 719,000 root repositories is the number I would keep quoting, because "projects that adopted AGENTS.md" and "packages that grew their own copy" are different problems. On the nested half, precedence is the quiet failure: Claude Code will load a subdirectory AGENTS.md or CLAUDE.md only after it touches a file in that folder, and a personal CLAUDE.local.md anywhere above the working directory can hide a root AGENTS.md entirely. Codex walks AGENTS.md from the git root down, so a package file only helps if the agent was started in a place that walks through it. Moving mechanically-checkable rules into lint or a hook, the way the first comment describes, is how those nested files stop contradicting each other in practice.

Collapse
 
smtahosin profile image
S M Tahosin •

The enforcement point is the one that stings. I keep my own AGENTS.md short now, because half the rules I wrote early on were things nobody could verify, stuff like "keep functions small". The ones that survived got moved into tools. "Never import from the legacy folder" became a lint rule. "Run the tests" became a hook. The markdown file is mostly a pointer to checks that actually run. One thing I couldn't tell from the numbers: with 681,000 files in subfolders, does anything check that nested rules don't contradict the root one? Precedence between a root file and a package file feels like the next silent failure. Does InstructGuard handle that, or is it root files only for now?