---
title: Coding Agents in Software Engineering
url: https://www.emergentmind.com/topics/coding-agents
type: topic
---

# Coding Agents in Software Engineering

AI coding agents are autonomous software engineering tools powered by large language models (LLMs) that automate multi-step development tasks, such as code generation, repository navigation, compilation, test execution, and submitting pull requests (PRs) to version-control platforms like GitHub. Unlike traditional code-completion LLMs (e.g., Copilot’s inline suggestions), coding agents operate as independent entities capable of understanding high-level tasks, engaging in iterative tool invocation, and generating persistent machine-readable artifacts—including configuration files (AGENTS.md, CLAUDE.md), commit messages, branches, and PRs. Their rapid adoption and distinctive behavioral traces have made them prominent actors in modern software engineering workflows, introducing new empirical opportunities and challenges for mining, measuring, and integrating agentic contributions [2601.18341][2601.20404][2601.18345].

## 1. Architectural Principles and Operational Workflows

Contemporary coding agents (Codex, Claude Code, Cursor, Copilot agent-mode, etc.) leverage a closed-loop interaction paradigm. Provided with a natural-language task specification—often in the form of a GitHub issue—they:

- Ingest contextual artifacts (README, AGENTS.md, existing codebase, test suites).
- Iteratively select actions (file navigation, edit, compile, test, git operations) using LLM-generated tool calls.
- Evaluate progress via intermediate results, completion criteria (e.g., tests passing), and user/CI feedback.
- Synthesize multi-file code changes, update configuration, and submit PRs or direct commits.

Agents can be single-entity or part of multi-agent frameworks (e.g., MAGIS, CodeR), which assign specialized roles—manager, developer, QA engineer, repository custodian—and structure the workflow via planning and task graphs. Explicit protocols guide agents through retrieval (BM25, SBFL), role assignment, developer–QA feedback loops, evidence synthesis, and verification [2403.17927][2406.01304].

The critical distinction with line-oriented completion models is agentic autonomy: the ability to reason about and implement composite tasks that span multiple files, navigate codebases, and manage execution environments [2601.18341]. Agents maintain explicit traces, which support reproducibility and empirical auditing.

## 2. Artifacts, Traces, and Detection Heuristics

Coding agents produce a wide array of repository-level artifacts:

- **Guidance/Manifest Files**: AGENTS.md, CLAUDE.md, CURSOR.md encode architecture, build/test commands, coding conventions, operational rules, and agent personas. These files exhibit shallow markdown hierarchies—typically one H1, several H2, and H3s, with content dominated by technical details, operational instructions, and architecture summaries [2601.20404][2509.14744].
- **Configuration Files**: Tool- and agent-specific config files (e.g., .aider.conf.yml, .cursor/, .claude/) signal agent presence and are crucial for agentic operation.
- **Commit Metadata**: “Co-authored-by” trailers (e.g., aider@aider.chat, noreply@anthropic.com), user accounts, and branch prefixes denote agentic contributions.
- **PR Labels and Branches**: Explicit branch name patterns (“codex/”, “cursor/”), PR labels (“ai-generated”, “codex”) provide further evidence of agentic activity.
- **Task Results**: Multi-file git diffs, test results, coverage reports, and detailed commit messages reflecting agent rationale.

Heuristics for agent detection rely on matched filename patterns, commit trailers, PR/branch labels, and user accounts, collectively covering >60 artifact types. Cross-validation confirms partial observability—40% of config file adopters lack signed agentic commits—necessitating multi-faceted approaches for robust agent identification [2601.18345]. These heuristics enable mining software repositories (MSR) studies for agentic impact, collaboration, and adoption trends.

## 3. Adoption, Task Scope, and Impact on Software Projects

Empirical studies estimate agentic adoption across 129,134 active GitHub projects at 15.85%–22.60% within one year of widespread agent release [2601.18341]. Adoption is broad, covering the full spectrum of project maturity, organization size, programming languages, and topics. Agents are more prevalent in younger and larger projects, but all deciles show substantial adoption.

Commit-level analysis reveals that AI-assisted commits, compared to human-only and rule-based bot commits, are:

