# What an AI agent harness is

- Canonical: https://comonad.co.uk/guides/ai-agent-harness
- Source: Comonad Limited
- Published: 30 November 2026
- Last updated: 4 December 2026

**Answer**

An AI agent harness is the engineering around a model that decides which tools an agent may use, checks its output, records what it did and lets a person stop it. The model provides reasoning; the harness decides what that reasoning is allowed to touch.

In an enterprise estate that means scoped permissions, evaluation of the whole run, logs your operations team can use, and a tested way to switch the agent off without a deployment.

An agent that works in a demo can still fail in your estate. It reaches data it should not, takes an action nobody approved, or keeps running after someone wants it stopped. A better model alone rarely fixes those failures. They are addressed in the layer around the model, and that layer is the harness.

## The model is not the product

In an established estate the interesting questions are not which model you picked. They are what the agent may call, on whose authority, what data never leaves your environment, how you will know what happened on Tuesday, and how you switch it off today without a deployment.

Those questions are answered in code and in records, around the model. A comparison of vendor frameworks will not answer them. The OWASP Top 10 for LLM Applications lists the underlying risk as "LLM06:2025 Excessive Agency": an agent that can do more than you intended, because the tools and permissions around it were left open. The Information Commission's [Tech Futures report on agentic AI](https://ico.org.uk/about-the-ico/research-reports-impact-and-evaluation/research-and-reports/technology-and-innovation/tech-horizons-and-ico-tech-futures/ico-tech-futures-agentic-ai/), published in January 2026, makes the same point from a data protection angle: what the system can access, and whether you can monitor or stop it.

The model provides reasoning. The harness decides what that reasoning is allowed to touch.

## What the harness has to do

A usable enterprise harness is specific enough that two engineers could disagree about whether a given action was allowed.

- **Permissions.** The smallest set of tools the agent needs, scoped to the task and to the user it acts for, with a policy check before each tool call. Enforce this in the harness, where the model cannot change it.
- **Evaluation.** Tests of behaviour across the whole run, not only of the text the model produces: did it pick the right tool, stay inside its permissions, and stop when it should?
- **Logging.** A trail your operations team can use, in the tools they already watch: who or what initiated the step, on whose authority, which tool was called, and what came back.
- **A tested stop.** A switch that disables the agent without a deployment, credentials that can be revoked on their own, and a fallback for work in flight. If you cannot turn it off quickly, it is not ready for production.

Structured outputs and defined failure modes belong in the same layer, so a downstream system can validate a result and reject it. The harness runs in your estate and your release process, not as a parallel stack your platform team cannot see.

## An illustration

The following is a pattern, not a client story, and it makes no claim about any particular organisation.

An agent is allowed to correct addresses in a customer record system. The model comes from a well-known provider. The agent authenticates with a shared service account, there is no policy check on the tool call, and the only way to stop it is to revoke that account, which also stops a batch job. Six weeks later the agent is overwriting notes as well, because the tool can write to the whole record. The model did what the tools allowed. The missing layer was the harness.

## Where this sits with governance

The harness is the engineering. The operating controls it has to satisfy — approvals, evaluation, the audit trail, the stop — are set out in [How to govern AI agents in production](https://comonad.co.uk/guides/governing-ai-agents-in-production). The identity and authority model behind those controls is the [six-layer framework for governing AI agents](https://comonad.co.uk/guides/ai-agent-governance-framework). For what a board should be able to write once those controls exist, see [What a board should say about AI under principal risks and uncertainties](https://comonad.co.uk/guides/ai-board-principal-risks). This page does not repeat any of them.

Building that layer inside your systems is the work described under [AI agent harnesses](https://comonad.co.uk/services/ai-agent-harnesses).

## What this is not

It is not a ranking of model vendors, and it is not a tour of open-source agent frameworks. Those lists go stale, and they do not tell you whether a particular agent in your estate can be stopped on a Friday afternoon. A harness you cannot hand to your platform team is not finished.

## How Comonad helps

Building that layer inside your estate is the work described under [AI agent harnesses](https://comonad.co.uk/services/ai-agent-harnesses). The operating controls it has to satisfy are in [How to govern AI agents in production](https://comonad.co.uk/guides/governing-ai-agents-in-production).

## Frequently asked questions

### Is an agent harness the same as an agent framework?

No. A framework is a way to build an agent. A harness is the layer around it that enforces permissions, evaluates behaviour, records what happened and can stop the agent, in the systems you already run. You can change the framework and keep the same harness duties.

### Does every agent need its own harness?

Each agent needs its own permissions, evaluation set and stop, even if they share a platform. A shared service account and a single off switch for several agents is how an incident takes down more than the agent that failed.

## Sources

- [OWASP Top 10 for LLM Applications: LLM06:2025 Excessive Agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/)
- [ICO Tech Futures: Agentic AI (January 2026)](https://ico.org.uk/about-the-ico/research-reports-impact-and-evaluation/research-and-reports/technology-and-innovation/tech-horizons-and-ico-tech-futures/ico-tech-futures-agentic-ai/)
