What is an AI harness?
An AI harness is the software around a model that lets it work as an agent. It assembles instructions and context, makes tools available, applies permissions, and manages progress across the steps of a task. Changing the harness can change what the same model is able to do.
AI Explained · Updated
On this page
Model, harness, and agent
The model interprets inputs and proposes outputs or actions. The harness connects the model to the files, tools, and rules it can use. The agent is the whole system handling the task. For example, an agent can ask a model to decide which document to inspect, then use its harness to read the permitted file and pass the result back to the model.
What a harness can control
A harness can decide which tools are available, retain progress from earlier steps, ask for approval, enforce time limits, and log what happened. Some harnesses save a progress note so a later session can pick up a long task. These controls differ by product and configuration.
How skills fit in
A skill gives the agent reusable instructions for a type of task, such as checking a report for required sections. The harness determines when it can load those instructions and which tools the agent can use while following them. Try this Claude Skills workflow for an example of packaging step-by-step instructions.
Why the difference matters
Imagine two assistants use the same model. One receives a question and returns a text answer. The other can inspect a sample spreadsheet, run a calculation, and show its work. Their results may differ because the second harness gives the model a controlled way to check the evidence.
What does an AI harness do in a real task?
Suppose you ask an agent to turn three inventory reports into a weekly summary. The harness gives the model access to the approved folder, supplies the job instructions, and passes file contents back after each tool call. It can stop the run if the model requests a restricted action and keep enough state for the job to resume after a retry. A reporting skill can specify the sections in the summary. The model uses that guidance to reason about what changed and write the result.
Sources
Source links open in a new tab.