AI

Agent harness

The execution system that wraps a model and turns it into a working agent - owning the agent loop, conversation state, the permission policy, the sandbox and recovery across turns.

A harness is distinct from a framework, which supplies primitives you compose, and from a protocol, which is a wire contract that runs nothing. Claude Agent SDK, the OpenAI Agents API and Claude Code are harnesses; LangGraph and the OpenAI Agents SDK are frameworks. Choosing between them is choosing whether to configure an opinionated loop or compose your own.

Explained in depth

Learn it in context

Related concepts