What is an agent harness?

Short answer: An AI agent harness is everything around a model that turns it into a worker, like its loop, tools and rules, so Claude Code, Codex and Cursor are all harnesses, and changing the harness can change the results even when the model stays the same. When we changed one part of ours at Airu Labs, GPT-6 Luna’s clean tries fell from 48 of 48 to 20 of 24.

  • 48 of 48 to 20 of 24Clean tries for GPT-6 Luna before and after one change to the harness around it, with the same model and the same jobs. DeepSeek V4.1 Flash barely moved, 47 of 48 to 23 of 24.How it was measured: On November 18, 2026 Airu Labs moved the service sheet in its always-on desk test out of the agent’s instructions and behind a tool the agent calls when it needs it. GPT-6 Luna then ran the eight busy runs three times each. Before the change each busy run was tried six times, its first try and five repeats, so the counts compare rates. Every try asked for the lowest randomness setting.

An AI agent harness is everything around the AI model that turns it into a worker. The model is the engine, and the harness is the rest of the car. It runs the loop, holds the tools, feeds in the instructions and decides when to stop. Claude Code, Codex and Cursor are all harnesses, which is why switching between them changes more than the model.

For a business, that means the model is only half of what you are choosing. When we changed one part of our own test harness and kept the model, GPT-6 Luna went from clean on all 48 tries to clean on 20 of 24 and sent replies a person should have checked. So whoever sets up your agent has to test the whole setup on your own jobs, not only pick a model.

What does a harness do?

Six jobs, and every agent you have used has all of them somewhere.

Here they are in the harness we built for our always-on desk test, where AI models ran the email and order desk of an invented plumbing supplier.

Part What it does In our test harness
The loop Sends the job to the model, runs the tool the model asks for, sends back the result, and repeats Keeps going until the agent calls its finish tool
Tools Everything the agent can read or change Nine tools, including look up a customer, place an order, send a reply, save a draft and hand to a person
Instructions Who the agent is and the rules it follows The desk’s rules and its service sheet, read at the start of every run
Memory What it keeps from one run to the next None, so every run starts fresh
Limits When it must stop 25 model turns a run, and a spending stop for the whole test
Checks What it refuses even when the model asks An order with a product code that is not in the catalog comes back as an error

A product like Claude Code has the same six, built far further. Its tools reach your files and your terminal, its instructions live in a file called CLAUDE.md that it reads at the start of every session, and its limits are the permissions you set.

Does the harness change the results?

It can, even with the same model. In our test it did for one of the two models we tried.

On November 18, 2026 we changed how the agent gets its information, which is part of the harness. The supplier’s service sheet moved out of the agent’s instructions and behind a tenth tool the agent calls when it needs it. Nothing else changed except one added sentence in the instructions telling the agent to read the sheet before it answers any message that is not an order. The model, the messages and the answer key were the same. Before the change each of the eight busy runs was tried six times, and after it three times, all at the lowest randomness setting.

Sheet in the instructions Sheet behind a tool
GPT-6 Luna, clean tries 48 of 48 20 of 24
DeepSeek V4.1 Flash, clean tries 47 of 48 23 of 24
GPT-6 Luna, tokens for an empty inbox about 3,300 about 1,650

The change halved what GPT-6 Luna spent checking an empty inbox, which matters for an agent that wakes up all day. A busy run cost about the same either way, so the saving was only on empty checks. It also cost GPT-6 Luna four clean tries, 4 of 24 against none of 48 before, while DeepSeek V4.1 Flash had one bad try either way. GPT-6 Luna called the sheet tool in every busy run and still guessed one order, 12 brass valves where the key says to ask the customer brass or PVC, and sent three replies a person should have checked. The supplier is invented and Claude wrote its messages and answer key, so treat 24 tries as a small test. The lesson still holds. A change to the harness needs the same test as a change of model, which is what how to test an AI agent walks through.

Airu Labs builds custom AI systems for small and mid-size companies. We also set up AI agents for owners who are new to them and improve the ones a business already runs. If you run an agent and are not sure what its setup is doing, book a 30-minute call and we look at it with you.

How much can a better harness add?

A lot, when every change gets tested.

Salesforce researchers built DarwinX, which changes only the harness and never the model, and it raised an agent’s score on all four tests they ran. The smallest gain was 3.4 points, and the biggest took the agent from finishing 43.5% of a set of unseen browser tasks to 93%. Google Research’s open-source Harness² lets an agent rewrite its own harness while the model stays the same, and one round of rewrites raised two models’ scores by up to 11.8 points on three tests of office, legal and other professional work.

A heavier harness is not always a better one, though. When researchers at Shandong University ran the same models through Claude Code, OpenCode and a minimal harness on the 45 hardest of nearly 500 coding tasks, switching harnesses flipped the result on 13% of them, which is no more than rerunning the same setup did. The cost moved far more, since one harness could cost three or four times as much as another for the same task, depending on the model. The paper traces that cost to the instructions and tool list each harness resends at every step, which fits our own test, where moving the service sheet out of the instructions halved what GPT-6 Luna spent on an empty check.

How are Claude Code, Codex and T3 Code different?

Claude Code, Codex and Cursor are harnesses, and for work that is not code Anthropic’s harness is now Claude itself, since chat and Cowork became one Claude. T3 Code drives the others. Every cell below comes from the maker’s own pages, read on November 18 and 19, 2026.

