From the source
Cohere explains what an agent harness is: the software around an AI model that lets it work as part of an agent, coordinating model calls, tools, context and task state.
- The harness sends each request to the model with operating instructions, task information and tool descriptions, then calls tools the model requests and passes results back.
- Cohere says the harness is what makes it possible to build a functioning agent around a model, and its design shapes what the agent can do and how well.
- A harness maintains task state between model calls, so an agent can track completed steps and use earlier results to decide what comes next.
- When a task history exceeds what the model can process in one call, the harness can still supply relevant information without including the entire history.
- It can also validate tool inputs, handle errors, retry failed operations that won't cause unintended changes, and record model and tool calls for tracing and auditing.
- Administrators can configure it to restrict tool use or require human approval before specified actions proceed.






