arXiv:2610.31715cs.SEOct 2026

Manuscript Offprint

arXiv:2610.31715

What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.md

Pawel Zarzycki

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Coding agents can be guided with instruction files in a repository. We examine this emerging practice through a census of 22,854 popular, active GitHub repositories in thirteen languages, treating each repository's root AGENTS.md and CLAUDE.md as one instruction set. Agent instructions appear in 26.3% of repositories and 59.6% of the most-starred; where both files exist, CLAUDE.md usually points to AGENTS.md. We analyse 341,852 statements using model-assisted annotation and human review. The annotations reveal a practical mix of project knowledge and rules about code, building and workflow. Collaboration rules name concrete requirements, from test plans to commit formats, yet 74.0% of directives give no reason. Projects disagree on AI attribution: commit-message rules more often prohibit it than require it, while pull-request rules more often require disclosure. A third of instruction sets have a generator-associated signature, a tool-inserted block, shared text or an AI-marked creation commit; four in five are edited after creation. Prespecified tests associate repository popularity with rules on pull requests and AI contributions. Exploratory analyses link activity to process-oriented content and show that LLM and agent projects are over-represented among adopters. The models agree much more closely with each other than with the human reviewer's topic assignments, a caution for automated annotation. We release the annotations, taxonomies and pointers to the analysed file versions.

1 Introduction

Human contributors learn a project’s norms through review: which commands to run, what a pull request must contain, when a change is done. Coding agents, which now work in open-source repositories at scale [Robbes et al., 2026a, Li et al., 2026], often start a task without that history, so projects write the norms down for them, mostly in two root files: AGENTS.md, an open format that calls itself a README for agents [AGENTS.md, 2026], and CLAUDE.md, which Claude Code reads [Anthropic, 2026b]. Whether such files help agents is contested [Gloaguen et al., 2026, Lulla et al., 2026], so it matters what projects put in them. Existing studies characterise them on repositories already tied to agent use [Chatlatanagulchai et al., 2026] or screen broad samples under other definitions, with adoption estimates from 5% of mature repositories [Mohsenimofidi et al., 2026] to 21.7% of agent-using ones [Díaz et al., 2026]. What popular projects write, statement by statement, where that text comes from and what it varies with is not known.

We answer these questions with a census of 22,854 public GitHub repositories returned by GitHub's search API in thirteen languages with at least 1,000 stars and recent activity, and treat each repository's AGENTS.md and CLAUDE.md as one instruction set. We ask who has agent instructions (RQ1), what they contain (RQ2), how instructions are expressed (RQ3), where their content comes from (RQ4) and what it varies with (RQ5). Analysing the files together, down to individual statements, lets us examine both the requirements projects give their agents and the traces of generators, tools and shared text in those requirements. We combine this account with adoption and file-history measurements, prespecified hypothesis tests and exploratory associations with project characteristics. We release

Preprint.

file-version pointers, annotations, taxonomies and aggregate results, without redistributing the corpus texts.