From 20,000 to 1.4 million AGENTS.md files in fifteen months: a researcher sees AI updating its own instructions more and more often, and turns rules into automated checks
Reshabh Sharma of the University of Washington counted the instruction files for coding agents on GitHub and advises not leaving checkable rules to the agent's goodwill.
The number of public AGENTS.md files on GitHub has grown from about 20,000 in August 2025 to around 1.4 million on 27 November, roughly seventy times as many. That is the finding of Reshabh Sharma, a PhD student at the University of Washington, in an analysis he published on his blog on Sunday and that The New Stack reported on. For more than a year the count grew by about a third each month. Some 719,000 files sit in a repository's root folder, the rest in subfolders of larger projects. CLAUDE.md, the equivalent for Claude Code, went from 700,000 to 1.1 million files between September and November; counted per repository, the two formats weigh about the same, according to Sharma.
Of the hundred most-starred repositories, 52 now have at least one instruction file, up from 47 two months earlier. AGENTS.md is the most common, in 46 projects, ahead of CLAUDE.md in 23 and GitHub Copilot's file in 11. Notably, OpenAI removed the AGENTS.md file from the root of its own Codex repository at the end of September. Sharma also examined 2,573 commits that changed these files: 393, or 15.3 percent, came from an AI agent, and that is a lower bound because not every tool identifies itself. Excluding the gstack project, which alone accounted for 101 of those commits, the share rose from 6 percent in late 2025 to 22 percent between 1 October and 27 November. According to The New Stack, Sharma warns of small changes to the rules that are hard to spot in a review.
An instruction file is not enforced anywhere: the agent reads it as plain text and decides for itself how much weight to give it. The New Stack cites a May 2026 study based on 1,650 Claude Code sessions, in which the chance that a rule was followed fell by 5.6 percent for every extra function the agent wrote. In another test, agents followed conditionally worded rules less well than rules that prescribe or explain something; where a rule was placed and how long the file was made no clear difference.
Sharma built InstructGuard himself, formerly ContextCov, which will be presented at ICSE 2027. It turns rules that can be checked mechanically into checks using regular expressions, Tree-sitter, dependency graphs or interposed commands, which can run in CI or a pre-commit hook. On 300 tasks from SWE-bench Lite it reached, according to The New Stack, 88.3 percent compliance, against 67 percent with instructions in the prompt alone. Because it runs Python code generated by a language model, it is meant only for trusted repositories. The practical lesson Sharma and developer Koray Yalçın on DEV Community draw: treat such a file as infrastructure with an owner, keep it in line with the code, review changes made by agents just as critically, and enforce what you can with hooks, CI or branch protection.