Agent harness

The program wrapped around a language model that turns it into an agent: the loop, the tools, the permissions and the context it is given.

Updated November 23, 2026

Two agents can call the same model and behave very differently, because the harness decides what the model sees and what it may do. It chooses the tools (shell, file edits, web search), how it asks for permission, how it trims a long conversation and which instruction files it reads.

Claude Code, Codex, OpenCode, Pi and Goose are harnesses, and several of them can drive models from more than one provider. Picking an agent is mostly picking a harness. Running several in one workspace is the cheapest way to compare them on your own code.