LLearning Agent Harnesses

Agent Harnesses Compared

Updated

A harness is the program wrapped around a model: its loop, tools, memory, permissions and where it runs. On Terminal-Bench the same model scores 9 to 14 points higher in a tuned harness, so picking the harness matters about as much as picking the model. As of November 2026, Claude Code leads on hard multi-file work, Codex wins on cost per task, Cursor owns the editor, and open-source harnesses such as OpenCode and Cline win on model freedom.

At a glance#

Harnesses split by where you work with them. The big vendors now ship the same agent in several places: Claude Code runs in the terminal, the IDE and the web, and Codex runs in the terminal, the cloud and on your phone.

Five places a harness can live, and most products now sit in more than oneThe agent harness field in November 2026, by where you work with itTerminal agentsYou type, it edits the repoClaude CodeCodex CLIAntigravity CLICopilot CLIOpenCodeAiderPiFactory DroidAmpIn the editorAgent inside your IDECursorGitHub CopilotAntigravity IDEClineKilo CodeCloud and asyncHand off, get a pull requestCodex CloudClaude Code on the webCopilot coding agentCursor cloud agentsDevinBuild your ownLibraries, not appsClaude Agent SDKOpenAI Agents SDKOpenHands SDKBeyond codeMessaging, memory, schedulesHermes AgentRuns one maker's modelsLets you choose the model
landscape map · 23 products in 5 zones

The filled chips tie you to one maker's models. The dashed ones let you bring any model, which is the main thing open-source harnesses sell.

The contenders#

Fifteen harnesses matter in November 2026. Two big shifts this year: Google replaced Gemini CLI with the closed-source Antigravity CLI for individuals on Jun 18, and Roo Code shut down on May 15.

HarnessMakerRuns asModelsLicencePrice per month2026 change worth knowing
Claude CodeAnthropicCLI, IDE, desktop, web, mobile, SlackClaude only; Opus by defaultProprietaryPro $20, Max $100, Ultra $200Max 20x renamed Ultra on Oct 30, now 10x Pro weekly
CodexOpenAICLI, IDE, desktop app, cloud, phone remoteOpenAI only; GPT-6 familyCLI is Apache-2.0Free, Go $8, Plus $20, Pro $100 to $500GPT-6 at DevDay (Sep 29); Pro $200 cut to 10x Plus
CursorAnysphere, owned by SpaceXIDE, CLI, cloud agentsComposer 2.5, Grok, Claude, GPT, GeminiProprietaryFree, Plus $8, Premium $30, Ultra $200SpaceX deal closed Aug 14; Agent SDK GA Oct 20
GitHub CopilotGitHubIDE, CLI, cloud coding agent30+ models; BYOK and local in CLIProprietaryFree, Pro $10, Pro+ $39, Max $100Usage-based AI Credits since Jun 1
AntigravityGoogleDesktop IDE, CLI, SDKGemini 3.8 Flash, Gemini 4; Claude on UltraProprietaryFree weekly quota; AI Pro and UltraReplaced Gemini CLI for individuals Jun 18
OpenCodeAnomaly (ex-SST)TUI, desktop, web75+ providers, local modelsMIT, 225.7k starsFree; Go $10Two critical security holes patched (Jan, Sep)
ClineClineVS Code, JetBrains, CLI, desktop, SDKAny provider, local modelsApache-2.0, 70.9k starsFree plus model; ClinePass $9.99SDK and rebuilt CLI with agent teams (May 13)
Kilo CodeKiloVS Code, JetBrains, CLI, cloud500+ modelsMIT, 27.8k starsFree; Kilo Pass $19 to $199Rebuilt on the OpenCode core (Apr 2)
AiderAider-AITerminalAlmost any, local modelsApache-2.0, 49.8k starsFree plus modelReleases have slowed; still on v0.86
PiMario Zechner, EarendilTerminal, SDKAbout 25 providersMIT, 118.2k starsFree plus modelCreator joined Earendil (Apr 8)
OpenHandsAll Hands AIWeb (Agent Canvas), CLI, SDK, cloudAny modelMIT, 92.6k starsFree self-hosted; Teams $500 for 10 usersAgent Canvas (Jun 16); runs other agents over ACP
Factory DroidFactoryCLI, desktop, SDKGPT, Claude, Kimi, GLM; BYOKProprietaryFree with BYOK, Pro $20, Max $200Droid 1.0 with script mode (Oct 29)
AmpAmp Frontier (ex-Sourcegraph)CLI, web, desktop, mobileClaude, GPT, GLM; BYOKProprietaryFree; Individual $20Dropped editor extensions (Mar 5)
DevinCognitionCloud agent, Devin Desktop (ex-Windsurf)SWE-2ProprietaryFree, Pro $20, Max $200Windsurf folded in; SWE-2 model (Sep 10)
Hermes AgentNous ResearchCLI, messaging apps, desktop, cloudNous Portal, OpenRouter, any endpointMIT, 260k starsFree plus modelSelf-improving skills and memory; v0.22.5 (Oct 22)

