ES Technical meeting

AI harness examples: from coding to a company's processes

Four examples of an AI harness, from the most technical to the closest to the business: a coding agent, an agent that works for hours, collections and commission calculation. In each one, what the model sees, what it can do, how it is checked and what is recorded.


An AI harness is easier to understand by looking at one than by defining it. Here are four examples, from the most technical to the closest to the business, described with the same four questions: what the model sees, what it can do, how its work is checked and what is recorded. If you want the definition first, it is in what is an AI harness.

The four questions

A harness is everything around the AI model. To compare different harnesses, four questions are enough:

  1. What it sees. The data and documents the model can reach.
  2. What it can do. The tools and actions it is allowed.
  3. How it is checked. What verifies the result, and whether that is an exact rule, another model or a person.
  4. What is recorded. What is written down about what happened.

Example 1: a harness for coding

This is the most widespread kind of harness. Products such as Claude Code or Codex are an AI model with a harness around it, designed for writing software (LangChain, "The Anatomy of an Agent Harness", 10 March 2026).

In a coding harness
What it sees The code repository and a short file of project instructions
What it can do Read and edit files, run commands, run the tests
How it is checked By running the code: tests, linters and type checking
What is recorded The repository's change history

What makes it work is that the output can be run. If the code does not compile or a test fails, the harness knows without asking the model. OpenAI described in February 2026 how a team built an internal product this way, with short instructions that act as a map and architecture rules checked automatically (OpenAI, "Harness engineering").

Example 2: a harness for tasks that take hours

An agent that works for hours has a problem of its own: each session starts with no memory of the last. Anthropic described in November 2025 the harness it used to solve it ("Effective harnesses for long-running agents").

In a harness for long-running tasks
What it sees A list of features to build with their status, a progress file and the change history
What it can do Work on one feature at a time and write down what it has done
How it is checked By testing the application end to end, as a user would
What is recorded Which feature is finished and which is not, session by session

The harness has two roles: a first agent that prepares the ground (the feature list, all marked as pending) and another that moves forward one at a time. Without that structure, the agent tried to do everything at once or declared the job done too early. The solution was not a better model: it was a different harness.

Example 3: a harness for collections

Here the work is no longer code. The finance team at Acme wants to chase overdue invoices every Monday. The process has twelve steps, and AI is in only two.

Step Who What it does
1 Harness Gathers the overdue invoices
2 Harness Calculates the 20 customers to chase
3 Harness Gathers the CRM notes
4 AI agent Reads the notes and flags a dispute or a payment agreement
5 Harness Checks every flag
6 Harness Leaves out disputes and agreements
7 Harness Calculates late-payment interest
8 AI agent Drafts the email to each customer
9 Harness Checks every figure in the email
10 Person Treasury approves, customer by customer
11 Harness Prepares the draft
12 Harness Delivers the result
In a collections harness
What it sees The overdue invoices and the notes on those customers, nothing else
What it can do Propose a flag and draft an email. It sends nothing
How it is checked With exact rules: every figure in the email has to match the calculated one
What is recorded Which data was used, what the agent proposed and who approved each email

There are three differences from the previous examples. The model does not calculate the figures. The check is not a software test, but an exact rule on every amount. And the last step before anything goes out is taken by a person, which is known as human in the loop.

Example 4: a harness for calculating commissions

The sales team at Acme calculates commissions every month. The plan changes often, and it is not the same in every country or for every product line.

In a commissions harness
What it sees Closed sales, targets and the commission plan in force
What it can do Review the exceptions and propose how to handle them
How it is checked The harness calculates the amounts with exact rules, which always give the same result
What is recorded Which rule was applied to each sale and who approved each exception

Someone in finance writes the rule in natural language. When the plan changes, the text changes. Each variant, by country or by product, is one more paragraph, written by whoever knows that case. We compare it with the usual alternative in a harness instead of dozens of vertical SaaS.

What changes from one example to the next

Coding Long-running tasks Collections Commissions
Who writes the process Engineers Engineers The finance team The finance team
Main check Software tests End-to-end tests Exact rules on every figure Exact rules on every amount
Who calculates the figures Not applicable Not applicable The harness The harness
A person's approval Optional Optional Mandatory Mandatory

The first two are harnesses for engineers: the work is checked by running it. The last two are harnesses for business processes: there is nothing to run, so the figures have to come from exact rules, every piece of data has to have a source and someone has to answer for the decision. We explain how each one is designed in harness engineering.

How we solve it at Opendome

Examples 3 and 4 are processes in the Opendome harness. Your team writes them in natural language in the Workshop; Opendome translates them into something executable, the harness validates them, one person tests them on the day's data and another activates them.

The controls come as standard: the harness resolves what is exact, the agent investigates and proposes in everything else, and the person decides. The data stays in your infrastructure, every agent is a subject in its own right and every access is recorded.

You can see it on the harness page, in the harness video (4 minutes) and, with a finance team's full day, in the finance use case.

Conclusion

The four examples follow the same pattern: a model and, around it, what decides what it sees, what it can do, how it is checked and what is recorded. What changes is who writes the process and how the work is checked. In coding, engineers write it and it is checked by running it. In a company, the team that knows the process writes it, it is checked with exact rules and a person approves it. Before choosing a harness, ask it the four questions.

Sources

Frequently asked questions

What are some examples of an AI harness?
The best known are coding harnesses, such as Claude Code or Codex: a model with access to a repository, tools to edit and run, and tests that check the result. There are also harnesses for tasks that take hours and harnesses for business processes, such as collections or commission calculation.
Is Claude Code a harness?
Yes. Claude Code is an AI model with a harness around it, designed for coding: it gives the model access to the code, tools to edit files and run commands, and ways to check its work. The model is one part; the product is the model plus its harness.
How does a coding harness differ from a harness for business processes?
In how the work is checked. In coding, you run the code and its tests. In a business process there are no tests to run: the figures have to come from exact rules, every piece of data has to have a source and a person approves before anything goes out.
What does AI do inside a process harness?
Whatever is not exact: reading notes, spotting a dispute, drafting an email or proposing how to handle an exception. In the collections example, AI takes part in two of the twelve steps. The rest are calculations and checks with exact rules, and a person's approval.
How do you compare two different harnesses?
With four questions: what the model sees, what it can do, how its work is checked and what is recorded. If a harness does not answer one of the four clearly, that part depends on the model, and it is not reproducible.
Can a coding harness be used for a finance process?
That is not what it solves. A coding harness checks the work by running code. A finance process needs the harness to calculate the figures with exact rules, every piece of data to have a source, every agent to work with its own permissions and a person to approve.

The Opendome harness, explained

Watch the video
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