claudeers.
// Claude Plugins

LongHorizon-Harness

The long-horizon computer-use harness. Run AI agents across desktop apps and the CLI for extended periods while preserving task state and making reliable pro…

// Claude Plugins[ cli ][ api ][ desktop ][ web ][ claude ]#claude#agent#claude-code#claude-plugin#cli#codex#codex-desktop#codex-plugin#pluginsMIT$open-sourceupdated 18 days ago
Actively maintained
100/100
last commit 3 days ago
last release 3 days ago
releases 8
open issues 11
// star history+185 this week (+27%)

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up LongHorizon-Harness (pip project) into my current project.
Found on https://claudeers.com/longhorizon-harness
Repo: https://github.com/AMAP-ML/LongHorizon-Harness
Homepage/docs: https://lh-harness.pages.dev
Detected install method: pip → pip install lh-harness
Category: plugins. Platforms: cli, api, desktop, web.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
active; community-verified: false. Confirm the source before running anything.
// or install directly (pip)
pip install lh-harness
// or clone
git clone https://github.com/AMAP-ML/LongHorizon-Harness

// compatibility

Platformscli, api, desktop, web
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

LongHorizon-Harness

Advancing Long-Horizon Agents for Real-World Tasks

Operate the whole computer like a human. Work across desktop apps and the command line for dozens of hours.

No state drift. Verifiable progress. Complex tasks carried through to completion.

Usage · What You Get · How It Works · Results · Project Website · 简体中文


Install and run LongHorizon-Harness from the command line

The model determines what an agent can do in one round. LongHorizon-Harness determines whether that work can be verified, preserved, and continued until the task is actually complete.

Works with Claude Code, Codex, and OpenClaw. One-command install, ready to run.

LongHorizon-Harness is an execution, state-management, and result-verification system for long-horizon tasks. It does not train a new model or replace an existing agent. It runs on top of systems such as Codex and Claude Code, helping agents operate autonomously in real computer environments for extended periods and continuously move complex tasks forward.

Video Demo

https://github.com/user-attachments/assets/ca8b77ce-9220-4d85-a272-b346009b2454

Open the promotional video (1440p MP4)

Three roles. One trusted state.

LongHorizon-Harness separates planning, execution, and verification so that one growing context is not responsible for everything.

RoleOne responsibility
🧭ManagerMaintains the original goal, verified progress, and next step
ExecutorStarts each round with a fresh context and focuses on one clearly defined task
🔍AuditorIndependently inspects files, interfaces, logs, and tests in the real environment

Only results that pass independent verification enter persistent task state. Even when the context is refreshed, an action fails, or a deliverable does not pass inspection, the system retains previously verified progress and continues from what remains.

Desktop apps and CLI. One continuous task.

LongHorizon-Harness supports both GUI and CLI workflows.

🖥️ Operate the desktop⌨️ Work in the terminal
🌐 Click, type, scroll, and browse💻 Write and modify code
📊 Operate spreadsheets▶️ Run commands and scripts
📄 Edit documents📦 Install dependencies and environments
🎨 Use design software🔧 Configure and debug systems
🧊 Operate 3D tools📁 Process files and data

One task can begin in a browser, move to the command line for data processing, continue in desktop software to produce an artifact, and return to the terminal for validation or debugging. The goal, progress, and evidence remain under the same state-management system throughout.

🖱️ Connect a computer-use MCP server

GUI interaction is supplied through a compatible external computer-use MCP server. LongHorizon-Harness does not bundle or enable a specific computer-use implementation by default.

lh-harness run --task @task.md --agent claude_code \
  --mcp-config /path/to/your/mcp.json \
  --mcp-add-dir /path/to/your/mcp/files

You can also use LH_HARNESS_CLAUDECODE_MCP_CONFIG and LH_HARNESS_CLAUDECODE_ADD_DIRS. When no configuration is supplied, the Claude Code adapter does not add MCP arguments.

Any model. Any agent backend.

