arXiv(opens in a new tab)cs.AISep 2026Cited by 4 papers on PaperVantage

Manuscript Offprint

arXiv:2609.05736

Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnesses

Cen, Zhao, Haibo Ruan, Wenjie Chen, Pei-fen Tu, Usman Abbasi, Joel Hesch

Abstract

LLM tool agents can be improved without retraining by modifying the runtime harness around a fixed model: prompts, tool interfaces, middleware, state handling, and recovery logic. We study this setting as resource-bounded harness selection for fixed-model multi-turn tool agents, with the search surface scoped to prompts and tool-boundary middleware: edits are guarded intercepts at the tool boundary, not arbitrary rewriting of agent execution logic. Our optimizer-agnostic protocol reports mean held-out lift, worst-condition lift, repeatability, logged cost diagnostics, and RelLift95(B)_{95}(B), a conservative estimate of the held-out gain of the harness selected under budget BB. We instantiate the protocol with prompt-only and prompt-plus-middleware optimizers, including PRISM, which clusters failures and routes repairs to prompt, tool-boundary middleware, or joint edit surfaces within a Pareto search. On BFCL multi-round, τ2\tau^2-Retail, and τ2\tau^2-Telecom, PRISM obtains mean held-out lifts of 14.2, 14.9, and 10.1 percentage points and positive empirical RelLift95_{95} on all three benchmarks, and a component ablation attributes the margin chiefly to failure-surface routing and the edit-pattern constraint. Across optimizers, the results show that some search procedures can occasionally find large gains but still choose brittle updates, so the reliability of the chosen harness should be reported alongside average held-out lift.

1 Introduction

Multi-turn conversational agents that use external tools are a demanding test bed for agent optimization: in customer-facing service workflows, agents must track dialogue state, follow policies, call APIs correctly, recover from missing information, and leave the environment in the intended state. τ2\tau^2-bench and the Berkeley Function Calling Leaderboard (BFCL) capture complementary aspects of this setting (dynamic user interaction, stateful execution, executable function calling) (Barres et al., 2025) and expose a deployment tension: stronger systems can be more reliable, but production agents must still satisfy latency and runtime-cost constraints (Chen et al., 2024). We study whether agent harness optimization can improve this trade-off without changing model weights. A harness is the runtime control layer around a fixed target model, including prompts, tool interfaces, context construction, state management, middleware, recovery logic, and evaluation hooks. Prior work on instruction optimization, trajectory-reflective prompt evolution, and reasoning-and-acting agents shows that changing this surrounding layer can substantially affect downstream behavior (Opsahl-Ong et al., 2024; Agrawal et al., 2026; Yao et al., 2023). We scope the optimized surface precisely to prompts plus tool-boundary middleware: middleware helps when failures are locally observable and checkable at the tool boundary, not via arbitrary rewriting of agent execution logic. The main question is not whether one harness can improve one benchmark score, but whether an automatic harness search procedure can be trusted: a reported gain may depend on the repair examples used during search, stochastic optimizer choices, or variance in agentic evaluation, and may carry search cost that limits practical value (Bjarnason et al., 2026). We therefore evaluate harness search procedures along four axes: effectiveness, held-out lift over a baseline harness; repair-distribution robustness, whether lift persists across repair sets; same-protocol repeatability, whether the effect recurs under the same search protocol; and efficiency, the budget required to obtain the gain reliably. We instantiate this protocol on three multi-turn tool-use tasks: BFCL multi-round, τ2\tau^2-Retail, and τ2\tau^2-Telecom (Barres et al., 2025) with user simulation. We compare BetterHarness-style hill climbing, MIPROv2 (Opsahl-Ong et al., 2024), GEPA

(Agrawal et al., 2026), and PRISM, our factorized optimizer over prompt and middleware updates. This paper makes three contributions. First, we frame harness improvement as a budgeted selection problem and ask how reliable the selected harness is on held-out data, measured with the RelLift95_{95} estimator. Second, PRISM routes each repair to the surface where it can be locally checked, based on clustering failures by root cause. Third, PRISM selects candidates in the loop by both gate pass rate and reliability, not score alone. The evolutionary search, Pareto retention, and failure clustering themselves are not new: PRISM builds them on a GEPA-style skeleton (Agrawal et al., 2026) and runs on the same execution substrate as every baseline. The component ablation (§6.1) checks whether the new pieces, not the inherited ones, carry the result.

References (2)

  • (b) Enforce a fixed number of inner-model task rollouts during search
  • Use these runs to compute mean lift, confidence intervals, worst lift, and repeatability