跳到正文
arXiv cs.AI· Pawel Zarzycki·· 2 小时前AI 评分48

开源项目如何给编程智能体写指令:AGENTS.md 与 CLAUDE.md 普查

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

AI 导读

一项研究对 13 种语言的热门活跃 GitHub 仓库进行普查,统计其中的 AGENTS.md 和 CLAUDE.md 指令文件使用情况。指令文件已相当普遍,内容多为项目知识、代码规范和工作流规则的混合;提交信息规则更常禁止 AI 署名,而 pull request 规则更常要求披露 AI 参与。约三分之一指令集带有工具生成或 AI 创作痕迹,且模型间标注一致性远高于与人工审核者的一致性。

正文 · 原文

View PDF HTML (experimental)

Abstract:Coding agents can be guided with instruction files in a repository. We examine this emerging practice through a census of popular, active GitHub repositories in thirteen languages, treating each repository's root this http URL and this http URL as one instruction set. Agent instructions appear in of repositories and of the most-starred; where both files exist, this http URL usually points to this http URL. We analyse 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 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.
Subjects: Software Engineering (cs.SE); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.31715 [cs.SE]
  (or arXiv:2610.31715v1 [cs.SE] for this version)
  https://doi.org/10.48550/arXiv.2610.31715

arXiv-issued DOI via DataCite

Submission history

From: Pawel Zarzycki [view email]
[v1] Thu, 22 Oct 2026 05:44:41 UTC (141 KB)

来源:arXiv cs.AI · arxiv.org