On its own, a model does one thing: it takes a question and returns an answer. A harness is the system around the model that coordinates those exchanges into a chain. It asks the model what to do next, carries out that step, hands the result back as the next question and repeats until the job is done. Model plus harness is an AI agent.
A typical harness has five parts, each configured on its own:
- Instructions: your brief, plus memory of past jobs.
- Checks: rules in code that run before any action.
- Approvals: which actions wait for a person.
- Tools: what it can read and do in your systems.
- Stop or repeat: when to loop again and when to finish.
In our example, each part runs as a step in a chain that the harness coordinates through five loops to move the job forward.
The instructions: pay invoices under $500 that arrive in this inbox. One for $420 arrives. Loops 1 to 3 find the matching order, pull the supplier's record and draft the payment. In loop 4 the model asks to queue the payment. Two checks pass: under $500, not a duplicate. A third fails: the account details differ from the supplier's record.
The instructions set the workflow, and the checks set the conditions for allowing the payment. A rule in code stopped it during loop 4 and pushed the job back to the instructions step to start a fifth loop. There the model messaged the finance lead in Slack and memory saved a note for future reference: hold this supplier's payments.
Harness engineering is becoming a skill of its own. OpenAI and LangChain both published on it in February 2026. LangChain moved its coding agent from the top 30 to the top 5 on Terminal Bench 2.0, a public benchmark, by changing only the harness.
Several tools are free to start using. n8n, Dify, Langflow and Sim need little or no code. CrewAI is open source if you code.
Which other harness builders would you recommend? Tell us.