Stars were read on GitHub on Nov 13. Prices are list prices from each vendor's page; Antigravity publishes no numeric quotas.

Build-your-own SDKs. The Claude Agent SDK is Claude Code as a library (Python, TypeScript): the same tools, loop, hooks, subagents and MCP, billed at API token rates. The OpenAI Agents SDK gives handoffs, guardrails, tracing and sandboxed execution, still at version 0.x. OpenHands, Cline, Cursor and Factory also ship SDKs now.

Benchmarks#

The harness moves scores almost as much as the model does. Hand the same model a tuned harness instead of a plain loop and it gains 9 to 14 points on Terminal-Bench 2.0.

The same model scores 9 to 14 points higher in a tuned harnessTerminal-Bench 2.0 accuracy, %: grey = plain Terminus 2 harness, blue = best agent harness on the board50%60%70%80%90%Harness gainGPT-5.3-Codex95% CI: 76.2 to 80.6%GPT-5.3-Codex in Terminus 2: 64.05%GPT-5.3-Codex in SageAgent: 78.4% (plus or minus 2.2)64.0SageAgent 78.4+14.4Gemini 3.1 Pro95% CI: 77.6 to 82.8%Gemini 3.1 Pro in Terminus 2: 67.42%Gemini 3.1 Pro in TongAgents: 80.2% (plus or minus 2.6)67.4TongAgents 80.2+12.8Claude Opus 4.795% CI: 78.1 to 82.3%Claude Opus 4.7 in Terminus 2: 68.54%Claude Opus 4.7 in WOZCODE: 80.2% (plus or minus 2.1)68.5WOZCODE 80.2+11.7GPT-5.595% CI: 80.0 to 84.4%GPT-5.5 in Terminus 2: 73.2%GPT-5.5 in Codex CLI: 82.2% (plus or minus 2.2)73.2Codex CLI 82.2+9.0Gain ranges from 9.0 to 14.4 points. Light blue band = 95% confidence interval of the best run.
Vals.ai Terminal-Bench 2.0 (Terminus 2, archived Jun 4, 2026) and Snorkel Terminal-Bench 2.0 board (updated Nov 9, 2026) · 4 models

The plain runs come from Vals and the tuned ones from Snorkel's board. They are separate runs, so treat the gap as a direction, not a precise number. Among the tuned harnesses the spread is small: GPT-5.5 scores 84.7% in NexAU-AHE, 83.1% in Capy and 82.2% in Codex CLI.

The cleanest harness test holds the model fixed. Composio Bench runs every harness on GPT-6 Astra over 30 stateful tool-use tasks.

