GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
RecentarXiv preprint

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

Coding agents follow the instructions in AGENTS.md files closely. On 438 real tasks, those files did not make them solve more, and every agent spent 8 to 50% more per task.

Breakdown by FDE Interviews · 13 min read · Updated

About the original · 2026
AUTHORS
Gloaguen, Mündler-Sasahara, Müller, Raychev, Vechev
FROM
ETH Zurich, LogicStar.ai
PUBLISHED
Feb 2026 · arXiv preprint
CITED BY
31Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 16% of this breakdown.

01

The paper in one minute

A context file is a README written for a coding agent. Called AGENTS.md, CLAUDE.md or similar, it sits at the root of a repository and is loaded into the agent's context at the start of every session. Typical files describe the repository's layout, how to install and test it, and conventions to follow. Agent makers recommend them, several tools generate one with a single /init command, and the AGENTS.md project counts over 60,000 public repositories that include one.

Thibaud Gloaguen, Martin Vechev and colleagues at ETH Zurich and LogicStar.ai asked whether these files actually help agents complete tasks. Existing benchmarks could not answer that, since their repositories predate context files. So the authors built CTXBench: 138 Python tasks, bug fixes and features, drawn from 12 smaller repositories whose developers had committed their own context files. They also used the 300-task SWE-bench Lite set, generating context files there with each agent's own recommended command.

Four agents were tested: Claude Code with Sonnet 4.5, Codex with GPT-5.2 and with GPT-5.1 mini, and Qwen Code with Qwen3-30B-Coder. Each ran every task with no file, with an LLM-generated file, and, on CTXBench, with the developers' file. Context files did not significantly change success rates. They did increase the number of steps and the cost, because agents dutifully followed the extra instructions: running more tests, searching more files, and using the tools the file named.

THE IDEA, VISUALLY
CONTEXT FILES BARELY MOVED SUCCESS CTXBench success %, 138 tasks, standard error about 4 points (Table 5) Sonnet 4.5 73.2 65.2 70.3 GPT-5.2 65.2 68.1 68.1 GPT-5.1 mini 54.3 50.7 55.8 Qwen3-30B 45.7 47.1 53.6 no file LLM-generated file developers' own file Averages: none 59.6, LLM 57.8, developer 62.0. Only LLM vs developer was significant (p = 0.038). BUT EVERY AGENT PAID MORE cost per task, LLM-generated file vs none (Table 2) Sonnet 4.5 +16% +16% GPT-5.2 +34% +50% GPT-5.1 mini +22% +11% Qwen3-30B +8% +15% SWE-bench Lite CTXBench Instructions were followed: uv ran 1.6 times per task when the file mentioned it, under 0.01 when it did not. Overviews did not help agents find the right files.
Adding a context file, whether written by an LLM or by the repository's own developers, changed success rates by a few points in either direction. It raised the cost of every agent tested.
Research notes: the problem, approach and results
+2.4

points of average success from developer-written files on CTXBench, not significant (p = 0.21)

+20%

average cost per task on SWE-bench Lite with an LLM-generated context file, significant

1.6 vs 0.01

uses of uv per task when the file mentioned it versus when it did not: the instructions were followed

THE PROBLEM

Agent vendors recommend an AGENTS.md or CLAUDE.md file in every repository, and over 60,000 public repositories have one. Nobody had measured whether these files help agents finish real tasks.

THE IDEA

Run four coding agents on 300 SWE-bench Lite tasks and on a new benchmark of 138 tasks from 12 repositories that already ship developer-written context files, with no file, an LLM-generated file, or the developers' own file.

THE RESULT

LLM-generated files lowered average success slightly; developer-written files raised it by 2.4 points, neither significantly. Both raised steps and cost. Agents obeyed instructions like 'use uv'; repository overviews did not help them find the right files.

02

Why it matters to an FDE

Rolling out coding agents at a customer usually starts with someone running /init and committing the result. This paper says that file is likely costing money without improving outcomes, and it tells you what kind of content is worth keeping.

Do not ship an auto-generated context file by default. LLM-generated files lowered success slightly on average and raised cost by about a fifth. The authors recommend omitting them for now.

Write instructions, not tours. Agents followed specific instructions closely: when a file said to use a tool, agents used it. Repository overviews, the most common content, did not help agents reach the right files any sooner. Keep the file to what an agent cannot discover: non-standard commands, required conventions, things to never do.

Every line has a cost. The file is sent with every model call, and each instruction it contains can trigger extra work. Treat it as configuration with a budget, not documentation.

Measure before you standardize. If a team wants a context file template across repositories, test it on real tasks from those repositories, with and without the file, and compare success and cost.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 99 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦3 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    How the benchmark was built, each finding with its evidence, and the misreadings to avoid

    Free account
  2. 04How it works

    Building CTXBench, the three settings, the agents, and the statistics

    Premium
  3. 05The numbers that matter

    Steps, cost, significance, and what the trace analysis showed

    Premium
  4. 06Try it yourself

    Split the paper's cost increase into extra steps and dearer steps, then price the file itself

    Premium
  5. 07Where it breaks

    What the benchmarks cannot show, and where the findings may not hold

    Premium
  6. 08Using it on a deployment

    Writing, testing and budgeting a context file for a customer's repositories

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →