Skip to main content
QUICK REVIEW

[Paper Review] Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?

Thibaud Gloaguen, Niels Mündler|arXiv (Cornell University)|Feb 12, 2026
Software Engineering ResearchComputer Science0 citations
TL;DR

The paper systematically evaluates repository-level context files (AGENTS.md) and finds that developer-written context files offer only marginal performance gains, while automatically generated context files tend to hurt performance and increase cost; context files also drive more exploration and testing.

ABSTRACT

A widespread practice in software development is to tailor coding agents to repositories using context files, such as AGENTS.md, by either manually or automatically generating them. Although this practice is strongly encouraged by agent developers, there is currently no rigorous investigation into whether such context files are actually effective for real-world tasks. In this work, we study this question and evaluate coding agents' task completion performance in two complementary settings: established SWE-bench tasks from popular repositories, with LLM-generated context files following agent-developer recommendations, and a novel collection of issues from repositories containing developer-committed context files. Across multiple coding agents and LLMs, we find that context files tend to reduce task success rates compared to providing no repository context, while also increasing inference cost by over 20%. Behaviorally, both LLM-generated and developer-provided context files encourage broader exploration (e.g., more thorough testing and file traversal), and coding agents tend to respect their instructions. Ultimately, we conclude that unnecessary requirements from context files make tasks harder, and human-written context files should describe only minimal requirements.

Motivation & Objective

  • Assess whether repository-level context files improve autonomous coding task completion.
  • Create AGENTbench to benchmark context-file impact on real-world tasks.
  • Compare developer-provided versus automatically generated context files across multiple agents and prompts.
  • Investigate behavioral changes and cost implications when context files are included.

Proposed method

  • Build AGENTbench from real GitHub PRs in repositories with developer-written context files.
  • Evaluate four coding agents across SWE-bench Lite and AGENTbench under three settings: none, LLM-generated context, and human-provided context.
  • Measure success rate, steps to solve, and LLM inference cost.
  • Analyze agent traces to understand changes in exploration, testing, and reasoning.
Figure 1 : Overview of our evaluation pipeline. We begin with real-world repositories and tasks derived from past pull requests. For each repository state, we generate three settings: \tiny{1}⃝ If a developer-provided context file exists, we include it in the repository. In \tiny{2}⃝, we omit the co
Figure 1 : Overview of our evaluation pipeline. We begin with real-world repositories and tasks derived from past pull requests. For each repository state, we generate three settings: \tiny{1}⃝ If a developer-provided context file exists, we include it in the repository. In \tiny{2}⃝, we omit the co

Experimental results

Research questions

  • RQ1Do repository-level context files improve the success rate of coding agents on real-world tasks?
  • RQ2How do developer-provided versus automatically generated context files affect agent behavior and cost?
  • RQ3Do context files provide meaningful repository overviews that aid task resolution?
  • RQ4What is the impact of context files on testing and exploration behavior of agents?

Key findings

  • Context files tend to reduce task success rates compared to providing no repository context.
  • LLM-generated context files reduce performance on average by a small amount and increase inference costs by over 20%.
  • Developer-provided context files provide marginal performance gains (about 4% on average) over no context files.
  • Context files increase exploration, testing, and reasoning, leading to higher costs without clear overview benefits.
  • When documentation is removed, LLM-generated context files can outperform developer-written ones, suggesting redundancy of many context-file sections in common repositories.
  • Context files are generally followed by agents but do not serve as effective repository overviews.
Figure 2 : Distribution of AGENTbench instances across 12 open-source GitHub repositories, each containing context files.
Figure 2 : Distribution of AGENTbench instances across 12 open-source GitHub repositories, each containing context files.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.