arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.32483

When Agents Fail: Model or Harness--Who's to Blame?

Shao Zhang, Hangfan Zhang, Yuanyuan Shi, Hao Li, Min-Le Su, Kangcong Li, Jingping Wang, Chunjiang Mu, Chen Zhang, Yang Chen, Bo Zhang, Shuyue Hu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Shao Zhang, Hangfan Zhang, Yuanyuan Shi, Hao Li, Min-Le Su, Kangcong Li, Jingping Wang, Chunjiang Mu, Chen Zhang, Yang Chen, Bo Zhang, Shuyue Hu

Shanghai Artificial Intelligence Laboratory

{zhangshao, hushuyue}@pjlab.org.cn

Figure

(a)

Figure

(b)

Figure

(c)

Figure 1 | Overview of Model-Harness Fitness. (a) Model-specific fit captures task achievement through valid completion; DeepSeek has the highest average Fit across harnesses. (b) Cross-model fit summarizes overall harness suitability across models; OpenCode ranks first. (c) Task performance versus token consumption: greater token use does not necessarily correspond to better outcomes. Panel (a) uses four models on four shared benchmarks (SWE-bench-45, Terminal-Bench 2, VitaBench, and LOCA-Bench); (b,c) use three models on six benchmarks.

Abstract

LLM agents combine models with execution harnesses, so agentic benchmark performance reflects their joint behavior. We argue that harnesses should therefore be evaluated through their interactions with underlying models. We develop a framework combining five complementary measures: (i) Valid Completion Rate (VCR), how reliably agents finish normally and deliver evaluable results, irrespective of task correctness; (ii) Model–Harness Fit, how well a harness supports task achievement through valid completion for a given model; (iii) Cross-Model Fit, a harness’s overall suitability across evaluated models; (iv) Interaction Residuals, pairing-specific execution strengths and weaknesses hidden by component-level summaries; and (v) Token Load, the token demands of agent execution, including failed attempts. We evaluate four general-purpose harnesses (OpenCode, Codex CLI, Pi CLI, and DeepAgents) with four core models, plus two fixed native model–harness systems, on six benchmarks covering context management, tool use, long-context planning, multimodal interaction, and artifact handoff. Including native references and stress conditions, 111 evaluation settings yield 52,168 trajectories. Harness rankings vary across models and benchmarks; task performance and valid completion can favor different pairings, and similar task scores can accompany distinct execution profiles. OpenCode ranks first in cross-model performance, while DeepSeek V4 Flash Preview maintains consistently high Mean VCR across harnesses on the shared four-benchmark panel. These findings support evaluating model–harness interactions, training transferable harness-use capabilities in models, and harness designs adapted to the model and task.

1. Introduction

Classical views describe intelligent agents as goal-oriented systems that continuously perceive their environment, maintain internal state, select actions, and improve behavior through feedback (Wang et al., 2024; Wooldridge and Jennings, 1995). An LLM agent implements this paradigm by integrating a large language model (LLM) into an executable system for perception, reasoning, and action in external environments (Yao et al., 2023). At the system level, an LLM agent combines its model with an execution layer, the agent harness, that connects the model to the environment (Guo et al., 2026; Kwa et al., 2025; Yao et al., 2026). The harness provides mechanisms for observation processing, context management, tool and action interfaces, workflow control, state management, execution, evaluation, and error handling. By controlling how information is presented to the model and how its outputs are executed, the harness shapes agent behavior and task performance (Zhang et al., 2025b).

