Capital & Compute

The Best Open Agent Harnesses

Tracker· Updated September 2026· 15 harnesses

A new harness ships every few days, most of them open source. This tracker follows the open and community ones: who makes each, what license it carries, whether it locks you to one provider, whether it runs local models, and how it behaves when the context fills. For the commercial coding agents (Claude Code, Cursor, Copilot, Codex) see theAI coding agents comparison, and for the models inside them the AI model release tracker.

Which agent harness should you use in 2026?

There is no single best agent harness in 2026. For local open-weight coding, Pi keeps context leanest, OpenCode gives the widest provider freedom, Aider brings git discipline to terminal pair programming, DeepSeek Harness handles the longest token-heavy runs, and Hermes Agent adds memory across sessions. Choose by failure behavior (compaction, tool-fail loops, done-gating) and by whether it locks you to one provider, not by star count.

The short list, by constraint

State your constraint and start here. Each pick links to its mini-review below.

HarnessMakerLicenseInterfaceAny modelLocalWhen context fillsBest for
OpenCodeFree, MIT; bring your own keysAnomaly (SST team)MITCLI/TUI, desktop, webYesYesSession compaction with recent turns preservedProvider freedom across 75+ providers plus local models
PiFree, MIT; bring your own keysMario ZechnerMITCLI/TUIYesYesMinimal starting context; extension hooksFeatherweight local runs where context must stay small
oh-my-piFree, MIT; bring your own keyscan1357 (community)MITCLI/TUIYesYesPer-role models plus LSP-aware editsDaily local driver with per-task model roles and LSP edits
DeepSeek HarnessFree, MIT; API tokens billed separatelyDeepSeekMITWeb UI, CLIYesNoAppend-only session log; resume, fork, replayLong token-heavy runs you can walk away from
Hermes AgentFree, MIT; bring your own keysNous ResearchMITCLI, desktop, chat gatewayYesYesPersistent memory plus stuck-loop detectionSelf-hosted general agent with memory across sessions
ZCodeGLM Coding Plan subscriptionZ.aiProprietary planDesktop, mobile remote, bot channelNoNoGoal decomposition into verified subagentsGoal-based coding on GLM with phone and bot control
Kilo CodeFree; bring your own keys, paid pass availableKiloApache-2.0 / MITVS Code, JetBrains, CLIYesYesWorkspace snapshots shared across IDE and CLIOne config across VS Code, JetBrains and CLI
ClineFree, Apache-2.0; bring your own keysClineApache-2.0IDE extension, CLI, SDKYesYesCheckpoints with Plan mode before Act modeEditor-native autonomy with Plan and Act modes
HaxFree, MIT; bring your own keysOleksandr ChekhovskyiMITTerminal REPL, one-shotYesYesPlain-text sessions resumed per directorySingle-binary agent that leaves RAM for the model
OctoMindFree, Apache-2.0; bring your own keysMuvon (community)Apache-2.0CLIYesNoAdaptive compression plus supervisor done-gateLong sessions with duplicate-call and done-state guards
little-coderFree; bring your own keysL3tum (community)Not stated (Pi fork)CLI/TUI (Pi-based)YesYesAutomatic pi-vcc compaction with resume fixesPi-based local coding with pipelined review subagents
NitroFree community build; confirm at the repochrisws (community)Not statedWebappYesYesCustom loop; confirm behavior at the repoCommunity webapp for multi-machine local setups
AiderFree, Apache-2.0; bring your own keysAider-AIApache-2.0TerminalYesYesRepo map keeps large codebases in reachTerminal pair programming with git discipline
OpenHandsFree, MIT self-hosted; paid cloud availableOpenHandsMITWeb control center, CLIYesYesSession persistence across local and cloud backendsSelf-hosted agent team with scheduled automations
GooseFree, Apache-2.0; bring your own keysAAIF (Linux Foundation)Apache-2.0Desktop app, CLI, APIYesYesReusable recipes for repeatable runsGeneral agent beyond code, desktop or CLI
Names link to a full deep-dive where one exists, otherwise to the maker repo or site. Every row is grounded to its primary source; confirm at the link before installing.

The 15 harnesses, one by one