LongHorizon-Harness is not tied to a specific model or agent backend. Existing models and agents connect through configuration without changing their original workflows.

LayerSupported choices
🧠ModelsClaude, GPT, Qwen, and other models exposed by an agent backend
🤖Agent backendsClaude Code, Codex CLI, OpenClaw, and custom AgentAdapter implementations
🎛️Role assignmentThe Manager, Executor, and Auditor can each use a different model or backend
🖥️Execution environmentsLocal, ssh://user@host:port, and docker://container

A lightweight AgentAdapter preserves each agent's native execution loop while LongHorizon-Harness coordinates role boundaries, verified task state, and cross-round progress around it.

Use one model for all three roles, or combine different models and backends to balance quality, speed, and cost.

Hundreds of real tasks. Measured gains.

LongHorizon-Harness is not demonstrated only on a handful of carefully selected success cases.

We ran it on hundreds of complex tasks across GUI, CLI, and mixed computer environments:

Task domainWhat the tasks involve
🌐 Web FrontendDeveloping, fixing, and validating websites and web applications through browser interaction, developer tools, and code changes
📊 Data Analysis & VisualizationProcessing data, producing charts and dashboards, and checking analytical results and visual deliverables
🛠️ Operations & DebuggingInvestigating logs, networks, performance, and service failures; configuring, diagnosing, and repairing systems
🎨 Design & Image ProcessingEditing visual assets, matching design references, processing images, and verifying final visual quality
🎮 Games & InteractionBuilding, operating, and debugging games or interactive applications; checking interaction logic and runtime behavior
📄 Documents & PresentationsEditing documents and slide decks, including content, formatting, references, layout, and final delivery
🧊 Spatial ReasoningCompleting tasks involving spatial relationships, geometry, precise placement, and 3D operations
🖥️ Desktop & System SettingsOperating desktop applications, files, and system settings across multi-application workflows
🔬 Research & EducationCompleting literature research, coursework, teaching materials, forms, and research-support workflows
🎬 Creative ProductionProducing presentations, video, audio, and other media while coordinating assets across tools
⚙️ Engineering & ComputingUsing CAD, EDA, scientific software, development tools, and cloud or DevOps toolchains
🎫 Personal ServicesHandling event ticketing, everyday services, games, and visual-search workflows
🏛️ Administration & ComplianceCompleting office, legal, policy-sensitive form, institutional, and safety-aware submission workflows
💼 Business & FinanceHandling market analysis, procurement, loans, sales, reimbursements, and cross-application enterprise workflows
🏥 HealthcareCompleting medical quality-control, insurance, immunization, and structured health-form workflows

Same model. Same execution backend. Only the harness changes.

~50% → ~80%

GUI + CLI completion
WeaveBench

Full desktop-task completion
OSWorld 2.0

69.7% → 77.2%

Code + CLI success
Terminal-Bench 2.1 · 24% fewer tokens
Performance gains across benchmarks and backbones
📊 Full benchmark results and experimental settings
BenchmarkMetricClaude CodeLongHorizon-HarnessGain
WeaveBench (114 tasks)PassRate51.880.7+28.9
WeaveBenchOverall0.7020.835+0.133
OSWorld 2.0 (108 tasks)Binary2.88.33.0×
OSWorld 2.0Partial21.535.2+13.7
Terminal-Bench 2.1Success rate69.777.2+7.5

All rows use Qwen 3.7-Plus as the backbone and Claude Code as the execution backend.

Full result tables and case trajectories are available on the LongHorizon-Harness project website.

One command. Full visibility.

Install LongHorizon-Harness:

uv tool install lh-harness

LongHorizon-Harness requires Python 3.10+ and at least one agent runtime: claude, codex, or openclaw.

Run a task:

lh-harness run \
  --task "Inspect the current directory and summarize its files."

Run a longer task from a file and open the Dashboard:

lh-harness run --task @task.md --dashboard

