Harnesses Papers
481 papers in 12 categories, ranked within each. Last updated November 2026. Starts to matter at L5, with an early permissions signal at L4. Its role moves from a product you choose to something the organisation owns.
What a harness is: definitions, anatomy and surveys35 papers
Source-code study of 11 production coding harnesses plus one meta-harness, mapped to seven subsystems: 29 design patterns, 13 observations, 18 recommendations and a 90-line reference scaffold. No runtime imports a general agent framework or uses embedding retrieval for code.
Architecture analysis of Claude Code against OpenClaw and Hermes Agent. Shows a simple core loop, with most code in permissions, compaction and extensibility.
Taxonomy of 13 open-source scaffolds at pinned commits across 12 dimensions. Control ranges from fixed pipelines to Monte Carlo Tree Search, and tool counts run from 0 to 37.
Source-grounded study of 70 public agent projects: which design decisions recur, which travel together and which architecture patterns follow.
Argues the term is used loosely and sets necessary and sufficient conditions for calling something an agent harness.
Harness effects: what the runtime does to scores and cost56 papers
Five models, three production harnesses, with reruns to calibrate noise. Claude Code and mini-SWE-agent are equivalent within five points on 447 tasks; swapping harness flips as many tasks as rerunning (13%). Cost per task differs up to 3x, set by the fixed preamble.
Pre-registered comparison of three scaffolds across five models on GAIA: scaffold choice alone moved accuracy by up to 28 points within one model, and the prediction that stronger models are less scaffold-sensitive was rejected in direction.
Compares whole systems across 3 benchmarks, 3 models and 3 frameworks and finds framework choice matters as much as model choice. Covers multi-agent frameworks rather than coding harnesses.
60,000 SWE-bench Verified trajectories across three models and two scaffolds: single-run pass@1 varies by 2.2 to 6.0 points, so reported 2-3 point gains may be noise.
176 matched settings across four models on SWE-bench Verified and Terminal-Bench 2.1. Context management mainly matters as budgets tighten; planning shifts from accuracy aid to cost saver with stronger models; bash-capable models run well and cheaply on bash alone.
The agent loop: interfaces, action spaces, verification and budgets31 papers
Introduced the agent-computer interface: custom commands and feedback designed for models rather than people. The scaffold changed what the same model could do.
Open platform for software agents with sandboxed execution and multi-agent coordination. Basis of the OpenHands harness line.
Rebuild of OpenHands as a composable SDK for production agents.
Uses executable Python as the action space, consolidating tool calls into code. Up to 20% higher success across 17 LLMs on the authors' benchmarks.
Fixed localise, repair, validate pipeline with no agent loop: 32.00% on SWE-bench Lite at $0.70. An early warning against assuming autonomy is what scores.
Context assembly and cache14 papers
Names cache engineering: trimming history invalidates cached prefixes. A rolling tool-response drop policy gains 1.7 points and cuts cost 27.7% against threshold summarisation.
Across 600 coding-agent trajectories, turn count explains 84% of the variance in log cost against 4% for mean observation size, and 98.6% of input tokens hit a prefix cache. Flat pricing overstates loop cost by about 7x. Does not show turns can be cut at equal success.
Shows the trade-off between sparse text and prompt-cache continuity, and offloads context with both in view.
Virtual-memory layer run by the harness: typed pages, minimum-fidelity invariants and validated writeback at lifecycle boundaries.
White-box study varying context around a fixed task, and locating where failure first appears: lost requirements, editing drift or failed checking.
Long-running execution: state, checkpoints, transactions and recovery46 papers
Runtime built on durable states, phase-local context, checked transitions and recoverable runbooks. Authors report GPT-5.5 xhigh rising from 83.1% to 92.1% on Terminal-Bench 2.1.
Statepoints capture agent state so agents can undo mistakes and explore in parallel. Authors report up to 15x task quality and 3% overhead for recovery.
Machine-checked contract for checkpoint, interrupt and resume, using TLA+ and a 39-cell fault matrix.
Shows restoring a checkpoint can replay irreversible tool effects, and enforces replay-or-fork semantics.
Replay is not one guarantee. Separates facts from effect requests in event-sourced runtimes to define when forking is safe.
Permissions, policy and runtime control55 papers
Ten-mechanism taxonomy, 400 harness-mechanism cells and 2,500 trials. Enabling auto-approve raises attack success from 29.2% to 95.6%.
Independent stress test of Claude Code auto mode on ambiguous authorisation: 81.0% end-to-end false negatives, against 17% reported on production traffic. The authors attribute the gap to a different workload, not a contradiction.
Untrusted context can shape the permissions shown for approval. Agents elicited target allow-rules in 58% of instances on platforms including Claude Code and Codex CLI.
Instruction privilege escalation achieves all 13 objectives on six harnesses, and on all three with automatic permission review.
First systematic analysis of context assembly as an attack surface in real harnesses.
Runtime systems: serving, scheduling and agent operating systems28 papers
Agent operating system with scheduling, context, memory, storage and tool services. Authors report up to 2.1x faster execution.
Serving engine that treats an agent as a program, scheduling and preempting requests using its earlier calls.
Overlaps tool execution with generation: 43.5% lower average task completion time.
Executes tool calls out of order while preserving correctness, borrowing from processor design.
KV-cache time-to-live for multi-turn agents, holding cache across tool calls.
Training with the harness in the loop21 papers
Lets open SFT and RL stacks train agents end to end inside stateful, multi-process inference harnesses such as Claude Code, Codex and OpenClaw, which they cannot natively express.
Controlled RL across harnesses: gains of +0.48 and +0.77 points, while source-harness solve rates differ by 7.13 points. Harness choice outweighed training here.
RL through any harness. Authors report Qwen3.5-4B gains of 22.6, 4.8, 0.6 and 6.2 points on SWE-bench Verified under Codex, Claude Code, Qwen Code and Pi.
Harness-native RL without changing the harness's control flow, using an in-process proxy that survives compaction and re-serialisation.
Open training data is collected almost entirely under OpenHands, and models tuned on it degrade under other scaffolds. Decouples scaffolding to carry planning across them.
Harnesses built for specific domains39 papers
We introduce Agent Harness Awareness, a trust-separated design in which the host supplies a small, fresh, verified state snapshot before a consequential action while retaining measurement, ...
We argue that the missing piece is a substrate: although phones are the Web's dominant access point, open publication and composition under decentralized authorship stop at the agent ...
We propose ThinkLocoManip, an agentic harness for legged loco-manipulation designed to tackle complex, long-horizon tasks in large-scale environments.
We introduce World2HOSI, a multi-expert orchestration harness that generates continuous HOSI data from 3D Gaussian Splatting (3DGS) scenes and natural language instructions.
To explore the potential of coding agents for this task, we propose an agentic proof-harness engineer that automatically constructs verifier-ready harnesses from a software project and a ...
Cross-listed: compaction and context reduction54 papers
We propose SelfCompact, a scaffold that allows the model itself to decide when and how to compact.
Context compaction lets long-horizon coding agents continue beyond their context windows, but can erase the state needed to finish a task.
A safety rule and an episodic log compete for the same tokens in an AI agent's context.
We show that in popular open-source coding agents this step is an exploitable trust boundary.
We show that this context-management layer is a safety-critical failure surface: in-context governance constraints that agents reliably obey while visible can be silently removed by ...
Cross-listed: automated harness search and self-editing harnesses98 papers
We introduce Meta-Harness, an outer-loop system that searches over harness code for LLM applications.
We introduce Agentic Harness Engineering (AHE), a closed loop that addresses these challenges through three matched observability pillars: (1) component observability gives every editable ...
Despite significant strides in language models in the last few years, when used as agents, such models often try to perform actions that are not just suboptimal for a given state, but are ...
We study this question with a two-phase continual-learning evaluation built from hard tasks in Terminal-Bench 2.0, comparing three approaches to agent-harness optimization (GEPA, Meta ...
We introduce HarnessDev, a benchmark that shifts the unit of evaluation from task outputs to runnable infrastructure.
Cross-listed: isolation runtimes4 papers
AI coding agents are untrusted system components, yet they require autonomy on the developer machines they run on.
We introduce SANDBOXESCAPEBENCH, an open benchmark that safely measures an LLM's capacity to break out of these sandboxes.
The transition of Large Language Models (LLMs) from passive code generators to autonomous agents introduces significant safety risks, specifically regarding destructive commands and ...
To that end, we propose IsolateGPT, a design architecture that demonstrates the feasibility of execution isolation and provides a blueprint for implementing isolation, in LLM-based systems.
Know a paper, tool, or repo that should be listed here? We want this index to be exhaustive.
Comments and recommendations
Discuss this page, or recommend a paper, tool, system or correction.