- Significantly larger (median additions: 34 vs 10 lines), touch more files, and have higher churn rates.
- More likely to be feature-oriented (35.7% vs 17% in humans) and bug-fix focused (29.9% vs 27%), with lower rates of maintenance chores (7.1% vs 31%).
- Distributed across major languages (TypeScript, Python, JavaScript) and unique low-resource languages.

Agentic PRs typically bundle changes into single or few commits, focusing modifications into narrowly scoped, self-contained units. Structural organization differs from human PRs in commit count ($\delta=0.5429$, large effect), files touched ($\delta=0.4487$, medium), and description alignment—agentic PRs exhibit slightly higher semantic similarity between description and diff, reflecting LLM-driven coherence [2601.17581].

## 4. Efficiency, Guidance Engineering, and Repository Integration

The introduction of AGENTS.md (and analogous manifest files) yields substantial improvements in agent runtime and output efficiency. In controlled experiments:

- AGENTS.md presence reduced median agent wall-clock runtime by $28.64\%$ (98.57s $\to$ 70.34s) and output token consumption by $16.58\%$ (2,925 $\to$ 2,440) [2601.20404].
- Efficiency gains arise from reduced exploratory navigation, fewer redundant context-retrieval calls (“ls”, “grep”), and clearer build/test workflow execution.

Best practices for crafting effective guidance files include:

| Content Category           | Required Features                                                   | Example/Notes                                 |
|---------------------------|---------------------------------------------------------------------|-----------------------------------------------|
| Project Description       | Brief summary and primary goals                                     | One H1, short paragraph                      |
| Architecture              | High-level structure, key modules, entry points                     | Module/package diagram or bullet list         |
| Build/Test/Lint Commands  | Exact shell invocations, integration/test steps                     | Markdown fenced code blocks                   |
| Coding Conventions        | Style guides (indentation, naming, file org)                        | Bullet lists, explicit examples               |
| Agent Role                | Persona, operational rules, scope of decision-making                | Separate section (AI Integration)             |

Guidance files are most effective when kept under version control, updated regularly, and referenced in developer documentation and CI checks. Their integration into distributed build systems ensures human–agent consistency and supports agentic triage and automation protocols.

## 5. Acceptance, Failure Modes, and Socio-Technical Dynamics

Coding agent pull requests exhibit high but variable acceptance rates:

- Claude Code–generated PRs: 83.8% merged, 54.9% as-is, 45.1% with human revisions (vs 91% acceptance for matched human PRs) [2509.14745].
- Revision requirements center on bug fixes (45.1%), documentation and refactoring (~25%), and style/CI adjustments (15–22%). Reviewer engagement is critical; 38% of rejected agentic PRs are abandoned pre-review [2601.15195].
- Merge success rates are highest for documentation (84%), CI (79%), and build updates (74%), lowest for performance (55%) and bug-fix tasks (64%) [2601.15195].
- Larger PRs and those failing CI/CD tests are less likely to merge; each failed CI check reduces odds by ~15% (Cliff’s $\delta_{CI} = 0.24$).
- Key rejection patterns include lack of reviewer engagement (38%), duplicate solutions (23%), unwanted features, CI/test failures, and technical misalignment.

These findings underscore the centrality of socio-technical integration: agents must decompose large tasks into minimal units, validate changes against CI before PR submission, and connect task selection to repository context (issues, roadmaps). Legal and governance compliance (CLAs, licensing) remains an unresolved challenge for agentic automation.

Security-related PRs constitute ~4% of agentic PRs, with lower merge rates (61.5% vs 77.3%) and greater review latency (median 3.92h vs 0.11h). PR complexity and verbosity, rather than explicit security terminology, are early predictors of rejection [2601.00477].

## 6. Evaluation Benchmarks, Model Training, and Limitations

Agent performance on repository-level tasks is benchmarked using datasets such as SWE-Bench, SWA-Bench, SWEE-Bench, and SWE-PolyBench:

