Deep research · Fresh sources
Best open source agent coding harness
Completed October 19, 2026
Best open-source agent coding harnesses, October 2026
Direct answer: There is no single best harness for everyone. If you need one default today, pick OpenCode — the strongest general-purpose open-source harness for model-agnostic, terminal-first daily coding. Cline is the better editor-integrated choice when you want a human approval step on every edit; OpenHands is the right tool for unattended, sandboxed repository work; and Goose is the most defensible pick for governance-sensitive or fully local stacks. Avoid starting new projects on Aider — it stopped shipping in early 2026.
A coding-agent harness is the runtime layer around a model: the agent loop, tool interface, context management, and control mechanisms. That definition was formalized in mid-2026, and a recent source-code study applying it to eleven coding agents found the harness — not just the model — decides much of what an agent can actually do source-code study of eleven coding agents. The word also has two separate meanings you may see elsewhere: evaluation harnesses (SWE-bench, Terminal-Bench) that measure model-plus-tool pairs, and libraries (Pydantic AI Harness, smolagents, Deep Agents) that you build from. This report covers the runtime products; benchmark instruments appear only where they affect the choice.
The shortlist, October 2026
| Tool | License and status | Best at | Biggest trade-off |
|---|---|---|---|
| OpenCode | MIT; active, but mid-transition from v1 to v2 | Model freedom (75+ providers), terminal, desktop, and integrated development environment (IDE) surfaces, plugin ecosystem | No built-in sandbox; permission rules only; single-vendor stewardship |
| Pi | MIT; 1.0 shipped Oct 1, 2026 | Smallest auditable loop; sub-1,000-token system prompt; TypeScript extensions | Few safety rails by design; Model Context Protocol (MCP) support is brand new |
| Goose | Apache-2.0; Linux Foundation Agentic AI Foundation since Dec 2025, repo moved April 2026 | Neutral governance, local-model runtimes, API plus desktop plus command-line interface (CLI) | More general automation tool; no completed SOC 2 or ISO 27001 |
| Cline | Apache-2.0 (VS Code, CLI, SDK); JetBrains plugins closed-source | Editor-native, ask-before-edit workflow; checkpoints | Editor-centric; enterprise controls behind a paid tier |
| OpenHands | MIT; active | Per-session Docker sandbox; autonomous multi-step repo and pull-request work | Docker operations burden; large-repository initialization trouble |
| Aider | Apache-2.0; dormant (last release Feb 2026) | Git-native auto-commit and undo | Unmaintained; no MCP, no subagents, no workflow engine |
| DeepSeek Harness | MIT; developer preview since Aug 13, 2026 | Everything-is-a-plugin architecture; high momentum | Explicitly preview status; breaking changes promised |
| Codex CLI | Apache-2.0; OpenAI | OS-native sandbox; fast Rust binary | OpenAI-steered; limited non-OpenAI provider story |
OpenCode is the most-starred open-source option, at roughly 209,000 stars versus Aider's roughly 49,000 in a late-September 2026 comparison, and both are free bring-your-own-key tools OpenCode versus Aider comparison. Roundups from September and October 2026 arrive at the same shortlist, with candidates trading places depending on whether the author weights turnkey polish, sandbox isolation, or governance open-source assistant roundup; practical agentic tools comparison.
Which one fits your workflow
| If you... | Pick | Caveat |
|---|---|---|
| Code daily in a terminal with whatever model you like | OpenCode | Run untrusted outputs in a container; it has no sandbox |
| Want the smallest agent loop you can read and modify yourself | Pi | You bring your own permission rails |
| Live in VS Code and want approval on every edit or command | Cline | JetBrains plugins are not open source; approvals slow long tasks |
| Need unattended, isolated, multi-step repo or pull-request work | OpenHands | Budget for Docker, including Docker-in-Docker in continuous integration (CI) |
| Are governance-driven, want Linux Foundation stewardship, or mostly use local models | Goose | Fewer published coding-benchmark results than OpenCode or OpenHands |
| Want git-native pair programming with automatic commits and undo | Aider | Keep existing setups only; do not adopt for new work |
| Want the most extensible, plugin-everything platform | DeepSeek Harness | Preview software; re-evaluate after it stabilizes |
| Need a sandboxed command-line agent out of the box | Codex CLI | Strongest if you already use OpenAI plans or the OpenAI API |
Why the harness choice matters more than people assume
The harness, not just the model, determines score, latency, and cost:
- The same model can score 42% versus 78% under different scaffolds, and one team moved an agent from 52.8% to 66.5% on Terminal-Bench by changing only the harness prompt, tools, and middleware.
- Removing 80% of available tools took one setup from 80% to 100% task success, more than halved tokens, and cut task time from 724 to 141 seconds.
- Identical model weights have differed by double-digit benchmark points across harnesses, and context handling alone can swing results — one unmanaged agent reportedly lost 78.7% of tasks to context overflow at a 32k-token window.
These are single-case and partly vendor-adjacent measurements, not an official league table, but recent research on building coding agents points the same direction: the scaffold around the model is where much of the real engineering leverage sits AgentSWE study; harness source-code study. Token overhead — a direct cost and latency proxy — also varies several-fold by harness on identical trivial prompts (about 5,400 tokens for Cline versus roughly 13,400 for OpenCode and about 31,500 for Claude Code in one test). Treat exact figures as version-dependent, but the direction is consistent: lean permission and context configuration is materially cheaper per request.
Security and sandboxing: match the trust boundary to your deployment
| Tool | Isolation model | Notes |
|---|---|---|
| OpenHands | Per-session Docker container (Kubernetes and process backends available) | Strongest isolation, but common installs mount the Docker socket into the controller, which can expose the host if the controller is compromised; no deterministic OS-level command policy, credential redaction, or signed audit log yet; SOC 2 Type II reported in progress |
| Codex CLI | OS-native sandbox (Seatbelt on macOS, Bubblewrap on Linux) | Sandbox by default; approval modes available |
| Cline | Ask before every edit and command by default | No shell allow/deny list in the CLI; use pre-tool-use hooks; a .clineignore file excludes secrets Cline CLI reference |
| OpenCode | None; permission rules only (allow, ask, deny per tool) | Full-access build agent; shared-session links reportedly stay public until manually unshared; telemetry defaults undocumented |
| Pi | None by default; runs with your process rights | Documentation directs users to containerize; deliberately minimal |
| Goose | Operating-system permissions; opt-in telemetry only | Best-documented telemetry posture; review MCP extensions before enabling |
No open-source harness in this set holds a completed SOC 2 Type II or ISO 27001 certificate; regulated teams reach compliance through self-hosting or a private cloud plus their own controls, not vendor attestation. Sandbox-style isolation is also a real operating cost, with per-session containers or microVM sandboxes billed as their own infrastructure line rather than a free default cloud sandbox pricing and isolation guide.
Cross-cutting cautions: the MCP server supply chain is a live risk surface — a July 2025 command-injection vulnerability in a widely downloaded MCP tool, plus large shares of registered MCP servers running unauthenticated. Scan extensions before enabling them, and treat tool descriptions and repository files as hostile input; prompt-injection and goal-hijacking issues affect every harness equally.
Interoperability and lock-in
Standards are converging, which lowers switching cost: AGENTS.md for repository instructions, MCP for tools, the Agent Client Protocol (ACP) for editor-to-agent integration, and SKILL.md for portable skills. Cliff notes: AGENTS.md is now read by most major harnesses (Claude Code added it in September 2026); the MCP spec's November 2025 move from server-sent events to Streamable HTTP is not fully backward compatible with older servers; and ACP is supported by OpenCode, OpenHands, Goose, and others.
Two practical traps. First, a local CLAUDE.md file (including CLAUDE.local.md) overrides the team AGENTS.md, which can silently strip a developer from team rules. Second, conversation history is largely not portable between harnesses — only Aider's git-commit trail survives a tool switch cleanly.
License is necessary but not sufficient against lock-in. Roo Code was Apache-2.0 and was still archived in May 2026 when its team pivoted to a source-available paid product Roo Code archive. Governance matters too: Goose's move to the Linux Foundation-hosted Agentic AI Foundation (announced December 2025, repository transferred April 2026) is the strongest neutral-stewardship signal in the set, while OpenCode remains single-vendor. Also note license edge cases: Cline's JetBrains plugins are closed-source, and Charm's Crush uses the FSL-1.1-MIT future license, which is not Open Source Initiative (OSI)-approved — either can fail a strict open-source procurement policy.
What it costs
- Software is $0 for every true open-source option. Paid tiers are optional add-ons: OpenCode Go at $10 per month and Go Plus at $40 per month, for example OpenCode pricing; ClinePass at $9.99 per month; OpenHands Cloud's individual plan is free with pay-as-you-go model usage, and enterprise pricing is quoted.
- Caveat: pricing aggregators disagree on the OpenCode plan names (some list a 'Zen' tier), so confirm current plans on the vendor site before budgeting OpenCode pricing.
- Total cost is dominated by model tokens and self-hosting. Practical reference points: a 27B–70B-class open model roughly breaks even against a hosted frontier-class model near 10–15 million tokens per day and only with sustained GPU utilization near 50%; hosted API prices fell about 80% across 2025–2026, which keeps pushing that break-even higher. Local-model trap: Ollama defaults to a 4,096-token context and truncates silently, which degrades these agents invisibly — raise the context window and re-test before judging local-model quality.
- Vendor cost claims are directional only. AWS's Strands harness reports anything from an official 28% lower token cost to one 77% cheaper benchmark run versus Claude Code; these figures are vendor-authored and unreconciled across sources. The one robust conclusion: the harness's prompt and tool configuration, not just the model tier, sets the price of a result.
Benchmarks: read every score as a model-plus-harness pair
Frontier coding benchmarks have saturated or split into standardized versus vendor-tuned tracks: SWE-bench Verified topped out at 97.0% (Claude Opus 5) and was archived as a differentiator in September 2026; SWE-bench Pro's standardized scaffold sits near 61.5% while vendor-tuned harness runs reach roughly 89.9%; Terminal-Bench 4.0's top entry is 64.8% for Claude Code plus Opus 5.5. OpenCode is one of the harnesses tracked in the Artificial Analysis coding-agent index alongside closed options Artificial Analysis index. OpenHands has a credible independently reported result of about 72% on SWE-bench Verified with Sonnet 4.5; a 78% figure also circulates but lacks a primary source, so use the 72%. Aider's own polyglot leaderboard has not been refreshed with 2026 models, which is another reflection of its dormancy.
For the instrument question — which harness should I use to measure models — the answer is different: mini-SWE-agent is the standardized scaffold behind today's top public benchmark rows, and Terminal-Bench is the stronger instrument for measuring the full harness-plus-model system rather than the model alone.
Accessibility and daily usability
OpenCode has the broadest polished surfaces — terminal UI, desktop app, IDE extension, plan mode, permission engine — and is the consensus daily-usability default in recent practical comparisons practical agentic tools comparison; open-source assistant roundup. Cline's ask-before-everything model is safer but slow for long tasks unless you enable auto-approval for trusted scopes Cline CLI reference.
Accessibility is the weakest measured area: no open-source harness documents a screen-reader mode, and no published accessibility audit exists for any of them. Claude Code (closed-source) has the most explicit screen-reader support and remains the baseline others are measured against, and open accessibility gaps persist even in community client surfaces OpenCode Android accessibility issue. If assistive-technology support is a hard requirement, pilot before adopting any of these.
Recommendation
Default stack for a new team, October 2026:
- Use OpenCode as the interactive, model-agnostic daily driver — and set a two-line policy: no public share links for private repositories, and run any untrusted generated code in a container or CI.
- Keep Cline for VS Code users who want per-edit approval and checkpoints.
- Reserve OpenHands for unattended, Docker-isolated tasks (long pull requests, CI agents), budget the Docker operations, and measure workspace-initialization time on your largest repository first.
- Standardize repository instructions in AGENTS.md, connect tools through MCP, and prefer ACP-compatible agents so tools and editors stay swappable.
- Do not adopt Aider for new work; keep legacy Aider workflows explicitly frozen. Watch DeepSeek Harness for a post-preview re-evaluation, and Goose if governance requirements tighten.
Verify before you commit
- Confirm the current release, commit cadence, and open-issue volume on GitHub for your two finalists (versions move fast: OpenCode is between v1 and v2, Pi just shipped 1.0).
- Ask OpenHands directly for current SOC 2 and ISO status, and check whether your deployment would mount the Docker socket.
- Check Cline's JetBrains plugin licensing against your procurement policy if JetBrains matters to you.
- Review and pin any MCP servers you enable, and check their authentication defaults.
- Run one destructive command under default permissions in each finalist and confirm the gate behaves as documented.
- Reproduce one realistic task with the same model in each finalist, recording tokens, latency, and success before declaring a winner.