The Dashboard shows every round's plan, execution result, audit evidence, and reason for rework. It also provides human gates when a task completes, becomes blocked, needs input, or fails repeatedly.

📋 Plan⚡ Execution🔍 Audit♻️ Rework
What happens nextWhat the agent didWhat the environment provesWhy another round is needed

Every run is stored in an isolated runs/<run-id>/ directory. The complete task state and audit trail make the agent's progress inspectable, recoverable, and reproducible.

Run recordWhat it preserves
📋 Task stateOriginal goal, requirements, verified progress, and remaining work
🧾 Event streamWhat happened throughout the run
🔍 Audit reportsEvidence and acceptance decisions for every round
🧠 Role trajectoriesManager, Executor, and Auditor inputs and outputs
📁 WorkspaceFiles and artifacts produced during execution
Final reportThe verified outcome of the task
⚙️ Installation alternatives and common CLI options

Install with pip:

pip install lh-harness

Dashboard commands:

lh-harness run --task @task.md --dashboard      # Monitor a live run
lh-harness dashboard --runs-root ./runs         # Browse completed and active runs
OptionDescription
--taskTask text or @task.md
--agentclaude_code, codex, or openclaw
--envlocal, ssh://..., or docker://...
--max-roundsMaximum number of Manage-Execute-Audit rounds; the CLI default is 30
--dashboardStart live monitoring and human intervention

Evaluation Reproduction

eval/ provides frozen reproduction suites for two benchmarks:

DirectoryBenchmarkDescription
eval/WeaveBench-harness/WeaveBench (114 tasks)Hybrid GUI+CLI tasks and a reproduction skill
eval/OSWorldv2-harness/OSWorld-V2 (108 tasks)Hybrid runner aligned with the official release

See each directory's README.md or README.zh-CN.md for environment setup, parameters, and launch commands. The nested cua_harness packages are frozen compatibility copies used for evaluation; new integrations should use src/lh_harness/.

Citation

@article{longhorizonharness2026,
  title={LongHorizon-Harness: Advancing Long-Horizon Agents for Real-World Tasks},
  author={Ziyu Ma and Hailang Huang and Shun Zou and Yong Wang and Shidong Yang and Yiming Hu and Fei Wei and XiangXiang Chu},
  journal={arXiv preprint arXiv:2608.01964},
  year   = {2026},
  url    = {https://arxiv.org/abs/2608.01964}
}

Operate the whole computer. Preserve verified progress. Keep working until the task is done.

// faq

What is LongHorizon-Harness?

The long-horizon computer-use harness. Run AI agents across desktop apps and the CLI for extended periods while preserving task state and making reliable progress on complex workflows. Features fresh-context execution, durable verified state, independent auditing, recoverable progress, and native Claude Code / Codex / OpenClaw integration.. It is open-source on GitHub.

Is LongHorizon-Harness free to use?

LongHorizon-Harness is open-source under the MIT license, so it is free to use.

What category does LongHorizon-Harness belong to?

LongHorizon-Harness is listed under plugins in the Claudeers registry of Claude-compatible tools.

10 views
871 stars
unclaimed
updated 18 days ago

// embed badge

LongHorizon-Harness on Claudeers
[![Claudeers](https://claudeers.com/api/badge/longhorizon-harness.svg)](https://claudeers.com/longhorizon-harness)

// retro hit counter

LongHorizon-Harness hit counter
[![Hits](https://claudeers.com/api/counter/longhorizon-harness.svg)](https://claudeers.com/longhorizon-harness)

// reviews

// guestbook

0/500

// related in Claude Plugins

🔓

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

// pluginsmultica-ai/203,096[ claude ]
🔓

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explainin…

// pluginsanthropics/Python141,574[ claude ]
🔓

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

// pluginsHKUDS/Python47,363Apache-2.0[ claude ]
🔓

financial-services — a Claude ecosystem project on GitHub.

// pluginsanthropics/Python34,276Apache-2.0[ claude ]
→ see how LongHorizon-Harness connects across the ecosystem