{"slug": "longhorizon-harness-the-loop-engineering-that-lets-agents-run-for-hours-not", "title": "LongHorizon-Harness: The Loop Engineering That Lets Agents Run for Hours, Not Minutes", "summary": "A developer has localized the documentation for LongHorizon-Harness, an open-source tool that wraps AI agents in a persistent execution loop to sustain state, verify results, and recover from failures over long tasks. The harness, which supports agents like Claude Code and Codex, improves persistence rather than capability, and is available under an MIT license with an accompanying arXiv paper.", "body_md": "Every agent user hits the same wall: **it can't go the distance.**\n\nGive an agent a complex, multi-app task, and somewhere along the way it loses the plot — the context window fills up and it forgets its progress, or one step fails and the whole task restarts from zero, or it claims \"done\" and you have no way to verify. The problem isn't a lack of smarts. It's a missing layer of **loop engineering**: how an agent sustains state, verifies results, and recovers from failure over hours, not minutes.\n\n[LongHorizon-Harness](https://github.com/AMAP-ML/LongHorizon-Harness) (1.5k stars, MIT) is built for exactly this — and it comes with an arXiv paper (2608.01964), which already tells you it's not another toy.\n\n**Plan → act → verify → checkpoint or recover → repeat**, until the work is actually done.\n\nFour mechanisms do the heavy lifting:\n\nThe README is refreshingly honest about what it is and isn't: **it doesn't train new models or replace your agent — it wraps your agent in a persistent execution loop.** Your Claude Code, Codex, OpenCode, or DeepSeek Harness stays itself, just with a shell that lets it run long and recover from failure.\n\nIt improves *persistence*, not *capability*. If your agent can't operate a piece of software to begin with, the harness won't make it suddenly able to. What it gives you is stability over long horizons and recovery from failure — not more intelligence. It's also early (v0.1.x) and aimed at developers willing to run long tasks, not casual users.\n\nI've localized the README and core docs to Chinese: [https://github.com/yangshun2005/LongHorizon-Harness-cn](https://github.com/yangshun2005/LongHorizon-Harness-cn)\n\nIf you find this project useful, a star on the original repo supports the author's ongoing maintenance.", "url": "https://wpnews.pro/news/longhorizon-harness-the-loop-engineering-that-lets-agents-run-for-hours-not", "canonical_source": "https://dev.to/sun_young_517829fc09d0c05/longhorizon-harness-the-loop-engineering-that-lets-agents-run-for-hours-not-minutes-4j91", "published_at": "2026-09-08 16:41:56+00:00", "updated_at": "2026-09-08 16:56:01.368217+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-infrastructure"], "entities": ["LongHorizon-Harness", "Claude Code", "Codex", "OpenCode", "DeepSeek Harness", "arXiv", "MIT", "yangshun2005"], "alternates": {"html": "https://wpnews.pro/news/longhorizon-harness-the-loop-engineering-that-lets-agents-run-for-hours-not", "markdown": "https://wpnews.pro/news/longhorizon-harness-the-loop-engineering-that-lets-agents-run-for-hours-not.md", "text": "https://wpnews.pro/news/longhorizon-harness-the-loop-engineering-that-lets-agents-run-for-hours-not.txt", "jsonld": "https://wpnews.pro/news/longhorizon-harness-the-loop-engineering-that-lets-agents-run-for-hours-not.jsonld"}}