LongHorizon-Harness: Advancing Long-Horizon Agents for Real-World Tasks
Reading guide · Based on sections of the original paper
Why read this
Practitioners who build agents on Claude Code, Codex, or similar harnesses can use this paper to judge whether an external audited-state loop is worth its token cost and setup complexity.
What the authors found
- WeaveBench (114 hybrid GUI+CLI tasks), same Qwen 3.7-Plus backbone and Claude Code executor: PassRate rose from 51.8% to 80.7% and mean score from 0.702 to 0.835. The authors rest their main claim on this matched comparison. Official leaderboard rows used non-root accounts, so the authors present them only as reference points. 3.2 Main Results
- Terminal-Bench 2.1, pure command-line tasks, Qwen 3.7-Plus with Claude Code in both arms, averaged over three runs per task: success rose from 69.7% to 77.2%. Category results were mixed. System administration improved, while data-science, mathematics, and model-training regressed. 3.2 Main Results
- Cost depends on the task and the backbone. Total tokens were 2.3× baseline on WeaveBench and output tokens 3.6× baseline on OSWorld 2.0. On Terminal-Bench 2.1, the harness used 24% fewer tokens. The auditor accounted for 19–38% of tokens and the manager 2–8%. 3.3 Analysis
Main limitation
The OSWorld 2.0 gains do not isolate the harness. These gains are 2.8%→8.3% binary for Qwen and 20.6%→35.3% on a 34-task Opus subset. In both cases the harness had a hybrid GUI+CLI tool pool, while the baselines were single-action GUI agents. Several subset tasks also dropped from 1.0 to 0. A.2 OSWorld 2.0
Where to start
3.3 Analysis · This section covers the cost–performance trade-off, the token breakdown by role, the task types where gains shrink or reverse, and the Games table showing token use rising for Qwen but falling for Opus.
Abstract
Large language model (LLM) agents increasingly undertake long-horizon tasks that require sustained reasoning, tool use, and revision across many interdependent steps. However, existing agent harnesses maintain task execution, task state, and completion assessment within a growing context, making the state difficult to track and allowing incorrect self-assessments to propagate into later decisions. We reformulate long-horizon execution as a task-state management problem and propose LongHorizon-Harness, which maintains the task state explicitly outside execution and updates it only with facts independently verified from the environment. Its Manage-Execute-Audit(MEA) loop uses a manager to maintain the task state and determine the next subtask, a fresh-context executor to perform it, and a read-only auditor to verify the resulting environment state before the next round. A lightweight AgentAdapter supports interchangeable model and harness backends without modifying their native agent loops. LongHorizon-Harness improves Qwen~3.7-Plus from 51.8% to 80.7% on WeaveBench, from 69.7% to 77.2% on Terminal-Bench~2.1, and from 2.8% to 8.3% on OSWorld~2.0. It also raises Claude Opus~4.7 from 20.0% to 34.3% on an OSWorld2.0 subset, demonstrating consistent gains across models, harnesses, and interaction domains.