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.