On one model, the harness alone moves stateful tool-use success by 10 pointsComposio Bench, 30 stateful tool-use tasks, every harness running GPT-6 Astra. Success rate, %.0%25%50%75%100%ClineCline on GPT-6 Astra: 79%79%CodexCodex on GPT-6 Astra: 76%76%Command CodeCommand Code on GPT-6 Astra: 76%76%Hermes AgentHermes Agent on GPT-6 Astra: 75.9%76%Claude CodeClaude Code on GPT-6 Astra: 72%72%OpenCodeOpenCode on GPT-6 Astra: 69%69%PiPi on GPT-6 Astra: 69%69%Cline 79% vs Pi 69%: a 10-point spread with the model held fixed.
Composio Bench, latest run Oct 15, 2026 · 7 harnesses on one model

This measures tool use across apps, not coding depth, and Composio sells tool integrations, so read it alongside Terminal-Bench. It does show that lean, open harnesses (Cline, Hermes Agent) can beat the vendor ones when the model is the same.

Claude Code leads by 6.6 points; Codex costs a seventh as much per taskTerminal-Bench 4.0, tasks completed, %, max effort, 330 trials each. Right column: reported cost per task.0%20%40%60%Cost per taskClaude CodeOpusClaude Code + Opus: 64.8%64.8%$14.30Claude CodeSonnet 5.5Claude Code + Sonnet 5.5: 61.8%61.8%$22.22CodexGPT-6 AstraCodex + GPT-6 Astra: 58.2%58.2%$9.90CodexGPT-6.1 SolCodex + GPT-6.1 Sol: 58.2%58.2%$1.92Claude CodeFable 5.1Claude Code + Fable 5.1: 57.9%57.9%not reportedCodexGPT-6 SolCodex + GPT-6 Sol: 49.4%49.4%not reportedClaude Code harnessCodex harness
tbench.ai Terminal-Bench 4.0, as quoted by Morph (read Oct 6, 2026) and BenchLM (Nov 12, 2026) · 6 harness and model pairs

Terminal-Bench moved to version 4.0 on Aug 28 and 4.1 on Nov 9, 2026, and the versions don't compare with each other. On 4.1 the order holds: Claude Code with Opus 65.8%, Claude Code with Sonnet 5.5 63.9%, Codex with GPT-6.1 Sol 60.9% (BenchLM). Claude Code is not only a Claude shell: Kimi K3.1 Pro run inside it scored 60.9% on 4.0, ahead of every Codex entry.

Where sources disagree. AIToolsReview quotes Anthropic's own 4.0 figures (Sonnet 5.5 70.6%, Opus 66.4%), above the board's 61.8% and 64.8%. Morph reports Sonnet 5.5 costing more per task than Opus at max effort, which looks odd but is what the board shows.

What has no score. Cursor, Copilot, Antigravity, OpenCode, Aider, Cline and Hermes Agent have no Terminal-Bench 4.x entry. Cursor's Composer 2 scored 61.7% on the older 2.0 (Firecrawl). No board compares harnesses on SWE-bench; those scores are per model.

Scorecard#

Every harness trades something away. These scores are Claude's judgment from the benchmarks and reviews in this tab, not a measurement: use them to see the shape of each tool, not as a precise ranking.