- SWE-Bench (12 repos): agents pass ~4.6–8.2% of issues (AutoCodeRover v2), but these benchmarks have distributional mismatch—higher description quality, lower fix complexity—leading to performance overestimation [2503.07701].
- SWEE-Bench and SWA-Bench (hundreds of diverse repos): lower pass rates (~4–8%), confirming up to 40% accuracy drop on real-world, more complex tasks. Success rates negatively correlate with number of files and lines edited.
- SWE-PolyBench (multi-language): pass rates top out at ~24% in Python, much lower on JS/TS/Java. Agents struggle on multi-file edits, cross-file context, and deep syntax-tree retrieval [2504.08703].
- AgentPack corpus (1.3M agent-human edits): co-authored commits are longer, multi-file, better documented, and span diverse languages and tasks [2509.21891]. Models fine-tuned on AgentPack outperform prior human-only datasets on code-editing benchmarks.

Recent work (UTBoost) highlights test suite insufficiency: LLM-driven test augmentation uncovers 345 erroneous patches in SWE-Bench, inducing up to 41% leaderboard ranking changes. This motivates rigorous intramorphic testing and parser correction in benchmarking pipelines [2506.09289].

## 7. Fingerprinting, Attribution, and Empirical Research Implications

AI coding agents leave robust, discriminative behavioral fingerprints at the commit, PR, and code-patch level:

- Multi-class agent classifiers (XGBoost, 41 features) achieve 97.2% F1-score in agent identification; top features include multiline commit ratio (44.7% importance) and change-concentration Gini (10.1%) [2601.17406].
- Codex: distinguished by multiline commit ratio and message length.
- Claude Code: unique density of conditional statements and comments per patch.
- Copilot: PR body length and distributed changes.
- Cursor: bullet points and checklist items.
- These fingerprints support governance (pre-merge checks), research validity (contaminant detection in human PRs), and agent design transparency.

Adversarial adaptation, temporal drift, and cross-platform generalization remain open areas for fingerprinting research.

## 8. Open Challenges and Future Directions

Research priorities include:

- Generalization of efficiency gains to broader agent architectures, larger/multi-module code changes, and non-code/dynamic tasks [2601.20404].
- Correctness and semantic alignment measurement, beyond token/resource efficiency.
- Design of instruction files—optimal granularity, standardization, governance—to support portability and evolution.
- Improved detection heuristics for agent contributions, closing gaps in partial observability and evolving formats [2601.18345].
- Benchmarking with diverse, frequently refreshed datasets capturing distributional realities of open-source repositories.
- Integration of agent-generated test suites for self-validation and performance improvement [2506.09289].
- Socio-technical factors: human-in-the-loop collaboration, reviewer engagement, and process integration.
- Attribution standards to distinguish agentic from human activity, facilitating empirical research and stable workflows [2601.18341].

Persistent guidance artifacts, robust benchmarks, and transparent integration protocols will be central for advancing agentic coding practice and research.

---

**References**  
- [2601.20404] On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents  
- [2601.15195] Where Do AI Coding Agents Fail? An Empirical Study of Failed Agentic Pull Requests in GitHub  
- [2601.00477] Security in the Age of AI Teammates: An Empirical Study of Agentic Pull Requests on GitHub  
- [2601.17581] How AI Coding Agents Modify Code: A Large-Scale Study of GitHub Pull Requests  
- [2601.18341] Agentic Much? Adoption of Coding Agents on GitHub  
- [2601.18345] Promises, Perils, and (Timely) Heuristics for Mining Coding Agent Activity  
- [2509.21891] AgentPack: A Dataset of Code Changes, Co-Authored by Agents and Humans  
- [2509.14744] On the Use of Agentic Coding Manifests: An Empirical Study of Claude Code  
- [2509.14745] On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHub  
- [2403.17927] MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution  
- [2406.01304] CodeR: Issue Resolving with Multi-Agent and Task Graphs  
- [2503.07701] Automated Benchmark Generation for Repository-Level Coding Tasks  
- [2504.08703] SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents  
- [2601.17406] Fingerprinting AI Coding Agents on GitHub  
- [2506.09289] UTBoost: Rigorous Evaluation of Coding Agents on SWE-Bench  
- [2512.21426] What Makes a GitHub Issue Ready for Copilot?

Source: https://www.emergentmind.com/topics/coding-agents