arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.31715cs.SEcs.AI
收藏

开源项目向其编码智能体传达了什么:AGENTS.md与CLAUDE.md的普查

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

Pawel Zarzycki

AI总结:

通过普查13种语言的热门GitHub仓库,分析AGENTS.md与CLAUDE.md的内容,揭示开源项目对编码智能体的指令规则及AI归属等相关情况。

摘要:

编码智能体可通过仓库中的指令文件进行引导。我们对13种语言的热门活跃GitHub仓库开展普查以研究这一新兴实践,将每个仓库根目录下的AGENTS.md和CLAUDE.md视为一套指令集。指令文件存在于一定比例的仓库中,且在星标最多的仓库中占比更高;当两个文件都存在时,AGENTS.md通常指向CLAUDE.md。我们采用模型辅助标注与人工审核相结合的方式分析指令内容,标注结果显示指令实际是项目知识与代码、构建及工作流规则的混合体。协作规则明确了具体要求,从测试计划到提交格式均有涉及,但部分指令未说明原因。项目在AI归属问题上存在分歧:提交消息规则更常禁止AI参与,而拉取请求规则更常要求披露AI参与情况。三分之一的指令集带有生成器相关标识,即工具插入的代码块、共享文本或AI标记的创建提交;五分之四的指令集在创建后经过编辑。预设测试将仓库流行度与拉取请求规则、AI贡献规则关联起来。探索性分析显示,项目活跃度与流程导向内容相关,且LLM和智能体项目在采用此类指令的项目中占比过高。模型的主题分配与人工审核员的一致性远低于彼此间的一致性,这为自动标注提供了警示。我们发布了标注结果、分类体系及分析文件版本的指针。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