mlsanityData to 7 Oct 2026

Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories

arXiv 2506.18824 ↗First posted 23 Jun 2025cs.SE cs.AIcited by 75

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

Large Language Model (LLM)-based agents are increasingly employed to automate complex software engineering tasks, such as program repair and issue resolution. These agents operate by autonomously generating natural language thoughts, invoking external tools, and iteratively refining their solutions. Despite their widespread adoption, the internal decision-making processes of these agents remain largely unexplored, limiting our understanding of their operational dynamics and failure modes. In this paper, we present a large-scale empirical study of the thought-action-result trajectories of three state-of-the-art LLM-based agents: RepairAgent, AutoCodeRover, and OpenHands. We unify their interaction logs into a common format, capturing 120 trajectories and 2,822 LLM interactions focused on program repair and issue resolution. Our study combines quantitative analyses of structural properties, action patterns, and token usage with qualitative assessments of reasoning coherence and feedback integration. We identify key trajectory characteristics, such as iteration counts and token consumption, recurring action sequences, and the semantic coherence of thoughts, actions, and their results. Our findings reveal behavioral motifs and anti-patterns that distinguish successful from failed executions, providing actionable insights for improving agent design, including prompting strategies, failure diagnosis, and anti-pattern detection. We release our dataset and annotation framework to support further research on transparent and robust autonomous software engineering agents.

Key facts. Cited by 75 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 31 of its 64 references that are in the map. First posted on arXiv 23 Jun 2025.

Builds on

31 of 64 references.

References · 31

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
  3. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  4. 2025Demystifying Long Chain-of-Thought Reasoning in LLMscited by 323
  5. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
  6. 2024Trial and Error: Exploration-Based Trajectory Optimization for LLM Agentscited by 194
  7. 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 132
  8. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
  9. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
  10. 2023Can Large Language Models Really Improve by Self-critiquing Their Own Plans?cited by 107
  11. 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 95
  12. 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
19 more
  1. 2024SpecRover: Code Intent Extraction via LLMscited by 71
  2. 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
  3. 2025Interactive Debugging and Steering of Multi-Agent AI Systemscited by 68
  4. 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
  5. 2024AgentBank: Towards Generalized LLM Agents via Fine-Tuning on 50000+ Interaction Trajectoriescited by 56
  6. 2024Optima: Optimizing Effectiveness and Efficiency for LLM-Based Multi-Agent Systemcited by 40
  7. 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
  8. 2025EnvBench: A Benchmark for Automated Environment Setupcited by 36
  9. 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debuggingcited by 35
  10. 2025Evaluating Agent-based Program Repair at Googlecited by 35
  11. 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
  12. 2024From Novice to Expert: LLM Agent Policy Optimization via Step-wise Reinforcement Learningcited by 21
  13. 2024Beyond pip install: Evaluating LLM Agents for the Automated Installation of Python Projectscited by 21
  14. 2025Agentic Bug Reproduction for Effective Automated Program Repair at Googlecited by 20
  15. 2025Agentic AI Software Engineers: Programming with Trustcited by 19
  16. 2025Issue2Test: Generating Reproducing Test Cases from Issue Reportscited by 18
  17. 2024De-Hallucinator: Mitigating LLM Hallucinations in Code Generation Tasks via Iterative Groundingcited by 14
  18. 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
  19. 2024Debug Smarter, Not Harder: AI Agents for Error Resolution in Computational Notebookscited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 68.

75 papers.

Sort:

By area:

  1. 2026SWE-chat: Coding Agent Interactions From Real Users in the Wildcited by 36
  2. 2026Agentic Much? Adoption of Coding Agents on GitHubcited by 31
  3. 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectoriescited by 30
  4. 2025Process-Centric Analysis of Agentic Software Systemscited by 24
  5. 2026ContextBench: A Benchmark for Context Retrieval in Coding Agentscited by 23
  6. 2026From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flawscited by 21
  7. 2026From Flat Logs to Causal Graphs: Hierarchical Failure Attribution for LLM-based Multi-Agent Systemscited by 17
  8. 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architecturescited by 15
  9. 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injectioncited by 13
  10. 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluationcited by 13
  11. 2026Wink: Recovering from Misbehaviors in Coding Agentscited by 11
  12. 2026CodeTracer: Towards Traceable Agent Statescited by 11
38 more
  1. 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systemscited by 11
  2. 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 11
  3. 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failurecited by 9
  4. 2026FALAT: Tracing Failures in LLM Agent Trajectories via Dependency-Guided Searchcited by 9
  5. 2026AgentStepper: Interactive Debugging of Software Development Agentscited by 8
  6. 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
  7. 2026When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labelingcited by 6
  8. 2026Promises, Perils, and (Timely) Heuristics for Mining Coding Agent Activitycited by 6
  9. 2026Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repaircited by 6
  10. 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agentscited by 6
  11. 2026Are Coding Agents Generating Over-Mocked Tests? An Empirical Studycited by 5
  12. 2026Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Codecited by 5
  13. 2026MASPrism: Lightweight Failure Attribution for Multi-Agent Systems Using Prefill-Stage Signalscited by 5
  14. 2026What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agentscited by 5
  15. 2026CodeScout: Contextual Problem Statement Enhancement for Software Agentscited by 4
  16. 2026Debugging the Debuggers: Failure-Anchored Structured Recovery for Software Engineering Agentscited by 4
  17. 2026Same Signal, Different Semantics: A Cross-Framework Behavioral Analysis of Software Engineering Agentscited by 4
  18. 2026LLM-as-Code: Agentic Programming for Agent Harnesscited by 4
  19. 2026GRADE: Graph Representation of LLM Agent Dependency and Executioncited by 4
  20. 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationalecited by 3
  21. 2026RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbationscited by 3
  22. 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Taskscited by 3
  23. 2026Humans are Missing from AI Coding Agent Researchcited by 3
  24. 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repaircited by 2
  25. 2025From Correctness to Collaboration: Toward a Human-Centered Framework for Evaluating AI Agent Behavior in Software Engineeringcited by 2
  26. 2026Towards Structured, State-Aware, and Execution-Grounded Reasoning for Software Engineering Agentscited by 2
  27. 2026PerfCodeBench: Benchmarking LLMs for System-Level High-Performance Code Optimizationcited by 2
  28. 2026TraceView: Interactive Visualization of Agentic Program Repair Trajectoriescited by 2
  29. 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agentscited by 2
  30. 2025SIADAFIX: issue description response for adaptive program repaircited by 1
  31. 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
  32. 2026Can AI Agents Generate Microservices? How Far are We?cited by 1
  33. 2026Reproducible, Explainable, and Effective Evaluations of Agentic AI for Software Engineeringcited by 1
  34. 2026Towards Knowledgeable Deep Research: Framework and Benchmarkcited by 1
  35. 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agentscited by 1
  36. 2026Understanding Conversational Patterns in Multi-agent Programming: A Case Study on Fibonacci Game Developmentcited by 1
  37. 2026LogicHunter: Testing LLM Agent Frameworks with an Agentic Oraclecited by 1
  38. 2026Inside the Skill Market: From Software Engineering Activities to Reusable Agent Skillscited by 1

50 most cited of 75 All 75 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026Agentic AI in the Software Development Lifecycle: Architecture, Empirical Evidence, and the Reshaping of Software Engineering
  2. 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration
  3. 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System
  4. 2024Large Language Model-Based Agents for Software Engineering: A Survey
  5. 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering
  6. 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities
  7. 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead
  8. 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents