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.
- What the model sees. Which data and which documents it receives for each task. A collections agent needs invoices and due dates, not payroll.
- 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.
- How its work is checked. What is verified before a result is accepted, and who verifies it.
- 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:
- 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.
- Every piece of data carries its source. From each figure you can get to the record it comes from.
- 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.
- 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
- Vivek Trivedy, "The Anatomy of an Agent Harness", LangChain, 10 March 2026.
- Ryan Lopopolo, "Harness engineering: leveraging Codex in an agent-first world", OpenAI, 11 February 2026.
- Justin Young, "Effective harnesses for long-running agents", Anthropic, 26 November 2025.