ES Technical meeting

What is an AI harness and why an agent does not work without one

An AI harness is everything around the model: it decides what the model sees, what it can do, how its work is checked and what is recorded. An agent is a model plus a harness, and in a company the second part is what makes the difference.


A chat answers. An agent acts. A harness ties it to a process. An AI agent has two parts, a model and a harness, and the one that turns it into an agent that works is the harness. Everybody talks about the model; hardly anyone talks about the harness. Here I explain what it is, how it differs from a prompt and from a guardrail, and what it has to guarantee in a company.

What is an AI harness

An AI harness is the layer around a language model that turns it into an agent: the instructions, the tools, the data it can reach, the checks and the record of what it does. The model reasons; the harness sets the conditions under which it does so.

LangChain sums it up like this: an agent is a model plus a harness, and the harness is all the code, configuration and execution logic that is not the model itself (LangChain, "The Anatomy of an Agent Harness", March 2026). According to the same source, a harness includes the system instructions, the tools and their descriptions, the infrastructure the agent works in, the logic that splits work between agents and the deterministic steps that run around the model.

The word was already in use in software engineering: a test harness is the rig around a program that runs it and checks it. You will also see it called an agent harness.

An AI agent, for its part, receives a goal, plans the tasks, carries them out and validates the result. We explain it in detail in what is an AI agent.

Chat Agent without a process Agent with a process harness
What it does Answers a question Decides and carries out steps toward a goal Runs a defined process, under its rules
What data it sees What you paste in Whatever its tools can reach What the process hands it
Who checks You, when you read the answer The model itself The harness, with exact rules
Who decides You The agent A person, on what the agent proposes
What is recorded The conversation It depends on the tool Every piece of data used, every calculation and every approval

The four things a harness decides

A harness decides four things, and the model decides none of them: what it sees, what it can do, how its work is checked and what is recorded.

  1. What the model sees. Which data and which documents it receives for each task. A collections agent needs invoices and due dates, not payroll.
  2. What it can do. Which tools it has and how far it can go with them: read, prepare a draft, propose a payment. And what it can never do without a person.
  3. How its work is checked. What is verified before a result is accepted, and who verifies it.
  4. What is recorded. Which data was used, what was calculated, what the agent proposed and who approved it.

One practical consequence: if you change the model, the harness stays the same. The same data, the same controls and the same record. That is why the harness is what a company builds and keeps, and the model is what it chooses at any given time.

Harness, prompt, guardrails and context engineering: how they differ

They are four different things, and the first three are parts a harness can use. The prompt is an instruction, the context is the information the model receives, a guardrail is a filter, and the harness is the whole system that applies them and checks the result.

Concept What it is What it solves What it does not solve
Prompt The instruction the model receives What is asked of it and by which criteria That the model always follows it
Context engineering Choosing what information the model receives at each step That it has what it needs to reason What it can do and how it is checked
Guardrail An instruction or a filter that asks the model not to do or reveal something Reducing errors and unwanted output It depends on how the model interprets the instruction each time
Harness Everything around the model What it sees, what it can do, how it is checked and what is recorded It does not make the model better: it makes the work reliable

The difference from a guardrail matters in a company. A guardrail asks the model to behave in a certain way; a harness rule does not depend on the model, because it runs outside it and always gives the same result. We cover this in guardrails and data security.

What is harness engineering

Harness engineering is the work of designing that environment: instead of asking the model more cleverly, you build what the agent needs to do the job well and what checks that it has done it. The term spread in 2026 from software development with agents.

OpenAI described it in February 2026 when it explained how a team built an internal product with coding agents: the engineers' work moved from writing code to preparing the environment, specifying intent and setting up the feedback loops. It sums it up in four words: "Humans steer. Agents execute." (OpenAI, "Harness engineering"). The text is OpenAI's own account of its own product, so its results should be read as a case told by an interested party.

A few months earlier, Anthropic had described the same kind of problem: an agent that works across many sessions starts each one with no memory of the previous one, and without a structure around it tends to take on too much, leave work half done or declare it finished too early (Anthropic, "Effective harnesses for long-running agents", November 2025). The fix was not another model but another harness.

A harness for coding is not a harness for your company's processes

Almost every harness people talk about today is built for coding, and what has to be checked in a business process is different. In coding, the harness checks the work by running the code and its tests. In a finance, procurement or customer service process there are no tests to run: there are figures that must be exact, data with a source and decisions someone answers for.

