Large language models first entered software development as assistants that a developer watched closely. As someone who would not try new things, I was convinced by some friends (AI researchers) to give GitHub Copilot a try. This was in March 2023. GitHub Copilot completed the line the developer was typing. It also generated code if you wrote comments. GitHub Copilot was the reason I wrote the most comments in my life. Later I also adopted chat assistants such as VS Code Copilot and Cursor, which wrote larger pieces of code that the developer could read before accepting them. I was always in the loop, creating different chats for different contexts, seeing it write code, and running and testing it myself as well. I had become comfortable with using Cursor, but I was a fairly late adopter of coding agent CLIs. I started using Claude Code for the first time in March 2026. Coding agents go further because they take a whole task and carry it out on their own. Agents such as Claude Code and Codex edit files, run commands, and test their changes without asking for approval at each step. Dangerously bypassing permissions and auto mode led to asynchronous progress. I was an early adopter of dynamic workflows. I have run 200+ concurrent agents in a workflow and workflows that have lasted more than a week. The length of task that agents can finish on their own has doubled about every seven months since 2019 when measured by how long the same task takes a person [1]. I have found it difficult for the agents to follow the set of rules I want them to follow for projects that were not developed by them from scratch.
As a result, developers, including me, now hand agents tasks that take hours, and some agents keep working for days with no one watching each step. A developer who no longer reviews every step cannot correct the agent as it goes, so projects have started to write their rules down in a plain Markdown file that the agent reads before it starts. We call this file an agent instruction file. The format most agents now accept is called AGENTS.md, which basically means that most coding agents have agreed that if you write your instructions in a file named AGENTS.md, they will pick it up as an agent instruction file.
The number of AGENTS.md files on GitHub grew about 70-fold between August 2025 and November 2026. For more than a year the count grew by about a third every month. I used GitHub's code search to count every file at a given path across public repositories. I used the same query as the website agents.md. I left out forks and archived repositories. Leaving out forks means that a copied repository does not count twice, and leaving out archived repositories keeps the count to projects that can still change. The AGENTS.md website also quotes the result of this query on its front page. The Internet Archive saved that page every month, so its old copies give us two earlier measurements. Every archived copy from August 18 to December 2, 2025 quotes "over 20k" and every copy from January 2026 onward quotes "over 60k", so the site updated the count in between. We ran the same query ourselves in September and November 2026.
Code search counts files rather than repositories. A large repository often keeps one AGENTS.md per package, and the agents.md site notes that OpenAI's main repository once held 88 of them. To count repositories we also ran a query that matches the file only at the top level of a repository, where each repository can have at most one.
Growth of AGENTS.md #
The adoption of agent instruction files has grown exponentially. They have grown from about 20,000 to 1.4 million in just over a year.
Files and Repositories
Code search returned 1.4 million AGENTS.md files on November 27. Of these, 719,000 sit at the root of a repository and so belong to 719,000 different repositories. The other half sit in subfolders of larger projects, where one repository can hold many.
The same search for CLAUDE.md returned 700,000 files in September and 1.1 million in November. That 57% increase is slightly faster than the 46% of AGENTS.md over the same period. Counted by repository the two formats are nearly even and slightly more repositories carry a root CLAUDE.md than a root AGENTS.md.
Adoption Among the Most-Starred Repositories
Counts across all of GitHub include many small and personal projects, so I also looked at the 100 repositories with the most stars. For each one I checked whether the default branch holds an instruction file and read the git history of every such file. We looked for AGENTS.md and CLAUDE.md as well as the files that Copilot, Gemini, and Cursor read.
The number of these repositories with at least one instruction file rose from 47 in September 2026 to 52 two months later. Three projects that were already in the top 100 added a file, among them torvalds/linux with an AGENTS.md and anthropics/claude-code with a CLAUDE.md. Four projects that entered the top 100 already had one. In the other direction, openai/codex deleted its root AGENTS.md together with all of its other local agent guidance at the end of September 2026, and one project with a file fell out of the top 100.
The git history also shows when each of the 52 projects first added its file. The first was microsoft/vscode, which added a Copilot instruction file in November 2024 before AGENTS.md existed. By the end of 2025 there were 21 and the remaining 31 adopted during 2026. AGENTS.md is the most common format in this group (46 projects), followed by CLAUDE.md (23) and Copilot's file (11). These add up to more than 52 because many projects use more than one format.
Edits Written by Agents
A growing fraction of the changes to these files is written by agents, and in some projects the agent's own account makes the commit. For example, the claude[bot] account committed an edit to the CLAUDE.md of electron/electron in August 2026. We counted a commit as AI-written when its author is such an agent account or when its message carries an explicit AI co-author line (such as "Co-Authored-By: Claude"). This misses any AI help that was not declared, so the counts are a lower bound.
In 33 of the 52 projects at least one commit to the instruction file is AI-written. Across all of them 393 of the 2,573 commits that touch these files are AI-written (15.3%). The project garrytan/gstack alone accounts for 101 of those commits, so we also report the rate without it. Excluding that project, the fraction of AI-written commits rose from 6% in the last quarter of 2025 to between 8% and 12% in the first three quarters of 2026 and to 22% between October 1 and November 27.
Most of these commits name Claude, which wrote 196 of the 292 outside garrytan/gstack. Copilot wrote 71 and the remaining 25 came from other tools such as Cursor and Codex or did not name a tool. Claude Code adds a co-author line to its commits by default and some other tools do not, so this split partly reflects which tools announce themselves.
Rules Without Enforcement #
An instruction file is not binding. The agent reads the file as text alongside the task, the code, and the output of the tools it runs. The model then decides how much weight each of these gets, and nothing in the agent checks that the rules were kept. In our recent work, "Willful Disobedience: Automatically Detecting Failures in Agentic Traces" [2], we show that agents willingly deviate from the instructions given to them. Similarly, coding agents do not always follow the policies in an AGENTS.md, and how a rule is worded changes how often it is followed [3]. When the instructions in real AGENTS.md files are checked against the commits that agents made, agents follow most of them. But some instructions are followed every time and others never [4]. In one controlled study the odds that an agent followed a rule fell as it wrote more functions in the same session [5]. Language models in general do not reliably let one instruction take precedence over another [6]. These findings matter more as agents run for longer without a person watching because a broken rule is then found late or not at all.
InstructGuard (formerly ContextCov) #
Our tool ContextCov [7], now renamed to InstructGuard (accepted at ICSE 2027), turns the rules in an instruction file into checks that run while the agent works. It turns each rule that can be checked mechanically into one of three kinds of check and leaves vaguer rules as guidance. I developed InstructGuard as I wanted to run these long-running tasks asynchronously from my phone and not worry about constantly monitoring the agents. The rise of agent instruction files points towards more and more rules that agents are expected to follow without anyone watching, and a tool like InstructGuard can help in detecting issues as the agent is running. The source code is available at github.com/reSHARMA/InstructGuard.
Looking Ahead #
The agent instruction files are written for the agents. We can work on making sure that the rules there are consistent and unambiguous. The rules also need to stay in step with the code, because a rule that no longer matches the project misleads every agent that reads it. As agents write a growing part of these files themselves, checking the rules becomes as important as checking the code they produce. A tool like InstructGuard can help here too, because a rule that keeps failing for good reasons is often a rule that is unclear or out of date.
References #
1. Measuring AI Ability to Complete Long Software Tasks. [arXiv:2503.14499](https://arxiv.org/abs/2503.14499) , 2025.
2. Willful Disobedience: Automatically Detecting Failures in Agentic Traces. [arXiv:2603.23806](https://arxiv.org/abs/2603.23806) , 2026.
- Do Coding Agents Follow AGENTS.md? The Effect of Policy Wording on Instruction Compliance. arXiv:2611.04367 , 2026.
- Do They Do as They Are Told? Investigating Coding Agents' Adherence to Explicit Instructions in Context Files. arXiv:2611.13709 , 2026.
- Instruction Adherence in Coding Agent Configuration Files: A Factorial Study of Four File-Structure Variables. arXiv:2605.10039 , 2026.
- Control Illusion: The Failure of Instruction Hierarchies in Large Language Models. arXiv:2502.15851 , 2025.
- ContextCov: Deriving and Enforcing Executable Constraints from Agent Instruction Files. arXiv:2603.00822 , 2026.
Counts collected on November 27, 2026.