In an agent, the model only outputs text. Everything else is done by the harness: ordinary software that sits between the model and the world.
The harness does four jobs. It builds the context the model reads on each turn, choosing which instructions, files and earlier results go in. It offers a set of tools and describes them to the model. It reads each tool call the model outputs, checks it against its rules and runs it. And it applies the stop rules and any approval points where a person must say yes.
That makes the harness a boundary. A tool it does not offer cannot be called. A folder it does not expose cannot be read. A tool that sends email can only send what the harness lets through. When something goes wrong in an agent, the first question is often not “what did the model output?” but “what did the harness allow?”.
The word is informal and recent. “Harness engineering” is used for the work of designing this software well: the context, the tools, the feedback and the checks. OpenAI’s post on the subject describes engineers spending their time on “environments, feedback loops, and control systems” rather than on the code the agent writes. The survey by Mei et al. covers the context side as a field of its own.
The explainer lets you switch tools and folders on and off and see which runs succeed, fail or leak.