No harness wins every column: depth, cost and freedom pull in different directionsClaude-estimated scores, 1 (weak) to 5 (best in field), from the sources in this tab. Not measured data.Darker = stronger. Total is an unweighted sum out of 40, so weigh the columns you care about.Hard tasksLow costExtendModelsAutonomyCloudEditorOpenTotalCodexCodex, quality: 4 of 5 (Claude-estimated)4Codex, cost: 5 of 5 (Claude-estimated)5Codex, extend: 4 of 5 (Claude-estimated)4Codex, models: 1 of 5 (Claude-estimated)1Codex, auto: 5 of 5 (Claude-estimated)5Codex, cloud: 5 of 5 (Claude-estimated)5Codex, ide: 3 of 5 (Claude-estimated)3Codex, open: 4 of 5 (Claude-estimated)431OpenHandsOpenHands, quality: 3 of 5 (Claude-estimated)3OpenHands, cost: 3 of 5 (Claude-estimated)3OpenHands, extend: 4 of 5 (Claude-estimated)4OpenHands, models: 5 of 5 (Claude-estimated)5OpenHands, auto: 4 of 5 (Claude-estimated)4OpenHands, cloud: 4 of 5 (Claude-estimated)4OpenHands, ide: 2 of 5 (Claude-estimated)2OpenHands, open: 5 of 5 (Claude-estimated)530Hermes AgentHermes Agent, quality: 2 of 5 (Claude-estimated)2Hermes Agent, cost: 4 of 5 (Claude-estimated)4Hermes Agent, extend: 5 of 5 (Claude-estimated)5Hermes Agent, models: 5 of 5 (Claude-estimated)5Hermes Agent, auto: 4 of 5 (Claude-estimated)4Hermes Agent, cloud: 3 of 5 (Claude-estimated)3Hermes Agent, ide: 1 of 5 (Claude-estimated)1Hermes Agent, open: 5 of 5 (Claude-estimated)529CursorCursor, quality: 4 of 5 (Claude-estimated)4Cursor, cost: 3 of 5 (Claude-estimated)3Cursor, extend: 3 of 5 (Claude-estimated)3Cursor, models: 5 of 5 (Claude-estimated)5Cursor, auto: 3 of 5 (Claude-estimated)3Cursor, cloud: 4 of 5 (Claude-estimated)4Cursor, ide: 5 of 5 (Claude-estimated)5Cursor, open: 1 of 5 (Claude-estimated)128OpenCodeOpenCode, quality: 3 of 5 (Claude-estimated)3OpenCode, cost: 4 of 5 (Claude-estimated)4OpenCode, extend: 4 of 5 (Claude-estimated)4OpenCode, models: 5 of 5 (Claude-estimated)5OpenCode, auto: 3 of 5 (Claude-estimated)3OpenCode, cloud: 2 of 5 (Claude-estimated)2OpenCode, ide: 2 of 5 (Claude-estimated)2OpenCode, open: 5 of 5 (Claude-estimated)528Cline / Kilo CodeCline / Kilo Code, quality: 3 of 5 (Claude-estimated)3Cline / Kilo Code, cost: 3 of 5 (Claude-estimated)3Cline / Kilo Code, extend: 3 of 5 (Claude-estimated)3Cline / Kilo Code, models: 5 of 5 (Claude-estimated)5Cline / Kilo Code, auto: 3 of 5 (Claude-estimated)3Cline / Kilo Code, cloud: 1 of 5 (Claude-estimated)1Cline / Kilo Code, ide: 4 of 5 (Claude-estimated)4Cline / Kilo Code, open: 5 of 5 (Claude-estimated)527Claude CodeClaude Code, quality: 5 of 5 (Claude-estimated)5Claude Code, cost: 2 of 5 (Claude-estimated)2Claude Code, extend: 5 of 5 (Claude-estimated)5Claude Code, models: 2 of 5 (Claude-estimated)2Claude Code, auto: 4 of 5 (Claude-estimated)4Claude Code, cloud: 4 of 5 (Claude-estimated)4Claude Code, ide: 3 of 5 (Claude-estimated)3Claude Code, open: 1 of 5 (Claude-estimated)126GitHub CopilotGitHub Copilot, quality: 3 of 5 (Claude-estimated)3GitHub Copilot, cost: 4 of 5 (Claude-estimated)4GitHub Copilot, extend: 3 of 5 (Claude-estimated)3GitHub Copilot, models: 4 of 5 (Claude-estimated)4GitHub Copilot, auto: 3 of 5 (Claude-estimated)3GitHub Copilot, cloud: 4 of 5 (Claude-estimated)4GitHub Copilot, ide: 4 of 5 (Claude-estimated)4GitHub Copilot, open: 1 of 5 (Claude-estimated)126AiderAider, quality: 3 of 5 (Claude-estimated)3Aider, cost: 5 of 5 (Claude-estimated)5Aider, extend: 2 of 5 (Claude-estimated)2Aider, models: 5 of 5 (Claude-estimated)5Aider, auto: 2 of 5 (Claude-estimated)2Aider, cloud: 1 of 5 (Claude-estimated)1Aider, ide: 2 of 5 (Claude-estimated)2Aider, open: 5 of 5 (Claude-estimated)525AntigravityAntigravity, quality: 3 of 5 (Claude-estimated)3Antigravity, cost: 4 of 5 (Claude-estimated)4Antigravity, extend: 3 of 5 (Claude-estimated)3Antigravity, models: 3 of 5 (Claude-estimated)3Antigravity, auto: 3 of 5 (Claude-estimated)3Antigravity, cloud: 3 of 5 (Claude-estimated)3Antigravity, ide: 4 of 5 (Claude-estimated)4Antigravity, open: 1 of 5 (Claude-estimated)124DevinDevin, quality: 3 of 5 (Claude-estimated)3Devin, cost: 2 of 5 (Claude-estimated)2Devin, extend: 2 of 5 (Claude-estimated)2Devin, models: 1 of 5 (Claude-estimated)1Devin, auto: 5 of 5 (Claude-estimated)5Devin, cloud: 5 of 5 (Claude-estimated)5Devin, ide: 2 of 5 (Claude-estimated)2Devin, open: 1 of 5 (Claude-estimated)121Hard tasks: multi-file quality · Low cost: spend per task · Extend: hooks, plugins, skills, MCP · Models: model choiceAutonomy: long unattended runs · Cloud: parallel background jobs · Editor: in-IDE experience · Open: open source
Claude-estimated, not measured · 11 harnesses × 8 dimensions, scored Nov 13, 2026 from the benchmarks and reviews cited in this tab

