Agent READMEs: An Empirical Study of Context Files for Agentic Coding
Agentic coding tools receive goals written in natural language, break them down into specific tasks, and write or execute code with minimal human intervention. Central to this process are agent context files (e.g., AGENTS.md and CLAUDE.md) that provide persistent, project-level instructions. In this paper, we conduct the first large-scale empirical study of 2,303 agent context files from 1,925 repositories to characterize their structure, maintenance, and content. We find that these files are not static documentation but complex, difficult-to-read artifacts that evolve like configuration code through frequent, small additions. Our content analysis of 16 instruction types shows that developers prioritize functional context, such as test procedures (75.9%), implementation details (70.8%), and architecture (68.1%). We also identify a significant gap: non-functional requirements such as security (14.8%) and performance (14.5%) are rarely specified. These findings indicate that while developers use context files to make agents functional, they provide few guardrails to ensure that agent-written code is secure or performant, highlighting the need for improved tools and practices.
Authors
- Bundit Manaskasemsak (ORCID: https://orcid.org/0000-0001-8075-2787)
- Arnon Rungsawang (ORCID: https://orcid.org/0000-0002-7960-790X)
- Yutaro Kashiwa (ORCID: https://orcid.org/0000-0002-9633-7577)
- Hajimu Iida (ORCID: https://orcid.org/0000-0002-2919-6620)
- Kundjanasith Thonglek (ORCID: https://orcid.org/0000-0002-2465-0935)
- Bram Adams (ORCID: https://orcid.org/0000-0001-7213-4006)
- Brittany Reid
- Pattara Leelaprute (ORCID: https://orcid.org/0000-0001-7380-354X)
- Ahmed E. Hassan (ORCID: https://orcid.org/0000-0001-7749-5513)
- Hao Li (ORCID: https://orcid.org/0000-0003-1404-5202)
- Worawalan Chatlatanagulchai
Institutions
- Kasetsart University (TH)
- Queen's University (CA)
- Nara Institute of Science and Technology (JP)
Publication Details
- Journal
- ACM Transactions on Software Engineering and Methodology
- Published
- 2026-09-15
- DOI
- https://doi.org/10.1145/3840295
- Citations
- 2
- Primary Topic
- Multi-Agent Systems and Negotiation
- Type
- article
- Field-Weighted Citation Impact
- 11.90
Funders
- Natural Sciences and Engineering Research Council of Canada
- Japan Society for the Promotion of Science
- Core Research for Evolutional Science and Technology