LongHorizon-Harness

A loop-engineering system that lets Claude Code, Codex, OpenCode, and DeepSeek Harness agents run for hours across desktop apps and the CLI with verified progress.

Stars
★ 1.9k
Last updated
2d ago v0.1.8
FARS reviewed
Nov 08, 2026
License
MIT
Primary language
Python

At a glance

How it runs
CLIWeb app
Works with
Platform-specificCodex · Claude Code
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Python 3.10+uv (optional)Node.js 20+ (for plugins)Shell / CLINetwork accessLocal filesystem
Typical use
Developers automating complex long-horizon tasks across desktop apps and terminal, e.g., starting in a browser, processing data in CLI, then producing a document in desktop software.
Not a fit if
  • Teams needing reliable Windows support; Windows is not thoroughly tested
  • Users unwilling to pay API costs for external runtimes like Claude Code or Codex
Website
lh-harness.pages.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-01latest release v0.1.8 (2026-10-21)+2.4 ★/day over 7 days
Source review
70/100 · Some gaps

What does this agent do, and when should you use it?

LongHorizon-Harness is a loop-engineering system that turns existing agents into long-running computer-use systems. It engineers a durable execution loop around the agent, ensuring tasks complete through a cycle of planning, acting, verifying, checkpoints, and recovery. The system supports multiple agent backends including Claude Code, Codex CLI, OpenCode, and DeepSeek Harness (CLI phase), and allows assigning different models and backends per role. It offers a web workbench and CLI, supports GUI and CLI tasks, and ensures progress is trackable and recoverable through verified state. LongHorizon-Harness has been benchmarked on hundreds of tasks across WeaveBench, OSWorld 2.0, and Terminal-Bench 2.1, showing significant gains in task completion.

LongHorizon-Harness takes a goal and turns the remaining work into bounded steps. In each round, the Manager role rebuilds the next step from the original goal, verified progress, and failure evidence; the Executor role performs the step in a fresh context; the Auditor role independently verifies the result by checking actual files, UI, logs, and tests. Verified progress is checkpointed, while failures are recorded as evidence for recovery. It runs tasks via the lh-harness run CLI or the lh-harness web browser workbench, with options like --agent for backend selection and configurable agent, model, max_rounds, etc. Run outputs are stored under ./.lh-harness/runs/<run-id>/, including trajectories, audit reports, and a final plain-language reply.

  1. Developers automating complex long-horizon tasks across desktop apps and terminal, e.g., starting in a browser, processing data in CLI, then producing a document in desktop software.
  2. QA engineers who need independent verification of agent actions, using the Auditor role to ensure progress is reliable.
  3. Organizations that want to mix models and backends per role to balance quality and cost, e.g., strong model for planning and audit, cheaper for execution.
  4. Researchers wishing to reproduce benchmark results on long-horizon agent tasks; the repo provides frozen reproduction suites under eval/.
  5. Teams needing recoverable progress for long-running agents, leveraging checkpoints to continue after context refresh or failures.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • uv tool install lh-harness
  • pip install lh-harness
Runtime
Python 3.10+ · Node.js 20+

How do you install or deploy this agent?

Ensure Python 3.10+ and at least one agent runtime on PATH: codex, claude, opencode, or dsh. Install via uv tool install lh-harness or pip install lh-harness. For GUI support, install a computer-use plugin: lh-harness plugin install codex-computer-use (Codex) or open-computer-use (Claude Code or both); requires Node.js 20+. Then run lh-harness init in your project to generate a config.

How do you use this agent?

From the command line, run a task in your project directory, e.g., lh-harness run --task "Inspect the current directory and summarize its files." --agent codex. Alternatively, launch the browser workbench with lh-harness web --workspace-root . and create tasks there. Progress is shown in the console; the final report is saved to ./.lh-harness/runs/<run-id>/logs/report.json. Run lh-harness doctor to verify the environment and lh-harness plugin list to manage plugins.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

What are this agent's strengths and limitations?