A harness for business processes has to guarantee at least four things:

  1. The harness calculates the figures, not the model. The model reasons over your data, but amounts, totals and due dates come from exact rules, which always give the same result.
  2. Every piece of data carries its source. From each figure you can get to the record it comes from.
  3. No action runs without a person approving it. The agent investigates and proposes; a person approves, corrects or rejects, and who, when and why is recorded. This is known as human in the loop.
  4. Every agent is a subject in its own right. An agent never uses a person's credentials: it has its own policies and sees only what its task needs. We explain it in subjects and policies.

An example. The finance team at Acme wants to chase overdue collections every Monday. The harness gathers the overdue invoices, calculates with exact rules how much each customer owes and keeps the twenty that owe the most. The agent writes one email per customer. The harness checks that every figure in the email matches the calculated one, and leaves the twenty emails as drafts. Tomás, the controller, reviews them and decides which ones go out. The split is always the same: the harness resolves what is exact, the agent investigates and proposes in everything else, and the person decides.

How we solve it at Opendome

The Opendome harness is where your team writes its processes and its screens in natural language, and where AI agents work for it, under its rules. When the team needs a new process, it writes it in the Workshop; Opendome translates it into something executable, the harness validates it, one person tests it on the day's data and another activates it.

The harness surrounds every process with built-in controls. They are not guardrails: they are deterministic rules, which always give the same result. You can write a wrong process, but not an unsafe one.

It works on your data and inside your security, not on a copy: the data stays in your infrastructure and every access is recorded. And you choose the model. You can see it on the harness page, in the harness video (4 minutes) and, with a full example, in the finance use case.

If you are putting agents into production, the human in the loop practical guide brings together the decision matrix, the agent sheet and a checklist.

Conclusion

An agent is a model plus a harness, and in a company the part that decides the outcome is the second. The harness sets what the model sees, what it can do, how its work is checked and what is recorded, and it stays the same even if you change the model. Before asking which model to use, ask which harness surrounds it: who calculates the figures, where each piece of data comes from, who approves and what is written down.

Sources

Frequently asked questions

What is an AI harness?
It is everything around a language model that turns it into an agent that works: the instructions, the tools, the data it can reach, the checks and the record. The harness decides what the model sees, what it can do, how its work is checked and what is recorded. An AI agent is a model plus a harness.
What is the difference between an AI model, an agent and a harness?
The model reasons and generates text. The agent is the system that receives a goal, plans the tasks, carries them out and validates the result. The harness is the part of the agent that is not the model: it gives it data and tools, checks its work and records it. If the model is changed, the harness stays the same.
What is harness engineering?
It is the work of designing the environment an AI agent works in: what information it receives, which tools it has and how what it delivers is checked. The term spread in 2026 from software development with agents, where engineers move from writing code to preparing the environment and the feedback loops.
How does a harness differ from a guardrail?
A guardrail is an instruction or a filter that asks the model not to do or reveal something, and its result depends on how the model interprets it each time. A harness is the whole system around the model, and its rules run outside it: they always give the same result and do not depend on the model obeying.
Why does an AI agent need a harness to work in a company?
Because in a business process figures must be exact, every piece of data must have a source and someone answers for each decision. The model does not guarantee that. The harness does: it calculates figures with exact rules, keeps the source of each piece of data, requires a person's approval and treats each agent as a subject in its own right.
Can you change the AI model without changing the harness?
Yes. The harness is not part of the model: it defines the data it receives, the tools it uses, the checks and the record. If one model is replaced by another, those elements stay the same. That is why the harness is what a company builds and keeps, and the model is a part it can choose and change.

The guide to making sure every decision by an agent has someone who answers for it.

We ask for minimal context: name, work email, company and role. We process it in accordance with the GDPR.

Controller: OPENDOME, S.L. · Purpose: to handle your request and get the document to you; if you authorise it, to contact you and send you content. Legal basis: performance of your request and, for later sends, your consent. Retention: until you ask for erasure or withdraw your consent. Rights of access, rectification, erasure, restriction, portability and objection in the privacy policy. The form is processed on our own infrastructure hosted in the European Union and sets no cookies.

Want to go deeper?

Book a 30-minute technical meeting for your team.

We will show you Opendome on a case like yours: your data, your policies and your processes.

Book a technical meeting