Read across a row for a tool's profile. Claude Code and Codex are the two deep, vendor-backed harnesses; the open-source ones (OpenCode, Aider, Cline, OpenHands, Hermes Agent) win on model choice and openness and lose on polish at the top end.

Strengths and limits#

Each harness has one thing it does best and one cost you pay for it.

HarnessBest atFalls short on
Claude CodeHardest multi-file refactors; deepest extension system (hooks, skills, plugins, subagents, MCP); same engine on every surfaceHeaviest token use (3 to 4x Codex on the same task, per community tests); Claude models only; unpublished usage limits users hit fast
CodexCost per task; one agent across CLI, desktop, cloud and phone; long autonomous runs (Goal mode)OpenAI models only; front-end and UI work; takes liberties with literal instructions; the most complex limit system
CursorIn-editor experience; widest model menu; cloud agents with their own desktop and browserUsage bills are hard to predict; an editor first, so weaker for headless and CI work
GitHub CopilotIssue to pull request inside GitHub; cheapest paid entry ($10); agents on every tierTuned for low-to-medium tasks; cloud sessions capped at 59 minutes and one repo; surprise overage bills
AntigravityFree entry point; parallel agents with browser use; newest Gemini 4 modelsClosed source; vague weekly quotas and lockouts; no feature parity with old Gemini CLI
OpenCodeAny model including local; polished TUI; headless server modeQuality follows the model you bring; two critical security holes this year; no Claude subscription login
Cline / Kilo CodeOpen-source agent inside VS Code with any model; tops the one same-model harness testYou pay raw API prices; Kilo's rebuild drew complaints (forced worktrees, own terminal)
AiderSmall, precise, git-committed edits; cheapest way to pair with a strong modelLeast autonomous; terminal only; releases have stalled at v0.86
PiMinimal 4-tool core you can read and extend; branchable sessionsNo MCP, subagents or plan mode out of the box; new contributors' PRs auto-closed
OpenHandsSelf-hosted, model-agnostic platform; orchestrates other agents over ACP; scheduled automationsReal infrastructure work to run; governance sits in a $500/month Teams tier
Factory DroidScript mode batches tool calls into a program, cutting tokens on long repetitive jobsGains shrink on short sessions and debugging; its benchmark wins are self-reported
DevinFire-and-forget tickets in parallel cloud VMsUneven on vague or open-ended work; own model only
Hermes AgentAlways-on personal agent: messaging apps, memory, schedules, self-written skillsNot a coding specialist; Windows and gateway bugs; opaque model errors