Under this system view, end-to-end benchmark performance reflects the joint behavior of the model–harness system rather than model capability alone (Yang et al., 2024; Yao et al., 2026). Yet most benchmarks remain task-centric, evaluating fixed model–harness configurations by task success or aggregate reward while treating the harness as part of the setup. These evaluations summarize system-level success; execution diagnostics and crossed comparisons provide complementary views of performance sources. Failures may reflect insufficient model capability, ineffective harness use, or harness limitations in observation processing, action interfaces, state management, or recovery (Ma et al., 2024; Yao et al., 2026; Zhu et al., 2026). An empirical issue study reports failures occurring only when particular model behaviors interact with harness parsing, control flow, or context handling (Chen et al., 2026). Conversely, high performance may partly reflect the harness’s task-specific workflows or additional computation (Lee et al., 2026; Lou et al., 2026). Controlled studies show that changing harnesses can alter performance and rankings with models and tasks fixed (Yao et al., 2026; Zhu et al., 2026). Understanding agent failure therefore requires examining the model, the harness, and their particular pairing through crossed comparisons and execution evidence. This assessment distinguishes failure to solve the task from abnormal termination or invalid evaluator handoff: a run may complete validly without solving the task, or earn task credit despite abnormal termination.

The missing object of evaluation lies at the model–harness boundary. A model’s harness-use capability depends on how effectively it can interact with a given harness: the same interface, action space, or feedback mechanism may be easy for one model to use but challenging for another, while the same model may behave differently under different harness designs (Yang et al., 2024; Yao et al., 2026). Accordingly, harness difficulty should be understood as a model-dependent interaction cost introduced by the harness’s observation format, action interface, state management, control flow, and recovery mechanisms. When this cost exceeds the model’s harness-use capability, the harness may prevent the model from realizing its underlying capabilities; when the harness provides extensive task-specific support, it may improve performance by contributing part of the task-solving process. Existing task-level evaluations conflate these effects into a single outcome, making it difficult to distinguish model capability from harness effects (Messick, 1995; Yao et al., 2026; Zhu et al., 2026). Therefore, evaluating agents requires examining both task achievement and valid completion, together with how these outcomes vary across model–harness pairings.

We develop metrics to analyze model–harness interaction through task performance and operational validity. Valid Completion Rate (VCR) measures how often attempts terminate normally with valid evaluator handoff, regardless of task correctness. Model–harness Fit and Cross-Model Fit summarize task performance from valid completions for individual models and across models. We analyze their diagnostic value and robustness, failure patterns, and resource use. We implement a common agent adapter for this study, preserving native execution loops under matched tasks and controlled execution conditions. We cross four general-purpose harnesses—DeepAgents, OpenCode, Pi CLI, and Codex

(a) Crossed evaluation

(b) Joint assessment

(c) Fit aggregation

Figure

Figure 2 | Overview of the model–harness evaluation framework.

CLI—with multiple models on six benchmarks: SWE-bench-45 (Chowdhury et al., 2024; Jimenez et al., 2024), Terminal-Bench 2 (Merrill et al., 2026), VitaBench (He et al., 2026), LOCA-Bench (Zeng et al., 2026), ClawMark (Meng et al., 2026), and AgentSkillOS (Li et al., 2026). Fixed native systems add complete-system references. Figure 2 summarizes the evaluation framework.

Harness rankings vary across models and benchmarks in both task performance and operational validity, which can favor different harnesses for one model. Their joint distribution distinguishes execution profiles among configurations with similar success rates: clean runs may leave tasks unsolved, while non-clean runs may succeed or earn continuous-score credit. Pair-specific VCR deviations beyond model and harness averages also change sign across benchmarks. Resource use varies across models and tasks: the lightest harness changes across configurations, and lower token use can accompany lower outcomes. Low use can reflect premature termination; high use can include repeated failed actions. Cross-Model Fit identifies a stable aggregate leader on the evaluated panel, but model-specific preferences and intermediate ranks depend on its models and benchmarks.

These findings motivate joint assessment of task performance and operational validity: their joint distribution identifies task progress achieved through valid completion, while resource use describes its cost. Harness use should be trained and evaluated as a transferable capability across interfaces, including action construction, feedback use, recovery, and stopping. Harness design should adapt observation, recovery, and resource-control policies to the model and task.

References (81)