Manuscript Offprint

arXiv:2610.34577

Rethinking Verification in Agent Harnesses

Zhengxin Zhang, Erkang Zhu, Yin Lin, Claire Cardie, Bolin Ding, Jingren Zhou

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

ABSTRACT

Agent harnesses enable large language models to act through tools, observe the results, and iteratively work toward a task goal. Verification checks and revises agents' work to improve output quality. Yet there is limited guidance on how harnesses should organize this effort. We study verification as an axis of test-time scaling by examining when to intervene, who checks the work, and how checking leads to revision. Our framework spans four layers of the agent lifecycle: initial instructions, mid-turn reminders, completion gates, and independent review. We compare 17 designs across seven frontier coding models on Terminal-Bench (TB) and SWE-bench Verified (SWE), and introduce VisualBench for expert evaluation of visual and interactive artifacts. Initial instructions and execution-time reminders yield modest, model-dependent average gains on the coding benchmarks, without substantially increasing average output token use. Completion gates can yield larger gains but may substantially increase cost. Independent review by a critic offers a more favorable accuracy-cost tradeoff, improving average accuracy by 5.9–9.5 percentage points on TB and 3.9–6.6 on SWE at 1.13–1.25× and 1.00–1.04× baseline cost, respectively. On VisualBench, independent review achieves net preferences of 13.2–23.8 points over the baseline across its four designs, exceeding the evaluated L0–L2 designs. Additional review rounds or independent critics further improve average TB accuracy by up to 3.5 percentage points. Together, these results provide empirical guidance for verification design in agent harnesses and support independent review as a practical axis of test-time scaling.

1 INTRODUCTION

Coding agents built on large language models (LLMs) tackle long-horizon software engineering tasks, including resolving repository-level issues across large codebases (Yang et al., 2024; Anthropic, 2026a; OpenAI, 2026; Google, 2026). These agents run inside harnesses that let the model act through tools, observe the results, and iterate toward a task goal (Yao et al., 2022; Yang et al., 2024). Beyond exposing tools, the harness specifies the agent's instructions, controls intervention timing, and coordinates verification before accepting its work (Bolin, 2026; Lopopolo, 2026). These choices allocate computation to checking and revising the agent's work, making verification an important part of harness design (Lopopolo, 2026).

Prior work develops learned verifiers for selecting solutions (Cobbe et al., 2021; Lightman et al., 2023), self-correction through critiques and reflections (Madaan et al., 2023; Shinn et al., 2023), and tool-assisted checks that return execution evidence for repair (Gou et al., 2023; Chen et al., 2023; Huang et al., 2023a). In practice, verification in agent harnesses is often shaped by engineering heuristics and iterative experience: Claude Code provides hooks for completion checks (Anthropic, 2026b), while Codex uses self-review and iteration (Lopopolo, 2026). Yet systematic evidence remains limited on how to design and scale verification, when a design improves performance, and whether its gains justify the additional computation. Without this guidance, current designs may be suboptimal for a given model or task.

In this paper, we study verification as an axis of test-time scaling in agent harnesses. We organize the design space around three questions: when to intervene, who should check the work, and how findings should lead to revision. Following the agent lifecycle, L0: Initial instructions and L1: Execution-time reminders shape what the agent is told before and during execution to guide its

∗^{*}This work was done during an internship at Alibaba Group.

own checking; L2: Completion gates reopen its work for self-checking; and L3: Independent review assigns a separate critic to check the work and return findings for repair before it is accepted. This framework lets us compare prompting the agent to verify, extending its self-checking, and introducing an independent checking perspective. Within these layers, we vary message role, intervention timing, critic context, and review strategy, then scale independent review through additional rounds or critics.

We compare 17 verification designs on Terminal-Bench (TB) (Merrill et al., 2026) and SWE-bench Verified (SWE) (Jimenez et al., 2023; OpenAI, 2024) tasks using seven frontier coding models: Qwen3.7-Max (Qwen Team, 2026a), Qwen3.8-Max (Qwen Team, 2026b), GLM-5.2 (Z.ai, 2026), DeepSeek V4-Pro (DeepSeek-AI et al., 2026), DeepSeek V4-Flash (DeepSeek-AI et al., 2026), Kimi-K2.7-Code (Moonshot AI, 2026), and MiniMax-M2.5 (MiniMax, 2026). We also introduce an internal VisualBench of 18 visual and interactive tasks, evaluated through blinded expert comparisons of functionality and visual quality. L0 initial instructions and L1 execution-time reminders yield modest, model-dependent average gains on the coding benchmarks, using 0.90–1.00× and 0.75–0.93× baseline output tokens, respectively. L2 completion gates can yield larger gains but may substantially increase cost: rejection-based designs cost 1.60–1.76× baseline on TB and 1.48–1.56× on SWE. L3 independent review by a separate critic offers a more favorable accuracy–cost tradeoff, improving average accuracy by 5.9–9.5 percentage points on TB and 3.9–6.6 on SWE at 1.13–1.25× and 1.00–1.04× baseline cost, respectively, including critic review and agent revision. On VisualBench, all four independent-review designs outperform the evaluated L0–L2 designs, with net preferences of +13.2–+23.8 points. Changes-based review outperforms trajectory-based review both with and without required visual inspection. Additional review rounds or independent critics further improve average TB accuracy by up to 3.5 percentage points. Together, these results provide empirical guidance for verification design in agent harnesses and support independent review as a practical axis of test-time scaling, enabling users to configure verification effort for different tasks to improve agent performance.

References (27)