One verdict each, grounded in the row's own repo or docs. Mini-reviews, not rankings: the right pick depends on your constraint, which is what the short list above is for.

OpenCode

The default open pick for most builders: one tool across terminal, desktop and web with dozens of providers, so a pricing change never strands you. It installs with one shell command and drives dozens of providers through Models.dev, with LSP support and parallel sessions. The tradeoff for that breadth is surface area: more providers, more config, more to learn than a single-purpose loop. Read the OpenCode deep-dive.

Pi

The minimalist: the smallest starting context on this page with an extension API, in exchange for owning sandboxing and permissions yourself. It ships with strong defaults but deliberately skips subagents and plan mode, and it carries no permission system: sandboxing is yours to arrange via containers. That honesty is the appeal. When a tool call fails there is almost nowhere for the fault to hide, which makes Pi the easiest harness on this page to debug.Pi's official site.

oh-my-pi

Pi with batteries included: per-task model roles, LSP-aware edits and subagents for a daily local driver. It adds hash-anchored edits, persistent Python and Bun kernels that can call back into the agent's own tools, and model roles routable per task across frontier APIs, coding plans and local runtimes. The cost is complexity: this is the heaviest Pi descendant here. oh-my-pi on GitHub.

DeepSeek Harness

A plugin kernel where even the loop is swappable, plus an append-only session log you can resume, fork and replay. Developer preview, so expect breaking changes. Standard, code, minimal and creator modes cover day-to-day agent work down to a two-tool baseline, and one command serves the web UI locally. Remember the meter behind it: the free download arrived days before a repricing aimed squarely at cached agent context. Read the DeepSeek Harness deep-dive.

Hermes Agent

The memory-first general agent: it learns across sessions and runs anywhere from a VPS to chat gateways, with local backends supported. It refuses models under 64K context at startup, which tells you what it thinks of small windows. Local inference runs through Ollama, vLLM, SGLang, llama.cpp and LM Studio with the right server flags. Read the Hermes Agent deep-dive.

ZCode

Z.ai's official GLM harness: define a goal and it plans, executes and verifies, controllable from desktop, phone or bot channel. Locked to GLM. Goal Mode with up to a million tokens of context suits long-horizon tasks you kick off from a phone. The price is lock-in: this is the only row here that is not model-agnostic, and the subscription is the product.Read the agentic editors roundup.

Kilo Code

One open core across VS Code, JetBrains and CLI with snapshots shared between them; the editor-native migration path. It serves 500-plus models with zero markup on bring-your-own keys, and a sandbox mode confines what auto-approved tools can touch. The same config follows you between editor and terminal, which is the whole pitch.Kilo Code on GitHub.

Cline

Plan mode before Act mode with approval at every step; the choice when control and auditability outrank speed. Plan mode explores and asks before Act mode executes, every edit and command needs approval unless you switch on auto-approve, and checkpoints make the agent's work undoable. That governance is why regulated teams tolerate it.Cline on GitHub.

Hax

A single C binary that starts instantly and leaves RAM for the model, with llama.cpp first-class. Deliberately no plugins or permission prompts. A transcript view shows exactly what was sent to the model and what came back, with an optional wire-protocol trace for deep debugging. If you want marketplaces, plugins or per-command permission prompts, look elsewhere on purpose.Hax's official site.

OctoMind

Built for long sessions: adaptive compression, duplicate tool-call detection and a supervisor gate on done. Maintainer-described; thinnest independent verification. On short tasks none of that machinery matters, which its own maintainer admits. Evaluate it on your longest sessions or not at all.OctoMind on GitHub.

little-coder

A Pi-based fork with pipelined subagents for planning and review, plus fixes for compaction resume failures. Community build; confirm at the repo. The approach borrows a real research result: small models given small codebase slices perform near frontier level, so fanning work out to scoped subagents is principled, not decorative.little-coder on GitHub.

Nitro

A community webapp for driving models across home machines. The least verified row here; treat the repo as the source of truth. It exists because choosing across models, cards and machines got complicated enough to build tooling around, which is an honest origin story for a harness. Nitro on GitHub.

Aider

Pair programming in the terminal: a repo map for large codebases, git auto-commit and a lint and test loop after every change. It maps the whole repo so edits land with full-project context, speaks over 100 languages, and even bridges to web-chat models via copy-paste. The loop assumes you are present: this is the craftsman's pick, not the walk-away pick. Aider on GitHub.

