Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Agent harness

Topic: AgentsAlso called harness, scaffold, harness engineering

Definition

The software around a model that turns it into an agent: the loop, tools, prompts, context management, permissions and limits.

In more detail

The same model can perform very differently in different harnesses, because the harness decides what the model sees and what it can do. Claude Code, Codex, OpenHands and Cursor's agent are harnesses; so is the loop you write with an agent SDK.

A harness handles calling the model, running requested tools, adding results to the context, compacting or clearing old content, loading instruction files and skills, asking for approval and stopping at limits. When an agent misbehaves, the fix is often in the harness (a clearer tool description, a tighter limit, a better summary) rather than in the prompt.

  • Agent

    A system where a model decides which actions or tools to use, in a loop, until a goal or stop condition is met, rather than following fixed steps.

  • Agent loop

    The repeating cycle of model call, tool call, observation and next decision that drives an agent until the task is done or a limit is hit.

  • Agent memory

    Information an agent keeps beyond a single context window, such as user preferences, past decisions or task notes, and retrieves when needed.

  • Compaction

    Summarising earlier parts of a long conversation and replacing them with the summary to free context space for the work still to do.

  • Context engineering

    Deciding what information, tools and history a model sees at each step, and what to leave out, to get the result you want.