Do agents.md files help coding agents?

Hacker News Top Papers

Summary

This paper evaluates whether repository-level context files like AGENTS.md or CLAUDE.md improve coding agent performance, finding that LLM-generated context files offer little benefit and may reduce efficiency, while developer-written files are better but still not clearly advantageous.

<a href="https:&#x2F;&#x2F;xcancel.com&#x2F;rasbt&#x2F;status&#x2F;2063649136323252397" rel="nofollow">https:&#x2F;&#x2F;xcancel.com&#x2F;rasbt&#x2F;status&#x2F;2063649136323252397</a><p><a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2602.11988" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2602.11988</a>
Original Article
View Cached Full Text

Cached at: 06/08/26, 09:17 AM

https://xcancel.com/rasbt/status/2063649136323252397

https://arxiv.org/abs/2602.11988


Do AGENTS.md Files Actually Help Coding Agents?

Catching up with the agent-related research literature, one paper that definitely got my attention is “Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?.” It looks into whether adding repository-level instruction files such as AGENTS.md or CLAUDE.md to tell coding agents how to work in a codebase is actually helpful.

The paper evaluates this in two settings. First, it uses SWE-bench Lite, where the authors generate context files because the original repositories do not necessarily contain developer-written ones.

Second, they introduce AGENTBENCH, a new benchmark of 138 Python tasks from 12 repositories that already have developer-provided context files. The agents are then evaluated under three conditions: no context file, an LLM-generated context file, and, where available, a developer-written context file. The results are summarized below.

Figure 1: Main results from the Evaluating AGENTS.md paper (https://arxiv.org/abs/2602.11988).

Figure 1: Main results from the Evaluating AGENTS.md paper (https://arxiv.org/abs/2602.11988).

Based on the results shown in the figure above, compared to using no context files, LLM-generated context files reduce task success slightly or don’t make a big difference on average. This is maybe surprising but maybe not, because I guess the LLM / agent harness just generates the necessary context information on the fly. The context file is more about improving efficiency between independent sessions.

Also, developer-written context files are better than LLM-generated ones, which is perhaps expected because that’s where the domain expertise comes in.

What’s very surprising though is that using no context files is also cheaper and more efficient in their benchmarks!

Figure 2: Efficiency results from the Evaluating AGENTS.md paper (https://arxiv.org/abs/2602.11988).

Figure 2: Efficiency results from the Evaluating AGENTS.md paper (https://arxiv.org/abs/2602.11988).

The fact that using no context files results in better efficiency is a bit mind-boggling at first. I first suspected this is perhaps because the harnesses here might be processing redundant information (i.e., they read the context files, and, no matter what, they parse the additional info from the code repo as if they hadn’t read the context files).

The researchers did a trace analysis here that showed that the agents generally follow the instructions in the context files, but they run more tests, search more files, read more files, and use more repository-specific tools when those tools are mentioned. So the negative or weak performance effect does not seem to come from agents ignoring the files. A more likely explanation is that context files often add requirements and exploration steps that make the task harder or more thorough, but as we saw in Figure 11, this doesn’t necessarily result in better success.

My takeaway is that repository-level context files should probably be kept shorter and more specific and perhaps ideally hierarchical (e.g., “if you do x, check this other context file y.md, otherwise ignore it”).

Of course, the problem here is that the LLMs and harnesses are a bit dated by now, and it would be interesting to redo this study with the latest harnesses and LLMs.

Link to the paper on arxiv: https://arxiv.org/abs/2602.11988

Similar Articles

Agent READMEs: An Empirical Study of Context Files for Agentic Coding

Papers with Code Trending

This paper presents the first large-scale empirical study of agent context files (READMEs) used in agentic coding tools, analyzing their structure, maintenance patterns, and content. It highlights that while functional context is well-covered, non-functional requirements like security and performance are rarely specified.