Pros
  • Multi-backend support (Claude Code, Codex, OpenCode, DeepSeek Harness) with per-role configurability.
  • Robust verification and checkpointing: only independently verified progress becomes task state, and failures are recoverable.
  • Significant performance gains on benchmarks (e.g., 3× completion on OSWorld 2.0).
Limitations
  • Currently only fully tested on macOS; Windows support not thoroughly validated.
  • Depends on external agent runtimes like Claude Code or Codex, potentially incurring API costs.
  • GUI plugins require manual permission grants, e.g., Accessibility and Screen Recording on macOS.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
LongHorizon-Harness This agent 70 · Some gaps CLIFree + model costs ★ 1.9k 2d ago Python Codex · Claude Code
OSpec 69 · Some gaps CLIFree + model costs ★ 393 3mo ago JavaScript Codex · Claude Code
HUD 61 · Some gaps CLIFree + model costs ★ 336 2d ago Python OpenAI API · Claude API
Open Interpreter 72 · Some gaps CLIFree + model costs ★ 69k today Rust Codex

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
70/ 100 5-point scale 3.5 / 5
Trust 16/29
Reliability 9/14
Adaptability 15/18
Convention 16/18
Effectiveness 9/13
Verifiability 5/8
Why each dimension lost points
Trust16 / 29 · 2.8/5

The README says tasks act on the launch directory by default but can use another workspace; the web workbench supports approvals, plugins are disabled by default, and source code shows role permissions and path boundaries. These support partial credit for least privilege and confirmation. Configuration, run logs, and API key handling are described, but the packet does not cover the full data flow, sensitive-data storage, or all external effects; DeepSeek task text is visible in child-process arguments, so sensitive-data handling and external-effects scores remain limited. Runs avoid reusing directories, and rejected audits do not become trusted progress, providing some recovery. Contributor attribution is present, but maintainer identity and update responsibility are unclear.

Reliability9 / 14 · 3.2/5

The README's manager, executor, auditor, and checkpoint loop broadly matches the roles, run directories, and state handling visible in the CLI and API source. Python, backend CLI, Node, and plugin requirements are documented, and doctor checks them; the release workflow shows dependency installation and packaging checks, but the packet does not establish long-term dependency availability. The CLI test file includes a friendly missing-API-key error case, and the README says doctor exits nonzero on failed checks. Execution correctness and determinism were not assessed.

Adaptability15 / 18 · 4.2/5

The docs cover GUI, CLI, mixed workflows, and many task domains, with multiple backends, per-role model configuration, and a local environment. They clearly limit DeepSeek to a CLI phase, state that only the local environment is currently supported, and identify native Windows limitations; the skills also list unsupported automation such as cloud VM provisioning and public image hosting. The evaluation skills describe their trigger scenarios precisely, though multiple evaluation subprojects make the overall scope somewhat complex. macOS is the currently tested platform and WSL2 is advised for Windows, so environment fit is documented but bounded.

Convention16 / 18 · 4.4/5

The README has clear entry points for installation, configuration, running, plugins, diagnostics, and results. Installation steps, minimum versions, command examples, configuration fields, and FAQ-like limitation notes are extensive. Product and command names are mostly stable, though multiple evaluation subprojects and skill names add some complexity. The MIT license file is complete; the README provides versioned release notes and pyproject.toml declares 0.1.8. Contributor attribution and an issue path are visible, but no clear maintainer or maintenance commitment is stated, limiting that score.

Effectiveness9 / 13 · 3.5/5

The product provides per-round status, run reports, JSON reports, and an interactive workbench that make results usable and follow-up work possible. Independent auditing, durable checkpoints, and a shared GUI/CLI loop offer concrete value for long tasks. The README reports benchmark gains, but these are project claims and the packet does not include enough experimental detail to establish general benefits. Multiple backend/model services, GUI plugins, and long-running tasks have costs; requirements are partly described but cost-benefit is not quantified.

Verifiability5 / 8 · 3.1/5

