Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?
This paper evaluates the effectiveness of repository-level context files (like AGENTS.md) for coding agents and finds that, contrary to common practice, they generally fail to improve task success rates while increasing inference costs by over 20%.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are hiring a very smart, but slightly new, assistant to fix a specific problem in your massive, cluttered workshop. This assistant is an AI coding agent.
To help your assistant, you decide to leave them a "cheat sheet" or a "user manual" (called an AGENTS.md file) on the workbench. This manual is supposed to tell the assistant:
- "Here is how this workshop is organized."
- "Here are the specific rules we follow for building things."
- "Here is the best way to use our special tools."
The big question the paper asks is: Does leaving this cheat sheet actually help the assistant finish the job faster and better, or does it just make them confused and waste time?
The researchers set up a giant experiment to find out. Here is what they discovered, explained simply:
1. The "Cheat Sheet" Paradox
The team tested two types of cheat sheets:
- The Human-Written One: Written by the actual workshop owner (the developer).
- The AI-Generated One: Written by another AI, just because the agent framework told it to.
The Result: Surprisingly, neither type of cheat sheet made the assistant finish the job more often. In fact, the success rate stayed almost exactly the same whether the sheet was there or not.
2. The "Over-Prepared" Assistant
While the cheat sheets didn't help the assistant get the right answer more often, they did change how the assistant worked.
- Without a sheet: The assistant looked around, tried a few things, and fixed the problem.
- With a sheet: The assistant read the sheet, took it very seriously, and then went on a "research trip." They checked more files, ran more tests, and double-checked their work.
The Catch: This extra "thoroughness" cost money. Because the assistant spent more time reading and testing, the bill for the AI's time went up by over 20%. It's like hiring a detective who reads the entire encyclopedia before solving a simple missing sock case. They are very careful, but they are expensive and not necessarily faster.
3. The "Map" vs. The "Instructions"
The researchers found a split in what the cheat sheets actually did:
- The "Map" (Overview): Most cheat sheets included a big description of the whole workshop ("Here is the tool shed, here is the paint room..."). The assistant read this, but it didn't help them find the right tool. It was like giving someone a detailed map of a city when they just need to know which street corner to turn on.
- The "Instructions" (Rules): The cheat sheets also had specific rules ("Always use the red wrench," "Don't paint before sanding"). The assistant followed these rules perfectly. They used the specific tools mentioned and followed the specific steps.
4. The Verdict: Less is More (For Now)
The paper concludes that currently, automatically generating these cheat sheets is a waste of money.
- If you use an AI to write the cheat sheet, it just adds fluff (long overviews) that confuses the agent and burns your budget.
- If a human writes it, it helps a tiny bit more than the AI version, but it still doesn't significantly improve the success rate.
The Bottom Line:
If you are an AI agent developer, don't just dump a massive, AI-generated manual on your agent. It makes them work harder and cost more without making them smarter.
If you must have a cheat sheet, keep it short. Only include the specific, weird rules that aren't already obvious in the code (like "Always use the red wrench"). Don't include a long history of the workshop; the agent can figure that out on its own.
In short: The cheat sheet makes the agent a more obedient student who studies harder, but it doesn't make them a better student who gets better grades. And studying harder costs more tuition.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.