OpenHands

A self-hosted control center for coding agents and scheduled automations, bring your own model, Docker sandboxing available. Agent Canvas switches local, Docker, VM and cloud backends from one frontend, and automations on schedules or webhooks turn agents into cron jobs. Heavier than a terminal loop by design: this is team infrastructure.OpenHands on GitHub.

Goose

Desktop app, CLI and API from one Rust core with 70+ MCP extensions; general-purpose beyond code, now under the Linux Foundation. Fifteen-plus providers including Ollama, subscription routing via ACP, and a recipe system for repeatable runs. If the job is not code at all, start here. Goose on GitHub.

The model is not the harness

The most common mistake in choosing one of these tools is shopping for a model when the thing you actually run is a loop. The model reasons; the harness decides what that reasoning can touch, what it remembers, and whether the output survives. Identical open weights swing double digits on coding benchmarks purely on the scaffold around them, aswhy local LLMs fail at agentic coding documents, and the same lesson anchorsthe 2026 agent landscape. That is why this page compares failure behavior instead of benchmark scores: on a clean task every row above works, and they diverge on what happens when something goes wrong.

Aider vs OpenCode vs Pi: the terminal trio

Three different philosophies sharing one terminal. Aider pair-programs: you direct, it edits, lints, tests and commits, and the repo map keeps big codebases legible. OpenCode agents: you delegate, it plans, acts and compacts across dozens of providers. Pi knowingly does less than both: no subagents, no plan mode, no permission system, just a clean loop with hooks. Working inside code you know favors Aider; handing over whole tasks favors OpenCode; constrained machines and long lean sessions favor Pi.

Open-source Claude Code alternatives

Nobody on this page clones Claude Code feature for feature, and that framing misleads. What the open rows offer instead is ownership of a different layer each: OpenCode owns provider choice, Pi owns loop simplicity, Cline owns approval governance, OpenHands owns team infrastructure, Aider owns the edit discipline. Developers who leave Claude Code usually leave over one of those five, so name the layer before picking the replacement. The commercial side of the comparison, including where Claude Code still leads, lives on theAI coding agents comparison.

Three failure shapes to ask about

First, what it does when the context fills, since naive truncation drops your decisions and keeps the chatter. Second, what it does when a tool call fails, since re-running the identical call is the most expensive loop an agent can enter. Third, what it does when the model announces it is finished, because most harnesses simply believe it. The compaction column above answers the first; the deeper techniques behind all three, from ratchet rules to evaluator splits, are inventoried inharness engineering in 2026, and the build-versus-adopt decision around them inbuild your own harness or adopt.

The local-model note

Most rows here drive local runtimes (llama.cpp, Ollama, vLLM, LM Studio), which removes the per-token meter and keeps code on your machine. The capability is real: a 27B open-weight model now scores in the high 70s on SWE-bench Verified. The catch is that a benchmark score does not survive contact with feature-shaped work, and the harness carries more of the result than the weights do. Before committing hardware, readwhy local LLMs fail at agentic coding for the failure modes,local LLM tokenomics for whether the box pays for itself, and run your card through theCan I Run This LLM checker.

How to choose by workload

Match the tool to the shape of the work. If the box is small or the sessions are long, Pi, Hax or oh-my-pi keep the loop lean. If providers keep changing under you, OpenCode, Kilo Code or Cline let you switch without relearning. If the run is long and unattended, DeepSeek Harness with its replayable session log, or OctoMind with its supervisor gate, is built for exactly that. If the agent should remember you between sessions, Hermes Agent is the memory-first pick. If the work is surgical edits to known code, Aider's commit-and-revert discipline fits. And if cost per finished task is the constraint, model the task math with thecost-per-task calculator before committing, because the cheapest per-token model is often not the cheapest to finish the job.

Frequently asked questions

