← Tue, Dec 1 digest

The Exponential Rise of Agent Instruction Files

read article ↗ hn thread ↗

Repository agent instruction files like AGENTS.md surged from 20,000 to 1.4 million on GitHub in just over a year, highlighting a shift toward unsupervised AI development and the need for rule enforcement tools.

read it Offers concrete GitHub adoption metrics for agent instruction files and introduces automated tooling to solve the growing problem of unmonitored AI rule disobedience.

summary

As developers delegate multi-hour tasks to autonomous coding agents, repositories are increasingly adopting plain Markdown instruction files like AGENTS.md and CLAUDE.md to guide agent behavior. GitHub data shows these files surged exponentially from 20,000 to 1.4 million between late 2025 and late 2026, with many instruction files being modified directly by AI agents themselves. However, because agents frequently fail to reliably follow un-enforced instructions over long sessions, the author introduces InstructGuard to translate markdown policies into executable runtime checks.

key points

  1. GitHub searches reveal AGENTS.md files grew from 20,000 in August 2025 to 1.4 million by late 2026, with CLAUDE.md files reaching 1.1 million.
  2. Over half of the top 100 most-starred GitHub repositories now include an agent instruction file, and 15.3% of recent commits touching these files are AI-authored.
  3. Because language models struggle to reliably adhere to unconstrained rules over long sessions, automated constraint-enforcement tools like InstructGuard are becoming necessary.

who should read it

Software engineers and researchers utilizing autonomous coding agents who want to manage project guidelines at scale.

discussion positive

consensus

Commenters widely agree that getting AI agents to consistently follow instruction files is difficult, often drawing humorous parallels to human team members ignoring repository documentation.

pushback

Some commenters criticize the article's GitHub growth chart for fitting an exponential curve onto sparse data points without controlling for overall repository creation rates.

best comment by santiagobasulto ↗

Regarding agents following instructions, my recommendation is to split in as many `AGENTS.md` file as possible, and use the root AGENTS.md as an index reference.

For example, this would be the resulting structure:

src/ billing/ AGENTS.md products/ AGENTS.models.md AGENTS.api.md AGENTS.md AGENTS.md

Then in the core AGENTS.md you can reference the main subsystems of your project and instruct the agent to reference the specific AGENTS.md. And `products` is a concrete example of a module so big that you can split instructions in multiple agents files.

This usually keeps the context very clean …

Provides a practical architectural pattern for structuring modular subfolder instruction files to keep context clean for localized coding agents.

Generated by an LLM from the article and thread. Check the sources before relying on it.