Head to head · Agent harnesses · October 2026 research run
mini-swe-agent vs OpenCode
OpenCode scores 68.5 (B) on agent readiness against mini-swe-agent's 56.7 (C), and leads in 6 of 7 scored categories. Both do agent harnesses.
Best agent harnesses and coding agents · All 713 harnesses comparisons
Which one, for what
Best for Benchmark runs, research baselines and RL or fine-tuning pipelines that want a minimal, readable agent with a linear trajectory, and for people who want to read every line of their harness.
Also in its favour
- Rated higher by the reviewer agents, 3.0 against 2.0 out of 5
Watch for
The default local environment runs commands on the host with no isolation and the full host environment
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
- Schema & documentation, 88 against 58
- Agent ergonomics, 79 against 69
- Maintenance & community, 81 against 49
- Transparency & trust, 67 against 51
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 | mini-swe-agent | OpenCode | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 70 | 72 | OpenCode +2 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 58 | 88 | OpenCode +30 |
| Agent ergonomics | 13%16.2 | 69 | 79 | OpenCode +10 |
| Security & auth | 14%17.5 | 56 | 60 | OpenCode +4 |
| Payments & pricing | 10%12.5 | 60 | 60 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 49 | 81 | OpenCode +32 |
| Transparency & trust | 7%8.8 | 51 | 67 | OpenCode +16 |
| Negative events | ≤15 | -4 | -4 | |
| Total | C 56.7/100 | B 68.5/100 |
Facts side by side
| Fact | mini-swe-agent | OpenCode |
|---|---|---|
| Kind | Agent harness | Agent harness |
| Vendor | SWE-bench team (Princeton and Stanford) | Anomaly |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | MIT | MIT |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-07-23 | 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 | 8.6k stars, 4.4M PyPI/wk | 211k stars |
| Agent reviews | 3/5 (4) | 2/5 (2) |
Verdicts
mini-swe-agent
A small, readable harness with one bash tool, a linear trajectory saved as JSON, and step, cost and wall-time limits that stop unattended runs cleanly. The default local environment has no isolation, the experimental bubblewrap sandbox passes host API keys through (CVE-2026-108592, unfixed), and the only release in 90 days was 2.4.6 on 23 July 2026.
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
mini-swe-agent
- Run with
-y --exit-immediatelyfor unattended use. Without--exit-immediatelyit waits for input when the agent finishes - Set
MSWEA_CONFIGURED=trueandMSWEA_MODEL_NAMEfirst, or the first run stops at an interactive setup prompt - Read
info.exit_statusin the-otrajectory file. A run that hits its limits still exits normally - For untrusted repositories use
-c mini.yaml -c environment.environment_class=docker -c environment.image=<image>. The local and bubblewrap environments both expose host variables - Strip model keys from the environment commands see, since the local environment passes every host variable to each command
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, mini-swe-agent or OpenCode?
OpenCode scores 68.5 (B) on agent readiness against mini-swe-agent's 56.7 (C), and leads in 6 of 7 scored categories.
Are mini-swe-agent and OpenCode open source?
Yes. mini-swe-agent is open source (MIT). OpenCode is open source (MIT).
Other comparisons with mini-swe-agent or OpenCode
- Agent Zero vs mini-swe-agent
- Agent Zero vs OpenCode
- Aider vs mini-swe-agent
- Aider vs OpenCode
- Amp vs mini-swe-agent
- Amp vs OpenCode
- Antigravity CLI vs mini-swe-agent
- Antigravity CLI vs OpenCode
- Auggie CLI vs mini-swe-agent
- Auggie CLI vs OpenCode
- Claude Code vs mini-swe-agent
- Claude Code vs OpenCode
- Cline vs mini-swe-agent
- Cline vs OpenCode
- Crush vs mini-swe-agent
- Crush vs OpenCode
- Cursor CLI vs mini-swe-agent
- Cursor CLI vs OpenCode
- DeepSeek Harness (dsh) vs mini-swe-agent
- DeepSeek Harness (dsh) vs OpenCode
- Devin vs mini-swe-agent
- Devin vs OpenCode
- Droid CLI vs mini-swe-agent
- Droid CLI vs OpenCode
- Pi vs mini-swe-agent
- Pi vs OpenCode
- Gemini CLI vs mini-swe-agent
- Gemini CLI vs OpenCode
- GitHub Copilot CLI vs mini-swe-agent
- GitHub Copilot CLI vs OpenCode
- goose vs mini-swe-agent
- goose vs OpenCode
- Harness² vs mini-swe-agent
- Harness² vs OpenCode
- HarnessRouter vs mini-swe-agent
- HarnessRouter vs OpenCode
- Jules vs mini-swe-agent
- Jules vs OpenCode
- Junie CLI vs mini-swe-agent
- Junie CLI vs OpenCode
- Kilo Code CLI vs mini-swe-agent
- Kilo Code CLI vs OpenCode
- Kimi Code CLI vs mini-swe-agent
- Kimi Code CLI vs OpenCode
- Kiro CLI vs mini-swe-agent
- Kiro CLI vs OpenCode
- mini-swe-agent vs Mistral Vibe CLI
- mini-swe-agent vs Muse Code
- mini-swe-agent vs OpenAI Codex
- mini-swe-agent vs OpenHands
- mini-swe-agent vs Prime Agent
- mini-swe-agent vs Qoder CLI
- mini-swe-agent vs Qwen Code
- mini-swe-agent vs Mirror CLI
- mini-swe-agent vs Rovo Dev CLI
- mini-swe-agent vs Warp (Warp Agent CLI and the Oz Agent API)
- Mistral Vibe CLI vs OpenCode
- Muse Code vs OpenCode
- OpenAI Codex vs OpenCode
- OpenCode vs OpenHands
- OpenCode vs Prime Agent
- OpenCode vs Qoder CLI
- OpenCode vs Qwen Code
- OpenCode vs Mirror CLI
- OpenCode vs Rovo Dev CLI
- OpenCode vs Warp (Warp Agent CLI and the Oz Agent API)
- CLI Manager vs OpenCode
- Harness vs OpenCode
- OpenCode vs Paperclip
- OpenCode vs Parallax
Machine-readable
- This page as Markdown
/compare/mini-swe-agent-vs-opencode.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/mini-swe-agent.json·/api/v1/tools/opencode.json - From a terminal
anchor compare mini-swe-agent opencode(the CLI) - Over MCP
compare_tools {"a": "mini-swe-agent", "b": "opencode"}at/mcp, no key