What is an agent harness, and how is it different from an AI model?
The model is the reasoning engine (Claude Opus, GPT-5.6, Qwen3.8). The harness is the software around it that reads your files, runs commands, compacts context as it fills, and loops until a task is done. The same model scores and costs very differently depending on which harness runs it, which is why identical open weights can swing double digits on a coding benchmark purely on the scaffold around them.
Which agent harness is best in 2026?
There is no single winner, and star counts measure attention rather than finished tasks. Pi suits resource-strapped local runs, OpenCode wins on provider freedom, Aider on terminal pair programming with git discipline, DeepSeek Harness on long unattended runs, Hermes Agent on memory across sessions, and Kilo Code or Cline when the work lives in an editor. Match the harness to the failure you hit most: context filling, tool calls looping, or sessions you cannot resume.
What is the best open-source Claude Code alternative?
OpenCode is the closest default: terminal-first, MIT licensed, dozens of providers instead of one, with session compaction built in. Pi is the answer when the machine is small or the sessions are long and lean. Cline is the answer when the work lives in VS Code and every change needs approval. None is a drop-in clone; each trades Claude Code polish for ownership of the loop.
Which harness is best for local models?
Pi was built for exactly this: it drives any OpenAI-compatible endpoint including llama-server, Ollama and vLLM, with the smallest starting context on this page. Hax treats llama.cpp as first-class in a single C binary, Aider lists Ollama among its backends, and OpenCode, Kilo Code, Cline, OpenHands and Goose all accept local endpoints. Before committing hardware, read why local LLMs fail at agentic coding and check whether your box fits the model.
How do Pi, OpenCode and DeepSeek Harness compare?
Pi is the minimalist: tiny context footprint, extension hooks, no permission system, you own the loop. OpenCode is the maximalist on provider choice: TUI plus desktop plus web, dozens of providers, session compaction built in. DeepSeek Harness is the marathon runner: a plugin kernel where even the loop is swappable, plus an append-only session log you can resume, fork and replay. All three are MIT licensed and model-agnostic.
Aider or OpenCode: which one for terminal work?
They are different tools shaped like the same one. Aider is pair programming: you stay in the loop, it maps the repo, edits, lints, tests and auto-commits with messages you can revert. OpenCode is an agent loop: it plans, acts and compacts toward a goal with less steering. Pick Aider for surgical changes to code you know, OpenCode for tasks you want to hand over.
Is DeepSeek Harness really free?
The harness is free and MIT licensed. The tokens it burns are not: running it against the DeepSeek API bills per token, and the August 2026 repricing raised cached input, the token an agent loop re-sends every turn, more than twelvefold at peak hours. Price the loop, not the download, and schedule batch work outside peak windows.
Which harness uses the least context?
Pi starts leanest by design, and Hax keeps the whole tool a single native binary so RAM goes to the model instead. That matters because every tool definition and every prior turn is re-sent on each loop, so a fat system prompt taxes small local models twice: once in tokens, once in attention. If sessions still overflow, the compaction column in the table is the next thing to compare.
Can I run these harnesses on an ordinary laptop?
The harness is rarely the constraint; the model weights are. A 27B open-weight model at 4-bit quantization fits inside a 24GB card with room for context, which covers most rows on this page pointed at Ollama or llama-server. Integrated-graphics laptops are limited to small models that struggle with tool calling. Run the exact card through the checker before buying hardware for the job.
OpenCode or Claude Code?
Claude Code rents you a polished loop tied to one vendor; OpenCode gives you the loop to own across dozens of providers. The honest difference is who absorbs change: when a provider reprices or a model degrades, OpenCode lets you switch backends in config, while Claude Code asks you to wait for Anthropic. The full comparison covers where each earns its keep.
What goes wrong when the context fills up?
Naive truncation drops your decisions and keeps the chatter, which is how a session quietly forgets what it already tried. The harnesses here answer differently: session compaction that preserves recent turns (OpenCode), an append-only log with resume and replay (DeepSeek Harness), persistent memory plus stuck-loop detection (Hermes Agent), or simply starting so lean there is less to compact (Pi, Hax). On very long runs this choice matters more than the model underneath.
How current is this tracker?
It is a representative snapshot verified September 2026, with every entry grounded to its own primary repo or official docs page. New harnesses ship weekly and repos get renamed (Goose and OpenHands both moved organizations this year), so confirm each entry at its linked source before you install. New entries are added as they prove out; the count in the title always matches the table.

← Back to Capital & Compute