./glossary / agent-harness

Agent harness

An agent harness is the software around a model that turns proposals into actions: it exposes tools, runs the loop, checks results, enforces limits and records what happened. The model chooses; the harness executes. Most differences between two agents using the same model come from the harness.

A model alone cannot open a file, run a command or click a button. A harness gives it tools, sends each call, reads the result and decides whether the step succeeded. It also owns the parts people forget: retries, timeouts, spend caps, permission checks and the log.

This is why two products with the same underlying model can behave very differently. One loops on a failed command; the other notices the failure, reports it and stops. One re-sends the entire history every step; the other compresses tool output. The model is the same; the bill and the reliability are not.

When you evaluate an agent, ask what the harness enforces without the model's cooperation. Anything that depends on the model deciding to behave is a preference, not a control.

Where this comes up

Related terms

Cite this definition

MershLab, “Agent harness”, https://www.mershlab.com/glossary/agent-harness.

Last updated: 2026-11-27.