Where one beats another. Claude Code beats Codex on hard refactors and extensibility; Codex beats Claude Code on cost, speed and mobile hand-off. Cursor beats both inside an editor. Cline beats Claude Code by 7 points when both run the same model on Composio Bench, so a harness tuned for one vendor is not automatically the best home for another vendor's model.

Head to head#

The matchups people actually decide between, with the winner on the question that usually settles it.

MatchupWinnerWhyPick the other when
Claude Code vs CodexClaude Code on qualityLeads Terminal-Bench 4.0 and 4.1 by 4 to 7 points; deeper hooks and pluginsBudget or volume matters: Codex runs a top task for $1.92 against $14.30
Claude Code vs CursorDepends on where you sitClaude Code for terminal, CI and long runs; Cursor for reviewing diffs in an editorYou want many vendors' models in one place: Cursor
Codex vs CursorCodex on autonomyOne agent on CLI, cloud and phone; cheaper per taskYou live in the editor and want Composer's speed
Copilot vs CursorCursor on agent qualityStronger in-editor agent and cloud agentsThe team runs on GitHub issues and Actions, or wants the $10 plan
OpenCode vs Claude CodeClaude Code on resultsTuned harness plus subscription pricingYou need local or open-weight models, or MIT code you can audit
Cline vs Kilo CodeCline on stabilityMature, tops the same-model testYou want 500+ models through one gateway and parallel worktrees
Aider vs OpenCodeOpenCode on autonomyAgent modes, subagents, server modeYou want tight, reviewable, auto-committed edits
OpenHands vs Agent SDKsSDKs for productsClaude and OpenAI SDKs give a production loop in a few linesYou must self-host and stay model-agnostic
Hermes Agent vs Claude CodeClaude Code for codeBuilt for codebasesThe job is a personal agent on Telegram or WhatsApp that remembers and runs on a schedule

The benchmark gap between the top harnesses is now smaller than the gap between a tuned harness and a plain one. Choose on workflow, cost and model access first.

Pick this when#

Start from where you work and what you need back, then pick. Many teams run two: one deep harness for hard work and one cheap one for volume.

Start from what you need, not from the leaderboardEach leaf: the harness to pick, and under it the need that decides itWhat do youneed?Build your own agentShip it inside a productClaude Agent SDKClaude models, Claude Code's loopOpenAI Agents SDKOpenAI models, handoffs, tracingOpenHands SDKSelf-hosted, any modelPair in an editorYou review every diffCursorBest in-editor agent, many modelsCline or Kilo CodeFree extension, your own API keyGitHub CopilotTeam lives on GitHubDrive from the terminalLong, multi-file changesClaude CodeHardest refactors, deepest hooksCodexCheapest per task, phone and cloudOpenCodeAny model, local models, MITAiderGit-first, small precise editsHand off ticketsCome back to a pull requestCodex Cloud or Claude Code on the webParallel jobs in the cloudCopilot coding agentIssue to PR inside ActionsDevinWhole tickets, ticket workflowAn agent beyond codeMessaging, memory, schedulesHermes AgentSelf-hosted, learns your skills
decision guide · 5 needs, 14 picks

A common pairing in late 2026 is Claude Code for the hard 20% of tasks and Codex for the cheap 80%, with Cursor for anyone who reviews in an editor.

Sources#

Read between Nov 11 and Nov 13, 2026. Scorecard numbers are Claude-estimated from these pages; every other number comes from the page named.

Benchmarks

Comparisons and reviews

Vendor pages

Where sources disagree

  • Claude Code on Terminal-Bench 4.0: vendor-reported figures differ from the public board's. This tab uses the board.

  • Copilot Pro price: most pages give $10 a month and some give $19. This tab uses $10.

  • Gemini CLI cutoff: some reviews treat the May 19 announcement as the end date. Google's post puts the end of individual access at June 18.

  • Windsurf: lists disagree on whether it still counts as a separate product, so it is left out here.

  • OpenCode stars: pages read on different days give different counts. This tab uses the repository's own count.