What Do AI Agents Actually Change? An Empirical Taxonomy of Mutation Patterns in Performance-Improving Pull Requests
Summary
An empirical study analyzed 1,254 performance-relevant diff hunks from 216 pull requests (PRs) generated by five distinct AI coding agent systems. These PRs, representing fewer than 1% of 33,596 agent PRs in AIDev-pop, offer a rare look into agent behavior. Researchers classified these changes using a dual-LLM intersection pipeline against the 18-category Even-Mendoza et al. (2025) syntactic mutation taxonomy. The analysis revealed that name modification (37.0%), object creation (26.4%), and type change (22.7%) dominate agent-generated performance improvements, a profile significantly different from prior genetic improvement corpora. Each agent system exhibits a unique mutation vocabulary, and specific performance strategies activate distinct category subsets, suggesting agent identity and target strategy are valuable priors for search-based software engineering (SBSE) operator selection.
Key takeaway
For AI Engineers optimizing code with agents, understanding the specific mutation patterns agents employ is crucial. This research shows that agent identity and performance strategy predict the types of code changes you will see, such as name modification or object creation. You should leverage these insights to refine your search-based software engineering (SBSE) mutation operators, potentially improving the efficiency and effectiveness of automated performance optimization efforts.
Key insights
AI agents' performance-improving code changes exhibit distinct, predictable mutation patterns, informing search-based software engineering.
Principles
- AI agent code generation is opaque, but its changes are inspectable.
- Agent identity and target strategy narrow the effective SBSE operator space.
- AI agent mutation profiles differ significantly from prior GI corpora.
Method
A dual-LLM intersection pipeline classifies diff hunks against an 18-category syntactic mutation taxonomy.
In practice
- Inspect agent-generated code changes to understand behavior.
- Use agent identity as a prior for SBSE operator selection.
- Analyze mutation patterns for performance optimization.
Topics
- AI Agents
- Code Generation
- Performance Optimization
- Pull Requests
- Mutation Testing
- Search-Based Software Engineering
- Large Language Models
Code references
Best for: Research Scientist, AI Scientist, AI Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.