Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?
cs.SE, cs.AI
Submitted: 2026-02-12
Updated: 2026-09-29
Code: https://github.com/google-gemini/gemini-cli
License: http://creativecommons.org/licenses/by/4.0/
The gist: A widespread practice in software development is to tailor coding agents to repositories using context files, such as AGENTS.md.
Abstract
A widespread practice in software development is to tailor coding agents to repositories using context files, such as AGENTS.md. 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, and a novel collection of issues from repositories containing developer-committed context files. Surprisingly, we find that providing context files does not generally improve task success rates, while increasing inference cost by over 20% on average. This observation holds across different LLMs, coding agents, and for both LLM-generated and developer-committed context files. Specifically, we find that while instructions in the context files are well followed by coding agents, repository overviews, although popular and recommended by model providers, are not helpful. We conclude that while context files are useful for specifying non-standard coding practices, any attempts to improve performance should be rigorously evaluated before deployment.
Sources
- MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generation
- Agent READMEs: An Empirical Study of Context Files for Agentic Coding
- EvoCurr: Self-evolving Curriculum with Behavior Code Generation for Complex Decision-making
- SWE-Dev: Evaluating and Training Autonomous Feature-Driven Software Development
- SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?
- Can Language Models Replace Programmers for Coding? REPOCOD Says 'Not Yet'
- Context Engineering for AI Agents in Open-Source Software
- OpenAI GPT-5 System Card
- Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory
- Qwen3 Technical Report
- EditLens: Quantifying the Extent of AI Editing in Text
- SWE-bench Goes Live!
- Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models
Related papers
- Falsification-Based Verification of LLM-Generated Optimization Models: Sound Test Batteries and Their Detection Limits
- GitSkills: A Dataset of Agent Skills on GitHub
- SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces
- PackMonitor: Enabling Zero Package Hallucinations Through Decoding-Time Monitoring
- IntentCoding: Amplifying User Intent in Code Generation
- Incentives and Outcomes in Bug Bounties