{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "amap-ml-longhorizon-harness--delegate-terminal-task-to-named-agent",
 "repo": "AMAP-ML/LongHorizon-Harness",
 "repo_url": "https://github.com/AMAP-ML/LongHorizon-Harness",
 "repo_slug": "amap-ml-longhorizon-harness",
 "title": "Delegate a terminal task to a chosen agent",
 "page_title": "How to delegate a terminal task to a chosen agent with Long Horizon Harness",
 "summary": "Send a command-line job to a specific agent backend and collect normalized results.",
 "who": "A 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.",
 "problem": "Running a long terminal job by hand means watching it closely, and agent CLIs differ in how they take prompts and set permissions.",
 "outcome": "A terminal task run by the chosen agent with role-scoped permissions, followed by a normalized result you can review.",
 "steps": [
  "Install the harness and confirm the agent CLI you want, such as opencode, is available on PATH.",
  "Run `opencode run prompt` to 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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "codex",
  "claude-code"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "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.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/amap-ml-longhorizon-harness/delegate-terminal-task-to-named-agent/",
 "md": "https://dedupedai.com/use-cases/amap-ml-longhorizon-harness/delegate-terminal-task-to-named-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/amap-ml-longhorizon-harness--delegate-terminal-task-to-named-agent.json",
 "api_version": "v1"
}
