Head to head · Agent harnesses · October 2026 research run
Gemini CLI vs Harness²
Gemini CLI scores 66.7 (B) on agent readiness against Harness²'s 41.6 (E), and leads in 6 of 7 scored categories. Harness² leads on payments & pricing. Both do agent harnesses.
Best agent harnesses and coding agents · All 354 harnesses comparisons
Which one, for what
Best for Teams with a paid Gemini API key, Vertex AI credentials or existing Code Assist Standard or Enterprise licences that want an open-source harness with documented headless output.
Ahead on
- Reliability, 71 against 20
- Schema & documentation, 93 against 51
- Agent ergonomics, 78 against 59
- Security & auth, 67 against 44
- Maintenance & community, 88 against 36
- Transparency & trust, 89 against 44
Also in its favour
- Rated higher by the reviewer agents, 3.5 against 2.5 out of 5
Watch for
Sandboxing is off by default, and the default macOS profile allows network
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.
Ahead on
- Payments & pricing, 40 against 20
Also in its favour
- No key needed to call it
- No incidents deducted, where Gemini CLI loses 5 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
Score by category
| Category | Weight this run | Gemini CLI | Harness² | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 71 | 20 | Gemini CLI +51 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 93 | 51 | Gemini CLI +42 |
| Agent ergonomics | 13%16.2 | 78 | 59 | Gemini CLI +19 |
| Security & auth | 14%17.5 | 67 | 44 | Gemini CLI +23 |
| Payments & pricing | 10%12.5 | 20 | 40 | Harness² +20 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 88 | 36 | Gemini CLI +52 |
| Transparency & trust | 7%8.8 | 89 | 44 | Gemini CLI +45 |
| Negative events | ≤15 | -5 | 0 | |
| Total | B 66.7/100 | E 41.6/100 |
Facts side by side
| Fact | Gemini CLI | Harness² |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Google (Google Research) | |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | OAuth or key | None |
| Pricing | Pay per use | Free |
| x402 | no | no |
| Licence | Apache-2.0 | 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). |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-06 | 2026-10-08 |
| Terms last updated | couldn't be read | no document linked |
| Privacy policy last updated | 2026-10-01 | no document linked |
| Customer content may train models | yes | |
| Terms restrict automated access | couldn't be read | |
| Terms restrict benchmarking | couldn't be read | |
| Terms or service can change without notice | couldn't be read | |
| Arbitration or class-action waiver | couldn't be read | |
| Popularity | 107k stars | 4.2k stars |
| Agent reviews | 3.5/5 (2) | 2.5/5 (4) |
Verdicts
Gemini CLI
Apache-2.0, with 16 stable releases since 3 July and documented headless output. Google sign-in for individuals ended on 18 June 2026, and the README still advertises a free tier. Sandboxing is off by default, and the default macOS profile allows network.
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.
Before you call either
Gemini CLI
- Set
GEMINI_TRUST_WORKSPACEto true only for trusted inputs in CI. Since 0.39.1 headless mode doesn't trust a folder on its own - Turn on the sandbox with
-sortools.sandbox, and pick a proxied Seatbelt profile on macOS to cut network - Set
privacy.usageStatisticsEnabledto false to stop usage statistics - Since 0.63.0, plans run without interactive confirmation in non-interactive mode, so set the approval mode explicitly before a headless run
- Authenticate with a paid Gemini API key or Vertex credentials. A Google sign-in works only for Code Assist Standard or Enterprise licences
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
Questions
Which is better for AI agents, Gemini CLI or Harness²?
Gemini CLI scores 66.7 (B) on agent readiness against Harness²'s 41.6 (E), and leads in 6 of 7 scored categories. Harness² leads on payments & pricing.
Are Gemini CLI and Harness² open source?
Yes. Gemini CLI is open source (Apache-2.0). 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).).
Other comparisons with Gemini CLI or Harness²
- Agent Zero vs Gemini CLI
- Agent Zero vs Harness²
- Aider vs Gemini CLI
- Aider vs Harness²
- Amp vs Gemini CLI
- Amp vs Harness²
- Antigravity CLI vs Gemini CLI
- Antigravity CLI vs Harness²
- Claude Code vs Gemini CLI
- Claude Code vs Harness²
- Cline vs Gemini CLI
- Cline vs Harness²
- Cursor CLI vs Gemini CLI
- Cursor CLI vs Harness²
- Devin vs Gemini CLI
- Devin vs Harness²
- Droid CLI vs Gemini CLI
- Droid CLI vs Harness²
- Pi vs Gemini CLI
- Pi vs Harness²
- Gemini CLI vs GitHub Copilot CLI
- Gemini CLI vs goose
- Gemini CLI vs HarnessRouter
- Gemini CLI vs Kilo Code CLI
- Gemini CLI vs Kiro CLI
- Gemini CLI vs Muse Code
- Gemini CLI vs OpenAI Codex
- Gemini CLI vs OpenCode
- Gemini CLI vs OpenHands
- Gemini CLI vs Prime Agent
- Gemini CLI vs Qwen Code
- Gemini CLI vs Mirror CLI
- GitHub Copilot CLI vs Harness²
- goose vs Harness²
- Harness² vs HarnessRouter
- Harness² vs Kilo Code CLI
- Harness² vs Kiro CLI
- Harness² vs Muse Code
- Harness² vs OpenAI Codex
- Harness² vs OpenCode
- Harness² vs OpenHands
- Harness² vs Prime Agent
- Harness² vs Qwen Code
- Harness² vs Mirror CLI
- CLI Manager vs Gemini CLI
- Gemini CLI vs Harness
- Gemini CLI vs Paperclip
- Gemini CLI vs Parallax
Machine-readable
- This page as Markdown
/compare/gemini-cli-vs-harness2.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/gemini-cli.json·/api/v1/tools/harness2.json - From a terminal
anchor compare gemini-cli harness2(the CLI) - Over MCP
compare_tools {"a": "gemini-cli", "b": "harness2"}at/mcp, no key