arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17406cs.SE
收藏

在GitHub上指纹识别AI编码代理

Fingerprinting AI Coding Agents on GitHub

Trent University(特伦特大学)

Taher A. Ghaleb

AI总结:

该研究通过分析GitHub上的拉取请求,识别AI编码代理的行为特征,揭示了AI生成代码的独特模式,为软件仓库中AI贡献的检测提供了新的方法。

摘要:

AI编码代理通过自主和人类主导的拉取请求(PR)正在重塑软件开发。当开发者使用AI代理在自己的账户下生成代码时,代码署名归因对于仓库治理、研究有效性以及理解现代开发实践变得至关重要。我们提出了首个关于指纹识别AI编码代理的研究,分析了来自五个主要代理(OpenAI Codex、GitHub Copilot、Devin、Cursor、Claude Code)的33,580个PR,以识别行为特征。通过41个特征,涵盖提交信息、PR结构和代码特征,我们在多类代理识别中实现了97.2%的F1分数。我们发现了独特的指纹:Codex显示独特的多行提交模式(67.5%的特征重要性),而Claude Code表现出独特的代码结构(27.2%的重要性为条件语句)。这些特征表明,AI编码工具会产生可检测的行为模式,暗示了在软件仓库中识别AI贡献的潜力。

英文摘要:

AI coding agents are reshaping software development through both autonomous and human-mediated pull requests (PRs). When developers use AI agents to generate code under their own accounts, code authorship attribution becomes critical for repository governance, research validity, and understanding modern development practices. We present the first study on fingerprinting AI coding agents, analyzing 33,580 PRs from five major agents (OpenAI Codex, GitHub Copilot, Devin, Cursor, Claude Code) to identify behavioral signatures. With 41 features spanning commit messages, PR structure, and code characteristics, we achieve 97.2% F1-score in multi-class agent identification. We uncover distinct fingerprints: Codex shows unique multiline commit patterns (67.5% feature importance), and Claude Code exhibits distinctive code structure (27.2% importance of conditional statements). These signatures reveal that AI coding tools produce detectable behavioral patterns, suggesting potential for identifying AI contributions in software repositories.

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

↑