1,376,256 files. That is what GitHub code search returns for filename:AGENTS.md today, and I ran the query myself rather than trusting the post that made the claim.
The number everyone quotes is 1.4 million, up from about 20,000 in August 2025. Roughly 70-fold in fifteen months, growing by about a third every month.
But most of those files probably change nothing at all. That is the part worth writing about.
What it actually is
AGENTS.md is a Markdown file at the root of a repo that tells a coding agent how to work on that project. There is no schema, no required fields, no validation.
The entire format is: put the file where the agent looks, and the agent reads it.
The spec is deliberately boring. Headings are free-form, and the agent parses whatever text you give it. The closest file to the edited path wins, so monorepos can nest them per package. Explicit chat instructions override everything.
That is the standard. A filename and a convention.
Why it won
It won because nobody owned it.
The site credits OpenAI Codex, Amp, Jules from Google, Cursor, and Factory as collaborators. It went up in August 2025 and hit 837 points on Hacker News within a day. It is now stewarded by the Agentic AI Foundation under the Linux Foundation.
The reason it spread is the same reason .editorconfig spread. It is a filename, not a protocol. Any harness can support it in an afternoon, and eventually every harness did.
Claude Code, Codex, Cursor, Copilot, Gemini CLI, Aider. All of them read the same file now.
The chart is doing something sneaky
The growth analysis has a chart with three data points and an exponential curve drawn between the two furthest apart. A commenter on Hacker News caught it:
the chart after this has three points and the choice to put an exp-like curve in between the most-separated pair thereof is unfortunate
The deeper problem is that the analysis does not control for total repository growth on GitHub. If people keep creating repos, you get some baseline growth in AGENTS.md files for free.
So the curve shape is probably inflated. The absolute number is not.
I checked it independently. 1,376,256 files matched, and only 4 of them are forks. That lands on the reported 1.4 million within rounding, which means the count is real even if the chart is generous.
The twist nobody mentions
Here is the thing that surprised me.
The same analysis measured CLAUDE.md: 700,000 files in September, 1.1 million in November. That is 57% growth, which is faster than AGENTS.md's 46% over the same window.
By repository count the two are nearly even, and slightly more repos carry a root CLAUDE.md than a root AGENTS.md.
So AGENTS.md is the standard, and CLAUDE.md is the adoption.
That gap is the whole story of 2026 compressed into two filenames. A neutral format wins on paper and loses to the vendor file with a distribution channel.
What a developer actually gets
Three concrete things.
One file, every agent. You write the rules once. Your team uses three different harnesses. That used to mean three config files quietly drifting apart.
Commands that actually run. If you list pnpm test in AGENTS.md, the agent runs it and fixes failures before it finishes. That turns CI from something that judges the agent into something the agent performs.
Nested scope. The nearest file wins, so a monorepo can ship different rules to different packages and the agent picks the right one. OpenAI's main repo once held 88 of them.
What an agent gets, and why it connects to cost
Here is the bridge to the model economics story from the last few weeks.
Every token in AGENTS.md is sent on every turn. It is not retrieved, not summarized, not lazily fetched. It sits in the context window for the whole session.
That cuts both ways.
A short, sharp file is the cheapest performance upgrade available to you. One paragraph about a non-obvious convention prevents an entire class of wrong turns, and wrong turns are tokens.
But a bloated file is a tax you pay on every request. A 5,000-token instruction file across a 40-turn session is 200,000 input tokens, which at Ergo's $1 per million is $0.20 before the agent does any work. Multiply that by an agent running 200 tasks a day.
This is exactly why cached input pricing matters. Amazon charges $0.03 per million cached input tokens against $3 for output. A stable prefix like AGENTS.md is the canonical prompt cache hit.
The file is not free documentation. It is a permanent line item.
The finding that should worry you
The research post has a section called "Rules Without Enforcement," and it is the most important paragraph in the whole document.
An instruction file is not binding. The agent reads it as text alongside the task, the code, and the tool output. Nothing checks that the rules were kept.
They cite their own paper, "Willful Disobedience," showing that agents deliberately deviate from instructions. They cite work showing that the wording of a rule changes how often it is obeyed. And then this:
the odds that an agent followed a rule fell as it wrote more functions in the same session
So the file you wrote at the start of a session gets weaker the longer the session runs. For a task that takes hours unattended, that is precisely backwards from what you need.
Some instructions are followed every time. Others never are. You do not know which category yours fall into.
Practical tips, then
Given all of that, here is what the evidence actually supports.
Point out the non-obvious. A commenter put it best: "the AGENTS.md, to perform well, needs to point out the non-obvious." Your agent can read the code. It cannot know that migrations run in a strange order, that the staging bucket is shared, or that nobody touches legacy/ without asking first.
Keep facts and constraints apart. Facts like directory layout and exact commands work reliably. Regression-prevention constraints work less reliably. Do not blend them into one undifferentiated list.
Skip the filler. "Write clean code" and "add tests" are not instructions. They spend tokens and buy nothing.
Delete as you go. A rule that no longer matches the project misleads every agent that reads it. Treat the file like code and review it.
Make the checkable rules mechanical. If a rule can be a lint or a test, make it one. Whatever is left over is a wish, and wishes decay over long sessions.
The real talk
The growth is real. The standard is real. The compliance is not.
That is the gap between 1.4 million files and whatever fraction of them actually change behavior. Nobody has measured that fraction, and the honest read of the research is that it varies enormously by project, by rule, and by how deep into a session the agent is.
Two more things worth knowing.
Agents are writing these files now. In 33 of the 52 most-starred repos, at least one commit to the instruction file is AI-authored. Excluding one outlier project, that share rose from 6% to 22% between late 2025 and October 2026.
And they can leak. There is a Hacker News post titled "Copilot committed my repo secrets into AGENTS.md." If an agent can write the file, it can write the wrong thing into the file.
Small tangent. This is the first config file most teams have ever written for a reader that is not deterministic.
A .gitignore either matches or it does not. An .editorconfig either applies or it does not. AGENTS.md is a suggestion that usually works, and we all keep pretending it is a config file because that is the mental model we have.
The teams getting real value treat it like documentation for a sharp new hire who will not ask follow-up questions. They write down what is surprising and let the agent work out the rest.
One last thing
Half of the 1.4 million files sit at a repository root. The other half are nested inside larger projects, with one repo carrying many.
That distribution tells you who adopts this well. Not the personal projects with a single file. The monorepos, where a large codebase genuinely has different conventions in different corners and a single README was never going to hold them.
Which is where the name earns itself. It is not really an agent config. It is the first time many big codebases have written their local customs down in one place, for a reader that will never read the whole thing.
If you have not written one, start with three lines. The command that runs the tests, the one folder that is a trap, and the one convention that is not obvious from the code.
That beats most of the 1.4 million.
Top comments (0)