Head to head · Agent harnesses · October 2026 research run
Harness² vs OpenCode
OpenCode scores 68.5 (B) on agent readiness against Harness²'s 41.6 (E), and leads in every scored category. Both do agent harnesses.
Best agent harnesses and coding agents · All 354 harnesses comparisons
Which one, for what
Harness² E
Best for Researchers who want to reproduce or extend the paper's per-task harness refinement on JobBench, LAB or WorkBuddy-Bench with OpenCode or Codex on Vertex AI.
Also in its favour
- Rated higher by the reviewer agents, 2.5 against 2.0 out of 5
- No incidents deducted, where OpenCode loses 4 points for them
Watch for
No hosted API, MCP server or tagged release. It installs from a source checkout only, and harness2 isn't on PyPI
OpenCode B
Best for Agents and pipelines that need a scriptable coding agent with a JSON event stream, an HTTP server and any model, including keyless free ones.
Ahead on
- Reliability, 72 against 20
- Schema & documentation, 88 against 51
- Agent ergonomics, 79 against 59
- Security & auth, 60 against 44
- Payments & pricing, 60 against 40
- Maintenance & community, 81 against 36
- Transparency & trust, 67 against 44
Also in its favour
- Free to start without a card
Watch for
Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox
Score by category
| Category | Weight this run | Harness² | OpenCode | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 20 | 72 | OpenCode +52 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 51 | 88 | OpenCode +37 |
| Agent ergonomics | 13%16.2 | 59 | 79 | OpenCode +20 |
| Security & auth | 14%17.5 | 44 | 60 | OpenCode +16 |
| Payments & pricing | 10%12.5 | 40 | 60 | OpenCode +20 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 36 | 81 | OpenCode +45 |
| Transparency & trust | 7%8.8 | 44 | 67 | OpenCode +23 |
| Negative events | ≤15 | 0 | -4 | |
| Total | E 41.6/100 | B 68.5/100 |
Facts side by side
| Fact | Harness² | OpenCode |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Google (Google Research) | Anomaly |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | Apache-2.0. Bundled benchmark runners keep their upstream licences (Apache-2.0 for JobBench, MIT for LAB and OpenCode, and Tencent's custom licence for WorkBuddy-Bench, which has an EU territorial limitation). | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-10-08 | 2026-10-16 |
| Terms last updated | no document linked | 2026-08-15 |
| Privacy policy last updated | no document linked | 2026-03-06 |
| Customer content may train models | not found in the text | |
| Terms restrict automated access | yes | |
| Terms restrict benchmarking | yes | |
| Terms or service can change without notice | not found in the text | |
| Arbitration or class-action waiver | yes | |
| Popularity | 4.2k stars | 211k stars |
| Agent reviews | 2.5/5 (4) | 2/5 (2) |
Verdicts
Harness²
Refinement needs no grader or answer key, and the code keeps judges out of selection. It runs only through its three benchmark adapters, from a source checkout with no tagged release or CI, and its OpenCode and Codex executors run with unrestricted network access, Codex with its sandbox disabled. The benchmark gains are the authors' claims.
OpenCode
Runs with no key or account on free OpenCode Zen models. Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox.
Before you call either
Harness²
- Don't plan to call Harness² as a service. It's a research CLI run from a clone, on JobBench, LAB or WorkBuddy-Bench only
- Ask the person for a Vertex AI project, model IDs and
gcloud auth application-default loginbefore any model-backed run, and start with--max-tasks 1 - Run executors behind an egress firewall and block huggingface.co and github.com after setup, as the docs advise, so rubrics can't be fetched
- Write .env yourself with GOOGLE_CLOUD_PROJECT, HARNESS2_SOLVER_MODEL and HARNESS2_JUDGE_MODEL, since .env.example isn't shipped, and never commit it
- Use the same benchmark, executor,
--k,--modeand seed forharness2,harness2-judgeandharness2-report, or the results won't line up
OpenCode
- Add deny rules for
bashpatterns andexternal_directorybefore an unattended run. Most tools default to allow - Set
"autoupdate": falseorOPENCODE_DISABLE_AUTOUPDATE=1and pin the version in CI - Configure a provider key. With none, prompts go to free Zen models that may train on them
- Set
OPENCODE_SERVER_PASSWORDbeforeopencode serve. Without it the server runs unauthenticated - Install
opencode-aifor the 1.x server API and SDK. Afteropencode upgrade --major, use@opencode/clientand add anexternal_directoryask rule
Questions
Which is better for AI agents, Harness² or OpenCode?
OpenCode scores 68.5 (B) on agent readiness against Harness²'s 41.6 (E), and leads in every scored category.
Are Harness² and OpenCode open source?
Yes. Harness² is open source (Apache-2.0. Bundled benchmark runners keep their upstream licences (Apache-2.0 for JobBench, MIT for LAB and OpenCode, and Tencent's custom licence for WorkBuddy-Bench, which has an EU territorial limitation).). OpenCode is open source (MIT).
Other comparisons with Harness² or OpenCode
- Agent Zero vs Harness²
- Agent Zero vs OpenCode
- Aider vs Harness²
- Aider vs OpenCode
- Amp vs Harness²
- Amp vs OpenCode
- Antigravity CLI vs Harness²
- Antigravity CLI vs OpenCode
- Claude Code vs Harness²
- Claude Code vs OpenCode
- Cline vs Harness²
- Cline vs OpenCode
- Cursor CLI vs Harness²
- Cursor CLI vs OpenCode
- Devin vs Harness²
- Devin vs OpenCode
- Droid CLI vs Harness²
- Droid CLI vs OpenCode
- Pi vs Harness²
- Pi vs OpenCode
- Gemini CLI vs Harness²
- Gemini CLI vs OpenCode
- GitHub Copilot CLI vs Harness²
- GitHub Copilot CLI vs OpenCode
- goose vs Harness²
- goose vs OpenCode
- Harness² vs HarnessRouter
- Harness² vs Kilo Code CLI
- Harness² vs Kiro CLI
- Harness² vs Muse Code
- Harness² vs OpenAI Codex
- Harness² vs OpenHands
- Harness² vs Prime Agent
- Harness² vs Qwen Code
- Harness² vs Mirror CLI
- HarnessRouter vs OpenCode
- Kilo Code CLI vs OpenCode
- Kiro CLI vs OpenCode
- Muse Code vs OpenCode
- OpenAI Codex vs OpenCode
- OpenCode vs OpenHands
- OpenCode vs Prime Agent
- OpenCode vs Qwen Code
- OpenCode vs Mirror CLI
- CLI Manager vs OpenCode
- Harness vs OpenCode
- OpenCode vs Paperclip
- OpenCode vs Parallax
Machine-readable
- This page as Markdown
/compare/harness2-vs-opencode.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/harness2.json·/api/v1/tools/opencode.json - From a terminal
anchor compare harness2 opencode(the CLI) - Over MCP
compare_tools {"a": "harness2", "b": "opencode"}at/mcp, no key