Harnesses

AI Coding Agents and Agent Harnesses, Compared

Updated

AI coding agents are AI tools that take a programming task and carry it out: they read your codebase, edit files and run commands until the work is done. The software that turns an AI model into such an agent is called a harness. This hub covers coding agents and their harnesses, as part of our guide to the best AI for each job.

What a harness does

Called through a plain API, a model answers one request at a time. To work through a whole task, something has to run the tools on your machine and keep the loop going. Anthropic’s documentation shows the split: with its plain client SDK, you write the tool loop yourself or hand it to a helper, while its Agent SDK provides the same tools, agent loop and context management that power Claude Code. A harness is that layer. It provides:

  • tools to read, write and edit files, run commands and search the web;
  • a loop: plan a step, act, check the result, and repeat until the task is done;
  • context management: what the model keeps in view as the work grows;
  • permissions: which tools run on their own, and which need your approval.

Because the harness shapes how a model works, a coding result belongs to a model and a harness together. Terminal-Bench, a benchmark for AI agents, names both the model and the agent on each line of its leaderboard.

Where coding agents run

Coding agents come in several forms, and one product can offer several of them:

  • in the terminal: a command-line tool that works inside your project folder;
  • in your code editor: an extension for editors such as VS Code or JetBrains IDEs;
  • in a desktop app;
  • in the cloud: you start a task from your browser, and it runs on remote machines.

Both coding agents with a page here come in all four forms.

The coding agents with a page

  • Claude Code, from Anthropic: an agentic coding tool that reads your codebase, edits files, runs commands and connects to your development tools. Most of its forms require a Claude subscription or an Anthropic Console account. Its plans and limits are on Claude Code pricing.
  • Codex, from OpenAI: a coding agent whose command-line version runs locally on your computer, with editor, desktop and cloud versions. The code of its command-line tool is open source, under the Apache 2.0 license.

To choose between the two, read Codex vs Claude Code, which compares them criterion by criterion, with their prices side by side.

How we compare coding agents

Our criteria for coding agents:

  • results on Terminal-Bench and SWE-bench, with the model and the harness used;
  • the models each agent supports;
  • whether its code is open source;
  • the price: a subscription, or pay-as-you-go API usage;
  • how you install it: command line, editor, desktop or web.

Every result carries its evaluator, its date and its settings. Results published by a tool’s maker stay apart from independent ones. Our methodology explains the rules.

Coding agent or coding model?

This hub is about the tools that do the work inside your project. If your question is which AI writes the best code, start from best AI for coding. That page ranks AIs on coding benchmarks, price and editor integration, and links back here for the agents that put them to work.

Every harness with a page

  • Claude CodeAnthropicClaude Code is Anthropic's agentic coding tool. It reads a codebase, edits files, runs commands and works in the terminal, in IDEs, in the Claude desktop app and on the web.
  • CodexOpenAICodex is OpenAI's coding agent. It inspects code, edits files, runs commands and reviews pull requests from the Codex CLI, IDE extensions, the ChatGPT desktop app, the web and iOS.
  • GitHub CopilotGitHubGitHub Copilot is GitHub's AI coding assistant in IDEs, on github.com, in the terminal (Copilot CLI) and as a cloud agent that works on issues and pull requests. Plans are billed in GitHub AI Credits and offer models from several labs.
  • CursorAnysphereCursor is an AI code editor for macOS, Windows and Linux, with a CLI and cloud agents, that writes, edits and reviews code with agents. Its plans are now sold as the X Subscription and include Grok models and Cursor's own Composer model, with third-party models at API prices.
  • Devin DesktopCognitionDevin Desktop, the new name of the Windsurf AI code editor since June 2026, is a full IDE with a command center for local and cloud coding agents, including Devin, Codex and Claude Agent. Windsurf for JetBrains is still offered.

Questions

What is agentic coding?

Handing a programming task to an AI agent that plans its own steps and uses tools to read files, edit code and run commands until the task is done, with your approval for the actions you choose to review.

What is an agent harness?

The software around an AI model that turns it into an agent. It runs the tools, the loop of planning, acting and checking, the context the model keeps in view, and the permissions that decide which actions need your approval.

Sources

  • code.claude.com · Official source · checked

    Anthropic: Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands and integrates with development tools; available in the terminal, IDE (VS Code, JetBrains), desktop app and browser; most surfaces require a Claude subscription or Anthropic Console account.

  • code.claude.com · Official source · checked

    Anthropic, Agent SDK overview: an agent plans its own steps and calls tools that read files, run commands or edit code; the SDK gives the same tools, agent loop and context management that power Claude Code; built-in tools read, write and edit files, run commands and search the web; permissions control which tools run automatically and which need approval; with the client SDK you write the tool loop yourself or use its beta tool runner.

  • raw.githubusercontent.com · Official source · checked

    OpenAI: Codex CLI is a coding agent from OpenAI that runs locally on your computer; also in code editors (VS Code, Cursor, Windsurf), as a desktop app and as a cloud-based agent (Codex Web); repository licensed under Apache-2.0.

  • tbench.ai · Official source · checked

    Terminal-Bench: "A benchmark to measure and evolve with the frontier of agent work"; its leaderboard has separate MODEL and AGENT columns.