Manuscript Offprint

arXiv:2610.40917

Towards Portable Specification of the Agent Harness

Nicolas Gertler, Claudio Novelli, Luciano Floridi

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

Abstract

Large language models act only through the infrastructure that surrounds them. That infrastructure, the harness, determines what a model can accomplish and how it fails, yet it has no settled definition. To address this gap, we decompose the harness into eight functional components that can be specified and compared across systems, and we propose a portable specification framework that records which model ran in which harness. The record is needed because different harness configurations can yield several-fold differences in reported scores for the same model, and because much of an agent's attack surface lies in its harness. Existing model cards and agent cards provide release and operational information, but do not establish the sequence of effective configurations within a run. Harnesses can change between releases and between runs, and, where agents edit their own tools and configuration, within a run. Enacted AI laws contain documentation duties relevant to covered systems, subject to their respective scopes and application dates, but do not prescribe the common harness record proposed here. Therefore, the harness has to be explicitly described and specified as a versioned part of the system.

Keywords: agent harness; context engineering; enveloping; harness disclosure; harness engineering; harness specification

Introduction

Large language models (LLMs) have rapidly improved at coding tasks, 1−6^{1-6} progressing from inline coding assistants to agents that plan and act on development environments through tools. 7−12^{7-12} This cannot be reduced to a shift in the model because it involves the entire infrastructure. An LLM alone does not implement a persistent autonomous interaction loop, 13,14^{13,14} and so is not, by itself, an agent. It becomes one only when it is surrounded by infrastructure that supplies what it lacks: at minimum, memory to carry state across calls and tools to act on the environment. Thus, a loop is the most basic agentic infrastructure: the agent receives a prompt, invokes the model, executes an action, observes the result, and repeats. 15,16^{15,16} ReAct 17^{17} formalized this cycle, interleaving model reasoning and action.

As agents grew more complex, the term “agent scaffold” emerged for what is assembled before inference, e.g., the system prompt, tool definitions, and the registry of subagents. 7^{7} The literature increasingly uses “agent harness” as a name for the full surrounding layer, meaning everything the model needs and does not itself supply. 18−20^{18-20} The name has not brought a single definition with it, even though there are some recurrent features: e.g., the model supplies the reasoning, and the harness supplies the tools and the constraints under which that reasoning becomes action. 18,20−22^{18,20-22} Some authors draw a finer distinction 3,7,23^{3,7,23} separating a construction phase (scaffold) from the runtime that executes it (harness). 7^{7} However, in practice the scaffold’s contents are reassembled or extended at runtime, so it is continuously recomputed by the harness, 7^{7} and the two phases do not stay apart. We therefore use “agent harness” as a single term for the full surrounding layer.

Popular agent harnesses for software engineering have emerged from model providers (e.g., Claude Code, OpenAI Codex) and code editor platforms (e.g., Cursor Agent). Researchers have also created harnesses, including OpenHands, 24^{24} HyperAgent, 25^{25} SWE-agent, 4^{4} and OpenDev. 7^{7} On SWE-Bench Mobile, the same model, Claude Opus 4.5, scored 2% with the open-source OpenCode and 12% with Cursor across 50 tasks: a sixfold difference between coding harnesses. 26^{26} The Holistic Agent Leaderboard (HAL) provides standardized evaluation across hundreds of virtual machines and 21,730 rollouts, separating models, scaffolds, and benchmarks. 27^{27} Beyond benchmark performance, much of an agent’s attack surface lies in its harness. Treating tool schemas as trusted can enable poisoning, 28,29^{28,29} and the context pipeline is the entry point for indirect prompt injection. 30^{30} In the rug-pull attack, a tool changes after it has been vetted and keeps the trust it was granted. 31,32^{31,32} The EU AI Act (e.g., Article 11 and Annex IV) and AI-related laws in Colorado and South Korea 33−35^{33-35} contain provisions relevant to this layer, but none prescribes a shared harness-specific record, even though performance and failure modes depend heavily on the surrounding system. 3,20,36^{3,20,36} Harness design remains buried in controller code and runtime-specific conventions, which makes it hard to compare across systems. 37^{37}

To address the lack of a shared conceptual framework, this Perspective proposes a set of harness components as functions that keep the same meaning from one implementation to the next and can be configured and versioned independently. We identify eight and review evidence that variation in the surrounding layer changes what a fixed model can do. We then argue that the layer should be described and audited directly. The proposal is a starting point for standardizing harness descriptions without prescribing their design. The case for doing so grows more pressing as agents come to modify their own surrounding infrastructure. 19,38−40^{19,38-40}

References (84)