The increasing deployment of Large Language Model (LLM) agents for complex software engineering tasks has created a need to understand their problem-solving behaviours beyond simple success metrics. While these agents demonstrate impressive capabilities in automated issue resolution, their decision-making processes remain largely opaque. This paper presents an empirical study of agent trajectories, namely the execution traces capturing the steps agents take when attempting to resolve software issues. We analyse trajectories from three state-of-the-art code agents (OpenHands, SWE-agent, and Prometheus) on the SWE-Bench benchmark, examining both successful and failed attempts. Our investigation reveals several key insights into agent behaviour. First, we identify how distinct problem-solving strategies, such as defensive programming and context gathering, enable success in different scenarios. Second, we find that failed trajectories are consistently longer and exhibit higher variance than successful ones, with failure patterns differing significantly between agents. Third, our fault localisation analysis shows that while most trajectories correctly identify problematic files (72-81\% even in failures), success depends more on achieving approximate rather than exact code modifications. These and other findings unveiled by our study, provide a foundation for understanding agent behaviour through trajectory analysis, contributing to the development of more robust and interpretable autonomous software engineering systems.
State-Dependent Safety Failures in Multi-Turn Language Model Interaction
School of Cyber Science and Technology, University of Science and Technology of China, China(中国科学技术大学信息科学与技术学院);Nanyang Technological University, Singapore(南洋理工大学);Tsinghua University, Beijing, China(清华大学);Beijing Electronic Science and Technology Institute, Beijing, China(北京电子科技研究所)
Coherent Without Grounding, Grounded Without Success: Observability and Epistemic Failure
Institut Català de Nanociència i Nanotecnologia (ICN2)(加泰罗尼亚纳米科学与纳米技术研究所(ICN2));Artificial Intelligence Research Institute (IIIA-CSIC)(人工智能研究所(IIIA-CSIC))
LLMs Encode Their Failures: Predicting Success from Pre-Generation Activations
Oxford Internet Institute, University of Oxford(牛津大学牛津互联网研究所);FLAIR, University of Oxford(牛津大学FLAIR);Department of Computer Science, University College London(伦敦大学学院计算机科学系)
SkillAdaptor: Self-Adapting Skills for LLM Agents from Trajectories
Zhejiang University(浙江大学);Ant Digital Technologies, Ant Group(蚂蚁集团数字技术部);Zhejiang University - Ant Group Joint Laboratory of Knowledge Graph(浙江大学-蚂蚁集团知识图谱联合实验室)
Fail-Fast, Restart-Smart: Early Failure Prediction and Restart for SWE Agentic Tasks
Singapore Management University(新加坡管理大学);University of Alberta(阿尔伯塔大学);Nanjing University of Science and Technology(南京理工大学);Tel Aviv University(特拉维夫大学)
"So Am I Dr. Frankenstein? Or Were You a Monster the Whole Time?": Mitigating Software Project Failure With Loss-Aversion-Aware Development Methodologies