NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Process-Centric Analysis of Agentic Software Systems

Shuyang Liu, Yang Chen, Rahul Krishna, Saurabh Sinha, Jatin Ganhotra, Reyhaneh Jabbarvand

Abstract

As Large Language Model (LLM) agents increasingly automate complex software engineering tasks, evaluating their performance remains largely outcome-centric. This "black box" approach obscures the underlying reasoning processes and inefficiencies that lead to failure. This paper introduces Graphectory and Langutory, two novel frameworks designed to visualize, quantify, and monitor the internal trajectories of software agents. By representing execution logs as structured graphs and compressed phase-based languages, we enable real-time process monitoring. Our evaluation on SWE-bench Verified demonstrates that process-level interventions can improve agent success rates by up to 23.5% while significantly reducing computational overhead.

Introduction

We are currently witnessing a "Cambrian explosion" of agentic software systems—autonomous tools like SWE-agent and OpenHands capable of fixing bugs and generating code. Despite their promise, current evaluation methodologies are almost entirely binary: did the agent pass the benchmark or not? This outcome-centric view hides critical flaws. An agent might succeed through redundant, brute-force steps or fail by becoming trapped in infinite loops. Linear execution logs are difficult for humans to parse and nearly impossible to analyze systematically at scale. To bridge this gap, we propose a process-centric approach that treats agent trajectories as structured data, allowing for the detection of inefficiencies and the implementation of real-time corrective interventions.

Methodology: Graphectory and Langutory

To move beyond linear logs, we propose a two-tier representation system for agent behavior:

1. Graphectory

A Graphectory is a cyclic directed graph where nodes represent discrete agent actions (e.g., ls, edit, python test.py). It encodes two distinct types of edges: temporal edges, representing the chronological sequence of actions, and structural edges, representing the hierarchical relationship within the file system (e.g., navigating from a directory to a specific file). This structure allows us to apply graph-theoretic metrics to quantify the complexity and efficiency of an agent's path.

Figure 5: Formal definitions of Graphectory metrics used to quantify agent behavior.

2. Langutory

Langutory is a compressed, human-readable "language" of trajectories. It maps raw actions into three logical phases: Localization (L), Patching (P), and Validation (V). Using run-length encoding, a trajectory can be summarized concisely (e.g., $L_5P_2V$ indicates five steps of localization followed by two steps of patching and one of validation). This abstraction facilitates the identification of high-level strategy shifts and behavioral patterns.

Figure 4: Comparison of Graphectory and Langutory representations for two different agent frameworks, illustrating the mapping of actions to L, P, and V phases.

Experimental Setup and Datasets

Our study utilized SWE-bench Verified, a curated subset of 500 real-world GitHub issues. We generated a dataset of 4,000 trajectories by pairing two agent frameworks (SWE-agent and OpenHands) with four backbone LLMs: Claude 3.5 Sonnet, DeepSeek-V3, DeepSeek-R1, and Devstral-small-2505. This diverse set allowed us to compare process efficiency across frontier reasoning models and specialized coding models.

Key Insights

  • Complexity-Capability Correlation: Stronger models, such as Claude 3.5 Sonnet, produce more complex Graphectories. They engage in more thorough exploration and validation, reflecting a more robust internal reasoning process compared to weaker models that may jump prematurely to a fix.
  • Success vs. Efficiency: Success does not imply efficiency. Many successful runs contained "anti-patterns" such as Scroll (redundant viewing of file segments) or ZoomOut (repetitive directory navigation). These inefficiencies increase latency and token costs without improving outcomes.
  • The "Chaotic" Failure Mode: Unresolved issues typically exhibit "chaotic" Langutory patterns, characterized by frequent, unproductive oscillations between localization and patching without ever reaching a validation phase.

Results and Impact

By implementing an Online Monitor that detects loops or plan violations in real-time, we achieved significant performance gains:

  • Performance Boost: Real-time interventions improved resolution rates by 6.9% to 23.5% for previously "problematic" instances prone to stagnation.
  • Trajectory Optimization: The system significantly reduced the number of steps taken, lowering computational costs with negligible analysis overhead (under 10ms).
  • Scalability: Our automated pipeline analyzed 4,000 complex trajectories in under four minutes, a task that would require weeks of manual human labor.

Conclusion

Process-centric analysis transforms agent evaluation from a "black box" into a transparent, actionable diagnostic tool. By identifying and correcting behavioral anti-patterns in real-time, we can significantly enhance the reliability and efficiency of autonomous software agents. Future work will focus on developing structure-aware tools, such as agents that navigate via Abstract Syntax Trees (AST), to further minimize the process-level inefficiencies identified in this study.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SWE-bench VerifiedPhase Flow AnalysisAverage number of consecutive phase transitions8.39 transitionsSoftware Engineering
Source quote
L411: To better illustrate the phase flow of the studied \langleagent, model\rangle pairs, we present the aggregated phase transition sequence (\mathcal{PTS}) of each pair across the 500 SWE-bench Verified issues for the first 10 phase transitions (Figure~\ref{fig:sankey-phases}). The average number of consecutive phase transitions among the studied agents is 8.39, making the cut-off of 10 reasonable to reflect overall phase transition flow.
BibTeX
@article{liu2026process,
  author = {Shuyang Liu and Yang Chen and Rahul Krishna and Saurabh Sinha and Jatin Ganhotra and Reyhaneh Jabbarvand},
  title = {{Process-Centric Analysis of Agentic Software Systems}},
  journal = {Proc. ACM Program. Lang.},
  year = {2026},
  doi = {10.1145/3798271},
}

Loading related content...

Figure