Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories
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
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2025Demystifying Long Chain-of-Thought Reasoning in LLMscited by 323
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 255
- 2024Trial and Error: Exploration-Based Trajectory Optimization for LLM Agentscited by 194
- 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 132
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 129
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
- 2023Can Large Language Models Really Improve by Self-critiquing Their Own Plans?cited by 107
- 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 95
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
19 more
- 2024SpecRover: Code Intent Extraction via LLMscited by 71
- 2024MarsCode Agent: AI-native Automated Bug Fixingcited by 68
- 2025Interactive Debugging and Steering of Multi-Agent AI Systemscited by 68
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024AgentBank: Towards Generalized LLM Agents via Fine-Tuning on 50000+ Interaction Trajectoriescited by 56
- 2024Optima: Optimizing Effectiveness and Efficiency for LLM-Based Multi-Agent Systemcited by 40
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
- 2025EnvBench: A Benchmark for Automated Environment Setupcited by 36
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debuggingcited by 35
- 2025Evaluating Agent-based Program Repair at Googlecited by 35
- 2024TDD-Bench Verified: Can LLMs Generate Tests for Issues Before They Get Resolved?cited by 32
- 2024From Novice to Expert: LLM Agent Policy Optimization via Step-wise Reinforcement Learningcited by 21
- 2024Beyond pip install: Evaluating LLM Agents for the Automated Installation of Python Projectscited by 21
- 2025Agentic Bug Reproduction for Effective Automated Program Repair at Googlecited by 20
- 2025Agentic AI Software Engineers: Programming with Trustcited by 19
- 2025Issue2Test: Generating Reproducing Test Cases from Issue Reportscited by 18
- 2024De-Hallucinator: Mitigating LLM Hallucinations in Code Generation Tasks via Iterative Groundingcited by 14
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
- 2024Debug Smarter, Not Harder: AI Agents for Error Resolution in Computational Notebookscited by 5
Built on by
Citing papers per year: 2025: 7; 2026: 68.
75 papers.
Sort:
By area:
- 2026SWE-chat: Coding Agent Interactions From Real Users in the Wildcited by 36
- 2026Agentic Much? Adoption of Coding Agents on GitHubcited by 31
- 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectoriescited by 30
- 2025Process-Centric Analysis of Agentic Software Systemscited by 24
- 2026ContextBench: A Benchmark for Context Retrieval in Coding Agentscited by 23
- 2026From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flawscited by 21
- 2026From Flat Logs to Causal Graphs: Hierarchical Failure Attribution for LLM-based Multi-Agent Systemscited by 17
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architecturescited by 15
- 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injectioncited by 13
- 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluationcited by 13
- 2026Wink: Recovering from Misbehaviors in Coding Agentscited by 11
- 2026CodeTracer: Towards Traceable Agent Statescited by 11
38 more
- 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systemscited by 11
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 11
- 2026Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failurecited by 9
- 2026FALAT: Tracing Failures in LLM Agent Trajectories via Dependency-Guided Searchcited by 9
- 2026AgentStepper: Interactive Debugging of Software Development Agentscited by 8
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labelingcited by 6
- 2026Promises, Perils, and (Timely) Heuristics for Mining Coding Agent Activitycited by 6
- 2026Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repaircited by 6
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agentscited by 6
- 2026Are Coding Agents Generating Over-Mocked Tests? An Empirical Studycited by 5
- 2026Coherence Collapse: Diagnosing Why Code Agents Fail After Reaching the Right Codecited by 5
- 2026MASPrism: Lightweight Failure Attribution for Multi-Agent Systems Using Prefill-Stage Signalscited by 5
- 2026What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agentscited by 5
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agentscited by 4
- 2026Debugging the Debuggers: Failure-Anchored Structured Recovery for Software Engineering Agentscited by 4
- 2026Same Signal, Different Semantics: A Cross-Framework Behavioral Analysis of Software Engineering Agentscited by 4
- 2026LLM-as-Code: Agentic Programming for Agent Harnesscited by 4
- 2026GRADE: Graph Representation of LLM Agent Dependency and Executioncited by 4
- 2025Designing LLM-based Multi-Agent Systems for Software Engineering Tasks: Quality Attributes, Design Patterns and Rationalecited by 3
- 2026RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbationscited by 3
- 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Taskscited by 3
- 2026Humans are Missing from AI Coding Agent Researchcited by 3
- 2025Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repaircited by 2
- 2025From Correctness to Collaboration: Toward a Human-Centered Framework for Evaluating AI Agent Behavior in Software Engineeringcited by 2
- 2026Towards Structured, State-Aware, and Execution-Grounded Reasoning for Software Engineering Agentscited by 2
- 2026PerfCodeBench: Benchmarking LLMs for System-Level High-Performance Code Optimizationcited by 2
- 2026TraceView: Interactive Visualization of Agentic Program Repair Trajectoriescited by 2
- 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agentscited by 2
- 2025SIADAFIX: issue description response for adaptive program repaircited by 1
- 2026CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systemscited by 1
- 2026Can AI Agents Generate Microservices? How Far are We?cited by 1
- 2026Reproducible, Explainable, and Effective Evaluations of Agentic AI for Software Engineeringcited by 1
- 2026Towards Knowledgeable Deep Research: Framework and Benchmarkcited by 1
- 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agentscited by 1
- 2026Understanding Conversational Patterns in Multi-agent Programming: A Case Study on Fibonacci Game Developmentcited by 1
- 2026LogicHunter: Testing LLM Agent Frameworks with an Agentic Oraclecited by 1
- 2026Inside the Skill Market: From Software Engineering Activities to Reusable Agent Skillscited by 1
50 most cited of 75 All 75 (JSON)
- 2026AgentBug-Smith: Automatically Reproducing Real-World Harness Bugs in Agentic Systems29 Sep 2026
- 2026Analyzing and Mitigating Cost-Inefficient Behaviors in Coding Agents25 Sep 2026
- 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?23 Sep 2026
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing21 Sep 2026
- 2026AgentPProf: Semantic Profiler for Long Horizon AI Agents14 Sep 2026
- 2026openJiuwen: Beyond Static Harnesses for Long-Horizon Coding Agents28 Aug 2026
- 2026Beyond Fault Localization: A Trajectory-Level Study of LLM Agents for Microservice Root Cause Analysis21 Aug 2026
- 2026The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Tasks17 Aug 2026
- 2026Towards Risk-free AI Agent Deployment17 Aug 2026
- 2026Understanding the Architecture of Coding Agents: An Exploratory Study Using a Research Prototype11 Aug 2026
- 2026SkillSentry: Reliable Skill Execution for LLM Agents via Runtime Assurance10 Aug 2026
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications9 Aug 2026
38 more
- 2026ArtAnno: Annotating Implicit Semantics in Artworks through LLM Agent-Driven Bidirectional Human-AI Augmentation5 Aug 2026
- 2026Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks4 Aug 2026
- 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agents1 Aug 2026
- 2026Measuring Cross-Task Behavioral Consistency in Language Model Agents31 Jul 2026
- 2026Validation Evidence in LLM Repair Agents: How Much of What Passes Actually Tests the Bug?30 Jul 2026
- 2026Looping Is Not Reliability: State-Bound Evidence and Typed Revision Contracts for Agentic Code Repair27 Jul 2026
- 2026Where Is the Tradeoff in Using Third-Party API Routers for Agentic Software Development?26 Jul 2026
- 2026The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages24 Jul 2026
- 2026How Do Practitioners Build SE Agents? Insights from a Mixed-Methods Study12 Jul 2026
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectories10 Jul 2026
- 2026Inside the Skill Market: From Software Engineering Activities to Reusable Agent Skills10 Jul 2026
- 2026LogicHunter: Testing LLM Agent Frameworks with an Agentic Oracle7 Jul 2026
- 2026What Resolve Rate Hides: Trajectory Structure Diagnostics for Coding Agents7 Jul 2026
- 2026Latent Programming Horizons in Coding Agents6 Jul 2026
- 2026A Comprehensive Study of Implementation Bugs in Multi-modal Agents6 Jul 2026
- 2026Humans are Missing from AI Coding Agent Research4 Jul 2026
- 2026Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inference3 Jul 2026
- 2026GRADE: Graph Representation of LLM Agent Dependency and Execution22 Jun 2026
- 2026TraceView: Interactive Visualization of Agentic Program Repair Trajectories20 Jun 2026
- 2026LLM-as-Code: Agentic Programming for Agent Harness14 Jun 2026
- 2026Projecting the Emerging Mindset of SWE Agent by Launching a Wild Code Understanding Journey7 Jun 2026
- 2026From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flaws4 Jun 2026
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agents3 Jun 2026
- 2026FALAT: Tracing Failures in LLM Agent Trajectories via Dependency-Guided Search30 May 2026
- 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systems26 May 2026
- 2026RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations25 May 2026
- 2026Understanding Conversational Patterns in Multi-agent Programming: A Case Study on Fibonacci Game Development22 May 2026
- 2026Same Signal, Different Semantics: A Cross-Framework Behavioral Analysis of Software Engineering Agents18 May 2026
- 2026PerfCodeBench: Benchmarking LLMs for System-Level High-Performance Code Optimization13 May 2026
- 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluation13 May 2026
- 2026Debugging the Debuggers: Failure-Anchored Structured Recovery for Software Engineering Agents9 May 2026
- 2026MASPrism: Lightweight Failure Attribution for Multi-Agent Systems Using Prefill-Stage Signals8 May 2026
- 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection5 May 2026
- 2026SWE-chat: Coding Agent Interactions From Real Users in the Wild22 Apr 2026
- 2026CodeTracer: Towards Traceable Agent States13 Apr 2026
- 2026ORACLE-SWE: Quantifying the Contribution of Oracle Information Signals on SWE Agents9 Apr 2026
- 2026Towards Knowledgeable Deep Research: Framework and Benchmark9 Apr 2026
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architectures3 Apr 2026
50 newest of 75 All 75 (JSON)
- 2026SWE-chat: Coding Agent Interactions From Real Users in the Wildcited by 36
- 2026Agentic Much? Adoption of Coding Agents on GitHubcited by 31
- 2025Understanding Code Agent Behaviour: An Empirical Study of Success and Failure Trajectoriescited by 30
- 2025Process-Centric Analysis of Agentic Software Systemscited by 24
- 2026ContextBench: A Benchmark for Context Retrieval in Coding Agentscited by 23
- 2026From Failed Trajectories to Reliable LLM Agents: Diagnosing and Repairing Harness Flawscited by 21
- 2026From Flat Logs to Causal Graphs: Hierarchical Failure Attribution for LLM-based Multi-Agent Systemscited by 17
- 2026Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architecturescited by 15
- 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injectioncited by 13
- 2026Wink: Recovering from Misbehaviors in Coding Agentscited by 11
- 2026TrajAudit: Automated Failure Diagnosis for Agentic Coding Systemscited by 11
- 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 11
12 most cited of 64 All 64 (JSON)
- 2026AgentBug-Smith: Automatically Reproducing Real-World Harness Bugs in Agentic Systems29 Sep 2026
- 2026Analyzing and Mitigating Cost-Inefficient Behaviors in Coding Agents25 Sep 2026
- 2026RECLAIM: Can Agents Reproduce the Claims of Machine Learning Papers?23 Sep 2026
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing21 Sep 2026
- 2026openJiuwen: Beyond Static Harnesses for Long-Horizon Coding Agents28 Aug 2026
- 2026Beyond Fault Localization: A Trajectory-Level Study of LLM Agents for Microservice Root Cause Analysis21 Aug 2026
- 2026The Working Set of a Coding Agent: Coherence Debt in Repository-Scale Tasks17 Aug 2026
- 2026Towards Risk-free AI Agent Deployment17 Aug 2026
- 2026Understanding the Architecture of Coding Agents: An Exploratory Study Using a Research Prototype11 Aug 2026
- 2026SkillSentry: Reliable Skill Execution for LLM Agents via Runtime Assurance10 Aug 2026
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications9 Aug 2026
- 2026ArtAnno: Annotating Implicit Semantics in Artworks through LLM Agent-Driven Bidirectional Human-AI Augmentation5 Aug 2026
12 newest of 64 All 64 (JSON)
- 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluationcited by 13
- 2026CodeTracer: Towards Traceable Agent Statescited by 11
- 2026Debugging the Debuggers: Failure-Anchored Structured Recovery for Software Engineering Agentscited by 4
- 2026RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbationscited by 3
- 2026PerfCodeBench: Benchmarking LLMs for System-Level High-Performance Code Optimizationcited by 2
- 2026Inside the Skill Market: From Software Engineering Activities to Reusable Agent Skillscited by 1
- 2026Beyond Text-to-SQL: Can LLMs Really Debug Enterprise ETL SQL?cited by 0
- 2026AgentPProf: Semantic Profiler for Long Horizon AI Agentscited by 0
- 2026AgentPProf: Semantic Profiler for Long Horizon AI Agents14 Sep 2026
- 2026Inside the Skill Market: From Software Engineering Activities to Reusable Agent Skills10 Jul 2026
- 2026RepoMirage: Probing Repository Context Reasoning in Code Agents with Perturbations25 May 2026
- 2026PerfCodeBench: Benchmarking LLMs for System-Level High-Performance Code Optimization13 May 2026
- 2026AgentLens: Revealing The Lucky Pass Problem in SWE-Agent Evaluation13 May 2026
- 2026Debugging the Debuggers: Failure-Anchored Structured Recovery for Software Engineering Agents9 May 2026
- 2026CodeTracer: Towards Traceable Agent States13 Apr 2026
- 2026Beyond Text-to-SQL: Can LLMs Really Debug Enterprise ETL SQL?26 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026Agentic AI in the Software Development Lifecycle: Architecture, Empirical Evidence, and the Reshaping of Software Engineering
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System
- 2024Large Language Model-Based Agents for Software Engineering: A Survey
- 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Ahead
- 2026SelfHeal: Empirical Fix Pattern Analysis and Bug Repair in LLM Agents