The README's main feature claims partly correspond to the CLI, web API, dependency metadata, release workflow, and sample tests; evaluation skills and evaluation-repository tests provide limited corroboration. Benchmark results and broad task coverage are mostly README claims, without complete trajectories, raw results, or protocols in this packet. The README distinguishes platform limits and the DeepSeek phase boundary, but promotional performance claims are not consistently separated from implementation details directly supported by these files, so full marks are not justified.

Risks and how to mitigate them
  • The README states that DeepSeek task text appears in the child process argument list while a run is active; avoid including secrets or other sensitive content in tasks sent to that backend.
  • The documented tested platform is macOS, and native Windows is limited in v0.1.8; Windows users are directed to WSL2.
  • Benchmark gains are project-reported in the README; this packet lacks full protocols and raw trajectories, so it cannot establish runtime performance.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision d53df0aa11e8 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/longhorizon-harness.svg)](https://followagents.com/en/agents/longhorizon-harness)
<a href="https://followagents.com/en/agents/longhorizon-harness"><img src="https://followagents.com/badge/longhorizon-harness.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.1.8 v0.1.8 — Reliability fixes and configurable final replies
    Release notes excerpt
    v0.1.8 — Resume approvals, role isolation, and output reliability Released 2026-10-21. This patch release includes the fixes merged after v0.1.7 and a configurable closing-reply timeout. Fixes and improvements - Resumed-run approvals: a resumed historical run no longer inherits managed=false and rejects approvals with HTTP 409. Continuing a run preserves its workspace, run ID, and round ledger. [#92](https://github.com/AMAP-ML/LongHorizon-Harness/pull/92), fixes [#83](https://github.com/AMAP-ML/LongHorizon-Harness/issues/83). …
    View on GitHub ↗
  2. v0.1.7
    Release notes excerpt
    What's Changed * fix(tests): skip web-bundle assertion when the frontend is not built by @rajathpi in https://github.com/AMAP-ML/LongHorizon-Harness/pull/31 * fix(webapi): require loopback Host, JSON Content-Type, and a body cap by @SashaMIT in https://github.com/AMAP-ML/LongHorizon-Harness/pull/11 * Harden Web API control request boundaries by @Upper9527 in https://github.com/AMAP-ML/LongHorizon-Harness/pull/47 * Fix stopped-run status and trajectory duplication by @Upper9527 in https://github.com/AMAP-ML/LongHorizon-Harness/pull/48 …
    View on GitHub ↗
  3. v0.1.6
    Release notes excerpt
    What's Changed * Add DeepSeek Harness support by @lerogo in https://github.com/AMAP-ML/LongHorizon-Harness/pull/35 * Fix dashboard static asset MIME types on Windows by @wang-kaopu in https://github.com/AMAP-ML/LongHorizon-Harness/pull/43 * Add Opencode agent support by @izaart95-jpg in https://github.com/AMAP-ML/LongHorizon-Harness/pull/41 * Prevent dashboard FD double-close by @Upper9527 in https://github.com/AMAP-ML/LongHorizon-Harness/pull/45 * Preserve completed rounds in crash reports by @Upper9527 in https://github.com/AMAP-ML/LongHorizon-Harness/pull/46 New Contributors …
    View on GitHub ↗

FAQ

What costs are involved in running LongHorizon-Harness?
LongHorizon-Harness itself is free and open-source, but it relies on agent backends like Claude Code or Codex, which may incur API fees. Additionally, GUI plugins require Node.js 20+ and manual permission grants on macOS for accessibility and screen recording.
What happens if a task fails mid-run?
LongHorizon-Harness uses checkpoints. If an execution fails, the failure evidence is recorded, and the task continues from the last verified checkpoint, preserving completed progress.
Does it support Windows?
The project is primarily tested on macOS; Windows support is included but not fully validated. GUI plugins may not work or require additional setup.
Was this page helpful?
View on GitHub ↗ Install ↓

Host ecosystems

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts