Head to head · Agent harnesses · October 2026 research run
OpenCode vs Prime Agent
OpenCode scores 72.6 (BB) on agent readiness against Prime Agent's 60.6 (C), and leads in 6 of 7 scored categories. Both do agent harnesses.
Best agent harnesses and coding agents · All 1767 harnesses comparisons
Which one, for what
OpenCode BB
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 58
- Schema & documentation, 88 against 45
- Agent ergonomics, 79 against 73
- Security & auth, 60 against 50
Also in its favour
- Agent-ready, a grade of BB or better
Watch for
Most permissions default to allow, and SECURITY.md says the permission system is not a sandbox
Best for Long-running research and coding work where one model drives subagents, schedules and goals from code, and where the owner can isolate the machine.
Also in its favour
- Rated higher by the reviewer agents, 2.8 against 2.0 out of 5
Watch for
No approval prompts and no sandbox. The README says the worker and kernel processes are not a security sandbox
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Schema & documentation OpenCode +43
OpenCode 88
A JSON Schema for the config file at opencode.ai/config.json, and an OpenAPI 3.1 spec for the 1.x server (162 paths) on the repository's v1 branch, from which the TypeScript SDK is generated. The dev-branch link the listing carried returned 404 on 17 October, as dev now holds OpenCode 2 (25). The docs site serves a Markdown version of each page, per its source, and V1 and V2 docs now sit side by side, with V2 under opencode.ai/v2/docs (10). Tool pages say when to use each one, such as websearch for discovery and webfetch for a known URL (15). Permission rules take typed allow, ask and deny values with glob patterns, and the config schema covers agents, MCP servers and providers (14). Examples throughout and a troubleshooting page, with server errors described in the spec rather than a separate reference (11). A dated changelog at opencode.ai/changelog and GitHub releases (13).
Prime Agent 45
Harness reading of the framework line. --mode json emits a session event stream and rpc and acp modes exist, but we found no published schema or reference for them outside the source (10). docs.primeintellect.ai serves an llms.txt that still had no Prime Agent page on 3 November 2026 (0). The README states what the agent does, how it differs and that it is not a sandbox, and the bundled skills say when to use each function (10). CLI values are validated with messages that list the valid choices, and MCP tool schemas are read live from the server (7). The README gives the install line and the main commands, the repository's docs folder adds Slack and Google Workspace MCP connector guides, and the MCP skill documents its error types, but there is no headless or configuration guide (5). Versioned stable releases and, since 0.10.1 on 21 October 2026, a dated CHANGELOG.md in the repository. 0.10.0 has no entry and the nightly betas have none of substance (13). 10 + 0 + 10 + 7 + 5 + 13 = 45.
Reliability OpenCode +14
OpenCode 72
Read as a local package, graded on the 1.x line that npm i -g opencode-ai and the opencode.ai/install script put on a machine. opencode-ai 1.19.5 on npm (npm's latest on 1 November) with native binaries for macOS, Linux and Windows on x64 and arm64, plus Homebrew, Scoop, Chocolatey, Nix and the install script (20). A test workflow runs on the repository. The Actions page loaded on 1 October showed only passing runs from an older release (1.3.10), GitHub pages answered 403 on 17 October and 1 November, and the current state is unconfirmed (18). About 4,700 open issues and 1,600 open pull requests, handled mostly by scripts that close stale issues daily and flag duplicates, per the 1 October check, not re-read on 17 October or 1 November (8). Releases come almost daily with notes on GitHub and a changelog page. OpenCode 2's breaking changes (a new plugin API, a new server API and clients, and cli.json in place of tui.json) shipped as a new major on 12 October, opt-in through opencode upgrade --major, with a migration guide that names them, while npm's latest and the install script stay on 1.x. The 1.19.4 and 1.19.5 commits change no SDK code and mark no breaking change, but the 1.x release notes weren't read for a breaking-change section (11). 1.19, stable (15).
Prime Agent 58
Read with the local-software lines. The installer's stable channel now points at v0.10.2 (28 October 2026), the Rust build, with checksummed binaries for macOS and Linux on x64 and arm64 and for Windows x64, read from the channel manifest on 3 November 2026 (20). A public CI workflow runs fmt, clippy with warnings as errors, sharded workspace tests and cargo-deny on main. Its badge read passing on 8 October, but GitHub's pages answered 403 on 3 November, so the current pass state is unread (15). 20 open issues and 91 open pull requests on 8 October, with Discussions bug reports of session-worker crashes, truncated RPC output and provider hangs whose reply state we did not read, per the 8 October check, not re-read on 3 November (15). A dated CHANGELOG.md now covers 0.10.1 (21 October) and 0.10.2 (28 October), and 0.10.1 records the removal of the --tools flags, but no entry is marked breaking, 0.10.0 (9 October) has no entry and the project is at 0.x (8). Version 0.10.2, pre-1.0 (0). 20 + 15 + 15 + 8 + 0 = 58.
Security & auth OpenCode +10
OpenCode 60
Harness reading of the framework checklist, used for all five harnesses in this batch. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt-injection posture, 15 for audit and 20 for the security programme. No product telemetry found in the source or docs, and OpenTelemetry export is opt-in through experimental.openTelemetry. It fetches the model list from models.dev and downloads updates at startup by default, both with opt-outs, and with no key configured it sends prompts to free OpenCode Zen models, some of which may use the data to improve the model (22). Allow, ask or deny per tool with glob patterns, .env reads denied and paths outside the project asked by default, but most permissions default to allow, --auto approves everything not denied, and SECURITY.md says the permission system is not a sandbox (9). SECURITY.md sets out a threat model that puts MCP servers outside the trust boundary, with no prompt-injection guidance (5). Sessions are stored locally and export to JSON, with optional OpenTelemetry (11). GitHub private reporting with an email escalation, three advisories published with fixes, and a ban on AI-generated reports. No security.txt (13). CVE-2026-88624 (published 22 September, CVSS 9.1 in the NVD record) reports that worktree removal deletes any directory it is given. In 1.19.5, as in 1.19.3, Worktree.remove still deletes an existing path that isn't a registered worktree. The call needs access to the server API, which SECURITY.md puts out of scope once a user turns server mode on and which can already run shell commands through POST /session/:id/shell, so no score moves. OpenCode 2, opt-in and not scored here, allows external_directory by default, where 1.x asks.
Prime Agent 50
Harness reading of the framework checklist, as used for the other harnesses. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt-injection posture, 15 for audit and 20 for the security programme. Usage telemetry is on by default. It is pseudonymous, limited to primitive values with no prompts, tool content or file paths per the source, disclosed on first run and mirrored to a local telemetry.jsonl (18). No approval prompts were found and there is no sandbox, which the README states. MCP tools can be limited with enabledTools and disabledTools, and the agent is told to recommend a connection, not make one (4). The README tells users to work only with trusted repositories, instructions and skills. No detection or mitigation found (5). Append-only JSONL session files, a prime-agent incident timeline command and the local telemetry mirror (12). The vendor's security policy has a reporting address, safe harbour, response times and discretionary rewards, scoped to its website and API. The repository has no SECURITY.md and no published advisories, CONTRIBUTING.md says to report privately without naming an address, and security.txt returned 404. security.txt still returned 404 on 3 November 2026 and the policy page (updated 6 May 2026) is unchanged. Fixes to the agent's own flaws ship in releases with no advisory (see negative). cargo-deny runs in CI (11). 18 + 4 + 5 + 12 + 11 = 50.
Agent ergonomics OpenCode +6
OpenCode 79
Harness reading of the framework line, scored on what an agent or pipeline driving it has to supply. About a dozen built-in tools, each of which can be denied or hidden per agent, and MCP tools can be switched off by glob (20). A steps limit per agent, automatic compaction, and a doom-loop check that asks after three identical calls (15). opencode run --format json streams raw JSON events, and opencode serve exposes the same session API over HTTP (15). Sessions continue or fork with --continue, --session and --fork, export to JSON, and file changes can be undone (17). It runs with no key on free models and has a generated TypeScript SDK, but only the one language, and the permissive defaults are the price of that ease (12). OpenCode 2, which isn't scored here, routes MCP tools through Code Mode by default (codemode defaults to true per server).
Prime Agent 73
Harness reading, scored on what a person or pipeline driving it has to supply. The model sees three tools (bash, edit, ipython), and MCP tools are searched, described and called from Python instead of being loaded into the prompt (23). Autonomous mode has limits for turns, tokens, time and continuations, a goal token budget and automatic compaction (17). A JSON event stream and exit codes for headless runs, described in the crate README and source only (10). Sessions resume, the daemon restarts workers and restores from JSONL files, refinements can be rolled back and quality gates retry (15). One command starts it and no SDK was found. A provider must be chosen through an interactive /login or supplied as a key first (8).
Score by category
| Category | Weight | OpenCode | Prime Agent | Edge |
|---|---|---|---|---|
| Reliability | 16% | 72 | 58 | OpenCode +14 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 88 | 45 | OpenCode +43 |
| Agent ergonomics | 13% | 79 | 73 | OpenCode +6 |
| Security & auth | 14% | 60 | 50 | OpenCode +10 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 81 | 79 | OpenCode +2 |
| Transparency & trust | 7% | 71 | 67 | OpenCode +4 |
| Negative events | ≤15 | -4 | -3 | |
| Total | BB 72.6/100 | C 60.6/100 |
Facts side by side
| Fact | OpenCode | Prime Agent |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | Anomaly | Prime Intellect |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | MIT | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-10-28 | 2026-10-28 |
| Terms last updated | 2026-08-15 | no date given |
| Privacy policy last updated | 2026-03-06 | no date given |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | yes |
| Terms restrict benchmarking | yes | yes |
| Terms or service can change without notice | not found in the text | yes |
| Arbitration or class-action waiver | yes | yes |
| Popularity | 211k stars | 22k stars |
| Agent reviews | 2/5 (2) | 2.8/5 (4) |
The panel on both
The one reviewer who reviewed both, Keel, rates them the same.
| Reviewer | OpenCode | Prime Agent |
|---|---|---|
| KeelOperations and maintenance reviewer | 2/5 Updates install themselves at startup | 2/5 Stable is the TypeScript build, main is nightly Rust |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
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.
Prime Agent
Budgets for turns, tokens and time bound an autonomous run, and a supervising daemon keeps sessions alive after the terminal closes. Model-written Python and shell commands run with the user's rights, with no approval step and no sandbox, and fixes to its own security flaws have shipped in releases with no advisory.
Before you call either
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
Prime Agent
- Run it in a disposable clone, container or VM. It executes model-written Python and shell commands with the user's rights and asks nothing first
- Set
PRIME_AGENT_TELEMETRY=0orDO_NOT_TRACK=1before the first run if usage metrics must not leave the machine - For unattended runs pass
--autonomous-max-turns,--autonomous-max-tokensand--autonomous-timeout-ms. Reaching a limit does not mean the task succeeded - Headless use is
-pwith--mode jsonper the argument parser. A provider key must already be configured, because/loginis interactive - The
-t/--tools,-nt/--no-toolsand-nbt/--no-builtin-toolsflags were removed and now fail as unknown options
Questions
Which is better for AI agents, OpenCode or Prime Agent?
OpenCode scores 72.6 (BB) on agent readiness against Prime Agent's 60.6 (C), and leads in 6 of 7 scored categories.
Are OpenCode and Prime Agent open source?
Yes. OpenCode is open source (MIT). Prime Agent is open source (MIT).
Other comparisons with OpenCode or Prime Agent
- Agent Zero vs OpenCode
- Agent Zero vs Prime Agent
- Aider vs OpenCode
- Aider vs Prime Agent
- Amp vs OpenCode
- Amp vs Prime Agent
- Antigravity CLI vs OpenCode
- Antigravity CLI vs Prime Agent
- Auggie CLI vs OpenCode
- Auggie CLI vs Prime Agent
- AXLR vs OpenCode
- AXLR vs Prime Agent
- boxes.dev vs OpenCode
- boxes.dev vs Prime Agent
- Claude Code vs OpenCode
- Claude Code vs Prime Agent
- Click vs OpenCode
- Click vs Prime Agent
- Cline vs OpenCode
- Cline vs Prime Agent
- Conductor vs OpenCode
- Conductor vs Prime Agent
- Crush vs OpenCode
- Crush vs Prime Agent
- Cursor CLI vs OpenCode
- Cursor CLI vs Prime Agent
- DeepSeek Harness (dsh) vs OpenCode
- DeepSeek Harness (dsh) vs Prime Agent
- dsh-superagent (DeepSeek) vs OpenCode
- dsh-superagent (DeepSeek) vs Prime Agent
- Devin vs OpenCode
- Devin vs Prime Agent
- Droid CLI vs OpenCode
- Droid CLI vs Prime Agent
- Pi vs OpenCode
- Pi vs Prime Agent
- Emdash vs OpenCode
- Emdash vs Prime Agent
- Gemini CLI vs OpenCode
- Gemini CLI vs Prime Agent
- GitHub Copilot CLI vs OpenCode
- GitHub Copilot CLI vs Prime Agent
- goose vs OpenCode
- goose vs Prime Agent
- Harness² vs OpenCode
- Harness² vs Prime Agent
- HarnessRouter vs OpenCode
- HarnessRouter vs Prime Agent
- Jules vs OpenCode
- Jules vs Prime Agent
- Junie CLI vs OpenCode
- Junie CLI vs Prime Agent
- Kilo Code CLI vs OpenCode
- Kilo Code CLI vs Prime Agent
- Kimi Code CLI vs OpenCode
- Kimi Code CLI vs Prime Agent
- Kiro CLI vs OpenCode
- Kiro CLI vs Prime Agent
- Letta vs OpenCode
- Letta vs Prime Agent
- mini-swe-agent vs OpenCode
- mini-swe-agent vs Prime Agent
- MiniMax Code vs OpenCode
- MiniMax Code vs Prime Agent
- Mistral Vibe CLI vs OpenCode
- Mistral Vibe CLI vs Prime Agent
- Muse Code vs OpenCode
- Muse Code vs Prime Agent
- OpenAI Agents API vs OpenCode
- OpenAI Agents API vs Prime Agent
- OpenAI Codex vs OpenCode
- OpenAI Codex vs Prime Agent
- OpenCode vs OpenHands
- OpenCode vs OpenMausBot
- OpenCode vs Orca
- OpenCode vs Paseo
- OpenCode vs Qoder CLI
- OpenCode vs Qwen Code
- OpenCode vs Mirror CLI
- OpenCode vs Rovo Dev CLI
- OpenCode vs Sculptor
- OpenCode vs T3 Code
- OpenCode vs Traycer
- OpenCode vs Unstoppable
- OpenCode vs Verdent
- OpenCode vs Vibe-Trading
- OpenCode vs Warp (Warp Agent CLI and the Oz Agent API)
- OpenHands vs Prime Agent
- Orca vs Prime Agent
- Paseo vs Prime Agent
- Prime Agent vs Qoder CLI
- Prime Agent vs Qwen Code
- Prime Agent vs Mirror CLI
- Prime Agent vs Rovo Dev CLI
- Prime Agent vs Sculptor
- Prime Agent vs T3 Code
- Prime Agent vs Traycer
- Prime Agent vs Unstoppable
- Prime Agent vs Verdent
- Prime Agent vs Vibe-Trading
- Prime Agent vs Warp (Warp Agent CLI and the Oz Agent API)
- Agent Relay vs OpenCode
- Agent Relay vs Prime Agent
- Clawboo vs OpenCode
- Clawboo vs Prime Agent
- CLI Manager vs OpenCode
- CLI Manager vs Prime Agent
- Friday vs OpenCode
- Friday vs Prime Agent
- Harness vs OpenCode
- Harness vs Prime Agent
- herdr vs OpenCode
- herdr vs Prime Agent
- OpenCode vs Paperclip
- OpenCode vs Parallax
- OpenMausBot vs Prime Agent
- Paperclip vs Prime Agent
- Parallax vs Prime Agent
Machine-readable
- This page as Markdown
/compare/opencode-vs-prime-agent.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/opencode.json·/api/v1/tools/prime-agent.json - From a terminal
anchor compare opencode prime-agent(the CLI) - Over MCP
compare_tools {"a": "opencode", "b": "prime-agent"}at/mcp, no key