What Do AI Agents Actually Change? An Empirical Taxonomy of Mutation Patterns in Performance-Improving Pull Requests

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, medium

Summary

An empirical study classified 1,254 performance-relevant diff hunks from 216 pull requests (PRs) generated by five AI coding agents (Devin, GitHub Copilot, Cursor, OpenAI Codex, and Claude Code) within the AIDev-pop dataset. This analysis, using an 18-category syntactic mutation taxonomy and a dual-LLM intersection pipeline, revealed that "name_modification" (37.0%), "object_creation" (26.4%), and "type_change" (22.7%) are the dominant mutation patterns in performance-improving PRs. This profile significantly differs from prior Genetic Improvement (GI) corpora, where "no_change" accounted for 84%. The research also established that each agent system exhibits a unique mutation vocabulary, and specific performance strategies activate distinct subsets of mutation categories. These findings suggest that agent identity and target strategy serve as valuable priors for refining the operator space in Search-Based Software Engineering (SBSE).

Key takeaway

If you are developing or refining automated code optimization tools using AI agents, you should incorporate agent identity and target performance strategy as priors. This narrows the effective mutation operator space from 18 categories to roughly five, improving efficiency. Be aware that agent profiles co-vary with language ecosystems, impacting generalizability. Tailor your mutation operators based on the specific agent and optimization goal.

Key insights

AI agent performance PRs show distinct mutation patterns, unlike human or general GI code.

Principles

Method

A dual-LLM intersection pipeline classified 1,254 diff hunks from 216 PRs using an 18-category syntactic mutation taxonomy, with claude-sonnet-4-6 and gpt-5.4 as judges.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, Software Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.