Who it is forA developer who wants a long terminal job, such as code changes or a debugging session, run by a particular agent CLI with its own permissions.
The problemRunning a long terminal job by hand means watching it closely, and agent CLIs differ in how they take prompts and set permissions.
The outcomeA terminal task run by the chosen agent with role-scoped permissions, followed by a normalized result you can review.
What you need first
- uv, or pip with Python 3.10 or later
- One agent runtime on PATH, such as codex, claude, or opencode
- A goal for the agent and a project folder to work in
Steps
- Install the harness and confirm the agent CLI you want, such as opencode, is available on PATH.
- Run
opencode run promptto confirm the OpenCode CLI works on your machine before you use it through the harness. - Start a CLI task with the harness and select the agent with
--agent opencode; check the CLI setup section for the exact run command. (inferred, check the README) - Review the normalized result and the Auditor's checks in the output before you accept the work.
Prompt for your agent
Use the LongHorizon-Harness repo at <repo path> to run a terminal task for <goal> with the --agent opencode option. Expected output: the normalized result file or summary for <goal>. Verify that the tests or commands named in the goal were actually executed and passed.
Caveat. The exact harness run command for CLI tasks is not visible in the truncated README, so the step marked inferred must be checked against the CLI setup section.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for AMAP-ML/LongHorizon-Harness and "Delegate a terminal task to a chosen agent"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer