Understanding Agent-Reactive Bugs at the Model-Harness Boundary: An Empirical Study of LLM Agent Issue Reports

📅 2026-07-17
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the underexplored challenge of “agent-reactive” (AR) defects in large language model (LLM) agents—subtle failures arising from interactions between model outputs and external frameworks that are difficult to localize and reproduce. The work presents the first systematic characterization of AR defects, introducing a two-dimensional taxonomy based on symptom manifestation and triggering behavior, derived from manual analysis of 255 defect reports across Codex, Gemini-CLI, LangChain, and CrewAI. Findings reveal that AR defects often manifest as silent errors lacking clear test oracles, with LLM output stochasticity further complicating reproducibility. Notably, users tend to implement defensive measures on the framework side, while developers frequently attribute faults to the model or delayed responses, highlighting a critical need for collaborative debugging mechanisms. This research provides an empirical foundation and structured framework for understanding, detecting, and mitigating AR defects.
📝 Abstract
LLM agents span command-line interfaces (e.g., Codex) and agent frameworks (e.g., LangChain), integrating backend LLMs with harness code that parses model outputs, controls agent loops, and manages context. Both the harness and LLM-generated responses jointly shape an agent's execution. This architecture gives rise to bugs that cannot be readily understood by inspecting either component alone, because some bugs occur only when a particular LLM response elicits an abnormal reaction from the agent. Prior empirical studies of agent bugs have largely attributed failures either to limited model capabilities or to harness-side defects, such as outdated APIs and configuration misalignment, without characterizing these AR bugs. We conduct the first empirical study focused on agent-reactive (AR) bugs. Through manual analysis of 255 bug reports from Codex, Gemini-CLI, LangChain, and CrewAI, we construct a two-axis taxonomy covering observable symptoms and the LLM behaviors that trigger them. Our findings show that many AR bugs manifest as silent errors without well-defined test oracles, which makes detection difficult. The stochasticity of LLM responses further complicates bug reproduction. We additionally examine fixes proposed by users and implemented by developers. This analysis exposes a mismatch: users frequently advocate harness-side guardrails, whereas developers may attribute the issue to the LLM or respond slowly to user-proposed fixes. These findings point to the need for mechanisms that help users and developers understand the root causes and resolutions of AR bugs. Overall, the study highlights challenges specific to LLM agents and motivates the design of test oracles, reproduction support, and fault-localization techniques for AR bugs.
Problem

Research questions and friction points this paper is trying to address.

agent-reactive bugs
LLM agents
model-harness boundary
bug detection
fault localization
Innovation

Methods, ideas, or system contributions that make the work stand out.

agent-reactive bugs
LLM agents
empirical study
fault localization
test oracles