catomsBook a 20-min call

What is an AI harness? Agent = model + harness

An AI harness is everything around the model: prompts, tools, rules, guardrails, evals and monitoring. Here is what each part does and why it decides results.

The Catoms team, , 3 min read

An AI harness is everything around the model that turns it into something a business can rely on. That means its prompts and rules, the tools it can use, the guardrails on what goes in and comes out, the evals that check its work, the fallbacks for when it fails, and the monitoring that shows what it did.

The short version is a formula that has spread quickly this year: agent = model + harness. The model reads and writes. The harness decides what it sees, what it can do, and whether its answer is good enough to use.

The term is new. A source-code study of coding agents dates “harness engineering” to early 2026, and definitions are still settling. The idea is older: any team that has shipped a model to real users has built some version of this layer, often without a name for it.

The parts of a harness

Prompts and rules. The system prompt and the instructions that say what the model should do and what it must never do. These change often, so they need versions you can compare and roll back.

Tools. The functions a model can call to look something up or take an action, such as a customer lookup or a price list. Each tool also needs a description the model can understand, because that description decides when the model uses it.

Guardrails. Checks on the way in and on the way out. An input check might screen for prompt injection, which OWASP ranks as the top risk for LLM applications. An output check might confirm that an answer matches a required format or leaves out private data.

Evals. Tests that say whether the output is right. A good eval set is a list of real cases, each with a check, run every time something changes. We wrote a separate guide to writing evals.

Fallbacks. What happens when a model provider is slow or down, or when the model isn’t confident. Often the right fallback is plain software or a person.

Monitoring. A record of each run: what went in, which tools were called, what came out, what it cost. Without it, you can’t tell why quality dropped last Tuesday.

An example: making an invoice from a receipt photo

Say an invoicing app wants to create an invoice from a photo of a receipt. A model can read the photo, but the feature needs more than that.

  • A tool looks up the customer and the price list, so the model doesn’t guess them.
  • A rule says the total must come from adding up the lines, not from what the model thinks it read.
  • A guardrail rejects output that doesn’t match the invoice format.
  • An eval set of real receipts checks that totals are correct, with a bar such as 95%.
  • A fallback sends unreadable photos to a person.
  • Monitoring shows the cost per invoice, so someone can decide whether the feature is worth keeping.

None of those parts is the model, and all of them affect whether the feature works. We lay out three complete designs beyond coding in a separate post.

Why the harness matters more than people expect

Teams often respond to bad output by changing the model. Sometimes that helps, but many failures have other causes: the model never saw the right information, a tool description was vague, or nothing checked the answer. Those are harness problems, and a better model doesn’t fix them. If you’re not sure which layer failed, this test helps, and here’s how to compare two versions fairly.

The harness is also where the ongoing work sits. Models change, usage drifts, costs creep up and quality slips without anyone noticing. Someone has to own that work for as long as the feature exists.

How teams get a harness today

There are three common routes, each with a cost:

  1. Build it by hand. You get full control, but your engineers build and maintain every part for each feature.
  2. Use a framework or a hosted runtime. This removes some of the plumbing, but you still design the harness yourself, and hosted runtimes often tie you to one model family or cloud.
  3. Have people build it for you. This can work well, but it costs a lot before you know whether the idea pays off.

Catoms is building a fourth route, which we call Harness-as-a-Service: describe the problem and what success means, and get a tested harness that someone else runs. It isn’t live yet.

Related posts

Catoms isn’t built yet. Your team could be first to try it.