[Paper Review] Fingerprinting AI Coding Agents on GitHub
The paper presents the first empirical study fingerprinting AI coding agents by analyzing 33,580 pull requests across five agents, achieving 97.2% F1-score in multi-class agent identification and revealing agent-specific behavioral signatures.
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.
Motivation & Objective
- Motivate the need to identify AI-generated or AI-submitted code contributions for governance and research validity.
- Propose a fingerprinting approach using behavioral features from PRs to attribute agent authorship.
- Evaluate the ability to identify the submitting AI agent across multiple agents with robust performance.
- Characterize agent-specific fingerprints to aid policy enforcement and understanding of agent-driven development practices.
Proposed method
- Construct a labeled dataset of PRs from five AI coding agents in the AIDev dataset (OpenAI Codex, GitHub Copilot, Devin, Cursor, Claude Code).
- Engineer 41 discriminative features spanning commit messages, PR structure, code changes, patch-level code, and temporal patterns from PR metadata and diffs.
- Reduce feature set by hierarchical clustering and R^2 redundancy analysis to 41 features with adequate events-per-variable (EPV).
- Train tree-based ensemble classifiers (XGBoost and Random Forest) in a 5-fold stratified cross-validation setup for multi-class agent identification.
- Use one-vs-rest binary classifiers to extract agent-specific feature importance for interpretable fingerprints.
- Report performance with macro-averaged metrics and analyze confusion matrices and feature importances.
Experimental results
Research questions
- RQ1RQ1: How accurately can we identify which AI coding agent submitted a pull request?
- RQ2RQ2: What characteristics distinguish AI coding agents from each other?
- RQ3Assess overall agent identifiability and examine universal vs. agent-specific fingerprints.
Key findings
- XGBoost achieves 97.2% F1-score for five-class agent identification (better than Random Forest by 2.3%).
- Majority classes (OpenAI Codex, Copilot, Devin) reach near-perfect precision/recall (≈99%, 93–96%), while Cursor and Claude Code are weaker due to minority status (Claude Code recall 57%, precision 82%).
- Global feature importance is dominated by commit message characteristics (multiline commit ratio 44.7%), with code content features ranking lower (e.g., comments, conditionals, functions).
- One-vs-rest analysis reveals agent-specific fingerprints: Codex—multiline commits; Copilot—long descriptions and higher change concentration; Cursor—bullets and hyperlinks; Devin—multiline commits and distributed changes; Claude Code—high conditionals and comments density (27.2% and 19.8%).
- The fingerprints enable detection of undisclosed agent usage and have implications for policy enforcement, dataset validity (e.g., AIDev), and agent design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.