Context Engineering for AI Agents in Open-Source Software
Seyedmoein Mohsenimofidi, Matthias Galster, Christoph Treude, Sebastian Baltes

TL;DR
This study investigates how open-source software projects adopt and structure AI context files like AGENTS$.$md, revealing significant variation and evolution over time, which impacts the effectiveness of AI agents in software development.
Contribution
The paper provides the first empirical analysis of AI context file adoption and structure in open-source projects, highlighting variability and evolution in content and presentation.
Findings
No standardized content structure in AI context files
High variation in how context is provided (descriptive, prescriptive, etc.)
Insights into how context files evolve over time
Abstract
GenAI-based coding assistants have disrupted software development. The next generation of these tools is agent-based, operating with more autonomy and potentially without human oversight. Like human developers, AI agents require contextual information to develop solutions that are in line with the standards, policies, and workflows of the software projects they operate in. Vendors of popular agentic tools (e.g., Claude Code) recommend maintaining version-controlled Markdown files that describe aspects such as the project structure, code style, or building and testing. The content of these files is then automatically added to each prompt. Recently, AGENTSmd has emerged as a potential standard that consolidates existing tool-specific formats. However, little is known about whether and how developers adopt this format. Therefore, in this paper, we present the results of a preliminary…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Advanced Software Engineering Methodologies · Software Engineering Techniques and Practices