What it is Keeps working with your computer off? Plan
Claude Code (Anthropic) Anthropic’s coding agent, with Claude models inside Yes in Anthropic’s cloud, where scheduled tasks keep running. No in your terminal or desktop app A Claude subscription or an Anthropic Console account
Codex (OpenAI) OpenAI’s coding agent, with GPT models inside Yes in OpenAI’s cloud. No on your computer Included in ChatGPT plans from Free up to Business and Enterprise
Cursor An AI code editor, with xAI’s Grok models included Only its cloud agents, on the higher paid plans. The desktop app and command line stop with yours Free, paid, Teams and Enterprise plans, with other makers’ models billed by use
Claude (Anthropic) Chat and Cowork in one app, with no terminal Yes, like Claude Code, in Anthropic’s cloud. Your own files and browser need the desktop app open Paid Claude plans, rolling out to Pro, Max and Ultra first, and on by default for Team from December 1, 2026
T3 Code A free, open-source screen for the coding agents on your computer No. The web and a phone are windows onto your computer, so it stops when the computer sleeps Free, and you keep your own agent subscriptions
OpenClaw An open-source agent you run yourself and message from chat apps Only while your own Mac, Windows or Linux machine is on No paid version, per its own site

Claude Code and Codex differ first in whose models run inside them, and then in the harness around those models, which our own test shows can change the results too. T3 Code is the one people mix up with the others. Its own page says it “drives the agents you are already signed in to”, so it is useful only once you run two or more of them.

Which harness keeps working while you are away?

Only the ones that run in the maker’s cloud.

Claude Code’s cloud scheduled tasks and Claude’s own scheduled tasks keep going with your laptop closed, as long as the task does not need your own files or browser. We run our own AI helpers as Claude Code cloud scheduled tasks for that reason, and keep only the one weekly check that reads files on our laptop as a scheduled task in the Claude desktop app. A harness that runs on your computer, like Claude Code in a terminal, T3 Code or a self-hosted OpenClaw, stops when the computer sleeps. For a job that has to happen every morning, that one row decides more than any feature list. Why AI automations break covers what to watch once a job runs on a schedule.

Can you switch harness later?

Mostly, because the parts that hold your know-how are plain text.

Claude Code’s instructions live in a CLAUDE.md file in your own folder, and Anthropic’s documentation says it can read an AGENTS.md file, which other coding agents use, in its place. Your test set is yours too. What does not move is anything set up inside one maker’s service, like its scheduled tasks and the apps you connected to it, so those get rebuilt. Run your test set again after any switch, because our own harness test shows a small change can move the results.

Which one should a business pick?

This part is our judgment, from running our own helpers in Claude Code, not a maker’s claim.

If someone builds the agent for you, they pick the harness, and your part is asking them to test it on your own jobs. If you are setting one up yourself and the work is documents, email and research, Claude itself or a personal agent fits better than a coding tool, and OpenAI dots, Claude Duet, Meta Muse or n8n Nod compares those. If the work is code, use Claude Code or Codex, whichever comes with the plan you already pay for, and set its permissions before anything else. Use T3 Code only once you run two or more coding agents, and run OpenClaw yourself only if someone on your team will look after the machine it lives on. If you are weighing a no-code builder against hiring someone, build your own AI agent or hire covers that choice.

If you would rather not choose, book a 30-minute call and tell us the job. We pick the harness, set the agent up for your business and show you how to use it.

FAQ

Questions people ask.

What is an agent harness in AI?

The software around an AI model that lets it do work instead of only answering. It sends the model the job, runs the tools the model asks for, passes back the results, keeps notes between runs and stops it at set limits. Microsoft’s documentation calls it the runtime scaffolding that turns a model into an agent.

Is an AI agent harness the same as Harness, the software company?

No. Harness is a company that sells software delivery tools. An AI agent harness is the general name for the layer around an AI model, and Claude Code, Codex and Cursor are examples of one.

Can you use Claude Code for things other than coding?

Yes, but for documents, email and research Claude itself fits better, because chat and Cowork are now one Claude. Anthropic says that when a task needs your files, Claude brings in Cowork’s abilities on its own, and that Cowork uses the same agentic approach as Claude Code.

Is Claude Code better than Codex?

We have not tested them against each other, and a test on someone else’s jobs tells you little about yours. Both read your files, edit them and run commands. Pick the one on the plan your business already pays for and run your own jobs through it.

What is T3 Code?

A free, open-source screen that controls the coding agents already set up on your computer, like Claude Code and Codex, from a desktop, the web or a phone. Its own page says it does not resell tokens, so you keep paying for those agents directly.

Do I need a harness to use an AI agent?

Every agent already has one. When you use ChatGPT or Claude in a browser, the harness is built in and you cannot change it. You pick a harness yourself when you choose a tool like Claude Code, Codex or OpenClaw, or when someone builds an agent for you.

Sources

  1. Claude Code overview, Anthropic, 2026-11-18
  2. Get started with Claude Cowork, Anthropic, 2026-11-18
  3. Claude Cowork is now just Claude, Anthropic, 2026-11-19
  4. Claude Cowork and chat are one Claude, Anthropic, 2026-11-19
  5. DarwinX: Evolving Agent Harnesses Through Natural Selection, Salesforce AI Research on arXiv, 2026-11-19
  6. Harness²: Recursive Agent Harnessing for an Open World, Google Research on GitHub, 2026-11-19
  7. What Does a Harness Buy? Tokens, Mostly, arXiv, 2026-11-19
  8. A coding agent’s harness can triple its cost without making it more accurate, study finds, VentureBeat, 2026-11-19
  9. Codex pricing, OpenAI, 2026-11-18
  10. T3 Code, T3 Code on GitHub, 2026-11-18
  11. Cursor pricing, Cursor, 2026-11-18
  12. OpenClaw, OpenClaw Foundation, 2026-11-18
  13. Agent harness, Microsoft, 2026-11-18