Research index

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

Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents -- A Source-Code Study of Eleven Systems2026
Barbaste, P. et al.arXiv:2609.00006

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.

Dive into Claude Code: The Design Space of Today's and Future AI Agent Systems2026
Liu, J. et al.arXiv:2604.14228Code

Architecture analysis of Claude Code against OpenClaw and Hermes Agent. Shows a simple core loop, with most code in permissions, compaction and extensibility.

Inside the Scaffold: A Source-Code Taxonomy of Coding Agent Architectures2026
Rombaut, B.arXiv:2604.03515

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.

Architectural Design Decisions in AI Agent Harnesses2026

Source-grounded study of 70 public agent projects: which design decisions recur, which travel together and which architecture patterns follow.

What makes a harness a harness: necessary and sufficient conditions for an agent harness2026

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

What Does a Harness Buy? Tokens, Mostly2026
Liu, Y. and Han, Z.arXiv:2610.04433Code

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.

Scaffold Effects on GAIA: A Controlled Comparison2026
Starace, J.arXiv:2606.08529

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.

MASEval: Extending Multi-Agent Evaluation from Models to Systems2026
Emde, C. et al.arXiv:2603.08835Code

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.

On Randomness in Agentic Evals2026
Bjarnason, B. et al.arXiv:2602.07150

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.

An Empirical Study of Harness Design for Coding Agents2026
Fan, R. et al.arXiv:2609.20804

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

SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering2024
Yang, J. et al.arXiv:2405.15793

Introduced the agent-computer interface: custom commands and feedback designed for models rather than people. The scaffold changed what the same model could do.

OpenHands: An Open Platform for AI Software Developers as Generalist Agents2024
Wang, X. et al.ICLR 2025arXiv:2407.16741Code

Open platform for software agents with sandboxed execution and multi-agent coordination. Basis of the OpenHands harness line.

The OpenHands Software Agent SDK: A Composable and Extensible Foundation for Production Agents2025
Wang, X. et al.MLSys 2026arXiv:2511.03690

Rebuild of OpenHands as a composable SDK for production agents.

Executable Code Actions Elicit Better LLM Agents2024
Wang, X. et al.ICML 2024arXiv:2402.01030Code

Uses executable Python as the action space, consolidating tool calls into code. Up to 20% higher success across 17 LLMs on the authors' benchmarks.

Agentless: Demystifying LLM-based Software Engineering Agents2024
Xia, C. et al.arXiv:2407.01489

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

Cache Engineering for Agents2026

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.

TurnCost: Turns, Not Observations: Cache-Aware Loop Engineering for Coding Agents2026
Kumar, P. and Pandey, R.arXiv:2610.15093

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.

TokenPilot: Cache-Efficient Context Management for LLM Agents2026
Xu, B. et al.EMNLP 2026 FindingsarXiv:2606.17016

Shows the trade-off between sparse text and prompt-cache continuity, and offloads context with both in view.

ClawVM: Harness-Managed Virtual Memory for Stateful Tool-Using LLM Agents2026
Rafique, M. and Bindschaedler, L.EuroMLSys '26 workshoparXiv:2604.10352

Virtual-memory layer run by the harness: typed pages, minimum-fidelity invariants and validated writeback at lifecycle boundaries.

When and How Context Rot Appears in Coding Agents: A White-Box Study of Agent Skills in Code Auditing2026

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

StateM: Reaching 95.3% Raw Accuracy, or a $15 Frontier Run, on Terminal-Bench 2.1 via Harness Scaling2026
Qin, Z. et al.arXiv:2608.15089Code

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.

Planarian: Managing Agent State with Statepoints2026
Guo, J. et al.arXiv:2609.35366

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.

Resume Means Resume: A Machine-Checked Conformance Contract for Checkpoint, Interrupt, and Resume Semantics in Workflow Persistence Layers2026

Machine-checked contract for checkpoint, interrupt and resume, using TLA+ and a 39-cell fault matrix.

ACRFence: Preventing Semantic Rollback Attacks in Agent Checkpoint-Restore2026
Zheng, Y. et al.arXiv:2603.20625

Shows restoring a checkpoint can replay irreversible tool effects, and enforces replay-or-fork semantics.

Replay Is a Family of Assertions: Fork-Safety in Event-Sourced Agent Runtimes2026

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

HarnessSecurity-Bench: Do Security Mechanisms Really Protect Coding Agent Harnesses?2026
Zhu, Z. et al.arXiv:2610.07639

Ten-mechanism taxonomy, 400 harness-mechanism cells and 2,500 trials. Enabling auto-approve raises attack success from 29.2% to 95.6%.

Measuring the Permission Gate: A Stress-Test Evaluation of Claude Code's Auto Mode2026
Ji, Z. et al.arXiv:2604.04978

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.

From Approval to Abuse: Privilege Escalation Attacks on Harness-Protected Coding Agents2026
Yang, X. et al.arXiv:2610.22987

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.

When Context Gets Root: Privilege Escalation in LLM Harnesses2026
He, X. et al.arXiv:2608.27299

Instruction privilege escalation achieves all 13 objectives on six harnesses, and on all three with automatic permission review.

What's in Your Agent's Context? Context Privilege Escalation Attacks against AI Agent Harness2026
Li, Z. et al.arXiv:2609.01222

First systematic analysis of context assembly as an attack surface in real harnesses.

Runtime systems: serving, scheduling and agent operating systems28 papers

AIOS: LLM Agent Operating System2024
Mei, K. et al.COLM 2025arXiv:2403.16971Code

