An AI harness is the operating system around a model: the instructions, context, memory, tools, permissions, workflow logic, and persistence that let it perform useful work repeatedly.
Ask a bare model a question and it produces an answer. Put that model inside a harness and it can inspect the right files, retrieve what happened last week, choose an approved tool, complete a multi-step task, record the result, and leave enough state for the next session to continue.
Anthropic describes a harness as the instructions and guardrails a model operates under. OpenAI's description of the Codex harness adds the agent loop, thread lifecycle, tool execution, extensions, configuration, authentication, and persistence. The exact boundary varies by product. The central idea does not: the model is only one component of the working system.
AI model vs. AI agent vs. AI harness
| Layer | What it does | What survives a model swap |
|---|---|---|
| Model | Reasons, generates, interprets, and decides what to do next. | Usually nothing. It is the replaceable engine. |
| Agent | The working system you experience: a model acting with tools inside an environment. | Only what its harness preserves. |
| Harness | Provides context, memory, tools, permissions, orchestration, and continuity. | Your operating rules, corpus, workflows, and outputs. |
| MCP | Standardizes connections to tools, resources, and prompts. | Portable connections, when the next host supports them. |
MCP is important, but it is not the whole harness. It is closer to a universal port. The harness still decides which connections are available, what context is retrieved, what requires approval, what gets recorded, and how work continues after the current context window ends.
See it in practice: the architecture of a real harness, a chief of staff running on these exact parts. Then assemble your own from a single folder.