Understanding Software Engineering Agents Through the Lens of Traceability: An Empirical Study

Ira Ceka, Saurabh Pujar, Shyam Ramji, Luca Buratti, Gail E. Kaiser, Baishakhi Ray · DOI

Abstract

As Large Language Model (LLM) based agents increasingly dominate automated program repair leaderboards, their internal decision-making processes remain largely opaque. This study presents a systematic "autopsy" of five prominent Software Engineering (SWE) agents—AutoCodeRover, Agentless, SWE-Agent, OpenHands, and MASAI—by analyzing their execution traces. We construct a unified taxonomy of agent behaviors, identify critical success factors such as bug localization and reproduction testing, and highlight a significant stylistic gap between AI-generated "band-aid" fixes and human-authored refactorings. Our findings suggest that while agents excel at simple tasks, they struggle with complex reasoning and vague requirements, pointing toward ensembling and semantically aligned solutions as future research directions.

Introduction

The rise of LLM-powered agents has transformed the landscape of automated software engineering. However, current benchmarks primarily focus on end-to-end success rates, treating agents as "black boxes." This lack of transparency obscures why agents fail, how their workflows differ, and whether their solutions align with professional development standards. This research addresses these gaps by investigating traceability—the mapping of discrete actions an agent takes from initial bug report analysis to final patch submission.

Methodology and Taxonomy

The study evaluates five representative agents across two architectural paradigms: workflow-based (Agentless, AutoCodeRover, MASAI) and open-process (SWE-Agent, OpenHands). The researchers synthesized these behaviors into a unified flow graph, identifying core strategies like iterative refinement and parallel sampling.

Figure 1: A unified flow graph synthesizing the behavioral taxonomy of five representative SWE agents.

The empirical analysis utilized SWE-bench Verified, a curated subset of 500 real-world GitHub issues. The methodology involved four primary lenses:

  1. Taxonomy Construction: Mapping agent actions to a unified framework.
  2. Trace Analysis: Examining trajectories of commands and file navigations.
  3. Ablation Studies: Testing the impact of bug localization on reproduction test generation.
  4. Code Clone Analysis: Comparing agent patches to human fixes using Levenshtein distance and qualitative review.

Key Insights: The Mechanics of Success

The analysis reveals that successful agent performance rests on three pillars: Bug Localization, Patch Generation, and Reproduction Testing. Failure in any single module typically leads to a task failure.

A significant bottleneck identified is the "Vague Description" wall. Agents struggle to generate reproduction tests when bug reports are imprecise. Interestingly, increasing the sampling temperature (asking the model to "try harder") does not resolve this; instead, it often leads to repetitive errors. Conversely, localization acts as a force multiplier; providing an agent with the specific buggy file drastically improves its ability to create valid test cases, as seen in tasks like sphinx-8475 where success rates jumped from 5/30 to 29/30 with localization.

Results and Comparative Analysis

The study highlights a stark performance drop-off as task complexity increases. While agents achieve up to 72.7% success on "Easy" tasks, their performance plummets to 19% on "Hard" tasks requiring significant human-equivalent effort.

Furthermore, there is surprisingly low overlap in the specific issues solved by different agents. In the "Moderate" category, only a small fraction of issues were resolved by all five agents.

Figure 3: Venn diagram illustrating the overlap of resolved issues among the five studied agents, highlighting the potential for ensembling strategies.

This lack of overlap suggests that different agent architectures possess unique strengths, making "ensembling" (combining multiple agent strategies) a promising path for improving overall robustness.

The Stylistic Gap and Future Directions

A qualitative review of 192 resolved issues uncovered a fundamental difference in coding philosophy. Agents tend to produce localized, minimal "band-aid" fixes (e.g., simple conditional checks). In contrast, human developers often perform broader refactorings to maintain code health. While 51% of agent patches were structurally similar to human fixes (Type-3 clones), the remaining patches often utilized "novel" or over-engineered approaches to pass tests without adhering to human stylistic norms.

Future work should focus on developing agents capable of holistic, semantically aligned refactoring and optimizing LLM call budgets for cost-effective real-world deployment.

This summary is based on the paper "Understanding Software Engineering Agents Through the Lens of Traceability: An Empirical Study."

Summary updated

BibTeX
@misc{ceka2025understanding,
  author = {Ira Ceka and Saurabh Pujar and Shyam Ramji and Luca Buratti and Gail E. Kaiser and Baishakhi Ray},
  title = {{Understanding Software Engineering Agents Through the Lens of Traceability: An Empirical Study}},
  year = {2025},
  eprint = {2506.08311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.08311},
}
Figure