Agent operating system with scheduling, context, memory, storage and tool services. Authors report up to 2.1x faster execution.

Autellix: An Efficient Serving Engine for LLM Agents as General Programs2025
Luo, M. et al.arXiv:2502.13965

Serving engine that treats an agent as a program, scheduling and preempting requests using its earlier calls.

Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving2026
Sui, Y. et al.arXiv:2603.18897

Overlaps tool execution with generation: 43.5% lower average task completion time.

TomasuLLM: Out-of-Order Speculative Execution for LLM Agents2026
Yu, J. et al.arXiv:2609.38201

Executes tool calls out of order while preserving correctness, borrowing from processor design.

Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live2025
Li, H. et al.arXiv:2511.02230

KV-cache time-to-live for multi-turn agents, holding cache across tool calls.

Training with the harness in the loop21 papers

OpenForgeRL: Train Harness-native Agents in Any Environment2026
Yu, X. et al.arXiv:2607.21557

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.

Multi-Harness Reinforcement Learning for Coding Agents: Training Gains and Harness Dependence2026
Le, C. et al.arXiv:2609.04518

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.

Polar: Agentic RL on Any Harness at Scale2026
Xu, B. et al.arXiv:2605.24220

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.

LEGO-RL: Harness-Native Reinforcement Learning for Coding Agents2026
Du, Y. et al.arXiv:2608.17393

Harness-native RL without changing the harness's control flow, using an in-process proxy that survives compaction and re-serialisation.

DCAS: Decoupling CLI Agent Scaffolding to Internalize Planning across Scaffolds2026
Thangarajah, K. et al.arXiv:2608.06113

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

Agent Harness Awareness: Turning Verified Telemetry into Operational Control for Tool-Using Agents2026
Agrawal, M. and Nagpal, S.arXiv:2611.05391

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, ...

FreeForm Harness: A Mobile-Native Agent Harness for Open and Composable Extensions2026
Zhang, B. et al.arXiv:2611.04579

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 ...

ThinkLocoManip: A Whole-Body Control Agentic Harness for Legged Loco-Manipulation2026
Chen, N. et al.arXiv:2610.34370

We propose ThinkLocoManip, an agentic harness for legged loco-manipulation designed to tackle complex, long-horizon tasks in large-scale environments.

World2HOSI: A Multi-Expert Harness for Long-Horizon Human-Object-Scene Interaction Generation2026
Li, J. et al.arXiv:2610.27725

We introduce World2HOSI, a multi-expert orchestration harness that generates continuous HOSI data from 3D Gaussian Splatting (3DGS) scenes and natural language instructions.

Towards Agentic Proof Harness Engineering2026
Shanmuganathan, R. et al.arXiv:2610.23241

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

Self-Compacting Language Model Agents2026
Li, T. et al.arXiv:2606.23525

We propose SelfCompact, a scaffold that allows the model itself to decide when and how to compact.

Compact-Bench: Measuring What Context Compaction Costs Long-Horizon Coding Agents2026
Sun, R. et al.arXiv:2610.31710

Context compaction lets long-horizon coding agents continue beyond their context windows, but can erase the state needed to finish a task.

The Compaction Cliff in Long-Running AI Agent Memory2026
Zerhoudi, S. et al.arXiv:2608.22752

A safety rule and an episodic log compete for the same tokens in an AI agent's context.

Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents2026
Dabirsiaghi, A.arXiv:2610.29869

We show that in popular open-source coding agents this step is an exploitable trust boundary.

Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents2026

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

Meta-Harness: End-to-End Optimization of Model Harnesses2026
Lee, Y. et al.arXiv:2603.28052

We introduce Meta-Harness, an outer-loop system that searches over harness code for LLM applications.

Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses2026
Lin, J. et al.arXiv:2604.25850

We introduce Agentic Harness Engineering (AHE), a closed loop that addresses these challenges through three matched observability pillars: (1) component observability gives every editable ...

AutoHarness: improving LLM agents by automatically synthesizing a code harness2026
Lou, X. et al.arXiv:2603.03329

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 ...

Do Agent Optimizers Compound? A Continual-Learning Evaluation on Terminal-Bench 2.02026
Wang, W. et al.arXiv:2607.14004

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 ...

HarnessDev: Can LLMs Create and Evolve Their Own Agent Harness?2026
Wu, Y. et al.arXiv:2609.01437

We introduce HarnessDev, a benchmark that shifts the unit of evaluation from task outputs to runnable infrastructure.

Cross-listed: isolation runtimes4 papers

SideKernel: A Usable microVM Sandbox for AI Coding Agents on macOS2026
Prasakis, D.arXiv:2610.02456

AI coding agents are untrusted system components, yet they require autonomy on the developer machines they run on.

Quantifying Frontier LLM Capabilities for Container Sandbox Escape2026
Marchand, R. et al.arXiv:2603.02277

We introduce SANDBOXESCAPEBENCH, an open benchmark that safely measures an LLM's capacity to break out of these sandboxes.

Fault-Tolerant Sandboxing for AI Coding Agents: A Transactional Approach to Safe Autonomous Execution2025

The transition of Large Language Models (LLMs) from passive code generators to autonomous agents introduces significant safety risks, specifically regarding destructive commands and ...

IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems2024
Wu, Y. et al.NDSS 2025arXiv:2403.04960

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.

Missing something?

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.

Type

Submissions are reviewed, then shown publicly with your display name. Please don't include personal or confidential details.