Agent Harness
An execution framework that connects large language models with tools, responsible for task orchestration, state management, and error handling. It serves as the intermediary layer that coordinates the interaction between an AI model's reasoning capabilities and the external tools or services it invokes during task execution.
Core Facts
The Agent Harness does not replace the reasoning capability of the core model, but instead builds a runtime management shell around the model, responsible for cross-cutting concerns such as tool invocation, state management, and error recovery.
An Agent Framework is more like a programming library, providing abstractions over the LLM, tool primitives, memory and orchestration capabilities, but developers must implement details such as the tool-calling loop, session management and network retries themselves; a Harness, by contrast, is a complete out-of-the-box execution environment.
Agent Harness refers to the entire engineering system wrapped around a large language model that is responsible for coordinating the model's interactions with the external world.
Timeline (last 90 days)
For teams building agent applications, it is recommended to design a lightweight, purpose-built Harness based on their own business constraints rather than stacking patches on a general-purpose framework.
For an enterprise-grade Harness, traces are not only debugging tools but also a data source for compliance auditing, cost attribution, and offline evaluation.
Resuming execution from breakpoints and idempotency are easily overlooked yet critical engineering problems in multi-step agent execution; a mature Harness typically needs to introduce idempotency keys, transactional state snapshots, and checkpoint mechanisms.
Agent Harness refers to the shell that hosts a large model and provides it with runtime capabilities such as tool calling, memory retrieval and session management; Claude Code, Codex CLI and Waku Agent all belong to this category.
EvoX proposes the "Second Policy" view: treating the Agent Harness as an Operational Policy that complements the foundation model's own Semantic Policy.
The experiments cover five benchmarks, six base models, and six Agent Harnesses; across 691 common task-model combinations, EvoX achieved the highest numerical success rate of 56.2%, about 3.0 percentage points above the average of the other five Harnesses.
The same base model paired with different Harnesses may produce significantly different task success rates, and the Harness thus becomes a performance variable independent of the model weights.
Agent Harness designs differ greatly across vendors, and the same underlying model paired with different Harness implementations can perform very differently in practice.
A developer, by labeling failure cases and analyzing their distribution, found that 80% of failures were concentrated in incorrect tool-call parameters, and after optimizing tool descriptions and parameter validation, the overall success rate improved significantly.
The planner involves design trade-offs: whether to use ReAct-style step-by-step reasoning or to plan first and then execute; the tool layer involves a trade-off between static registration and dynamic discovery.
40 more timeline events
All Facts (20)
The Agent Harness does not replace the reasoning capability of the core model, but instead builds a runtime management shell around the model, responsible for cross-cutting concerns such as tool invocation, state management, and error recovery.
90%VerifiedAn Agent Framework is more like a programming library, providing abstractions over the LLM, tool primitives, memory and orchestration capabilities, but developers must implement details such as the tool-calling loop, session management and network retries themselves; a Harness, by contrast, is a complete out-of-the-box execution environment.
80%VerifiedAgent Harness refers to the entire engineering system wrapped around a large language model that is responsible for coordinating the model's interactions with the external world.
80%VerifiedA Harness is the collection of tools and runtime environment that an agent relies on, and is the underlying infrastructure that enables AI to perform operations.
80%VerifiedThe design quality of the harness directly determines the performance differences of the same model across different systems.
75%VerifiedAgent harnesses differ from prompt engineering: the latter only affects a single model input, whereas the harness determines how an agent keeps operating across multiple turns and multiple tools.
75%VerifiedThe technical foundation of the Agents API is powered by the Codex harness.
75%VerifiedThe concept of Harness originates from Test Harness in software engineering, and in the AI Agent context it is extended to mean the systematic engineering that enables an Agent to run continuously, cyclically, and in a controlled manner
75%VerifiedAgent Harness is an engineering constraint framework built around agents, with the concept borrowed from the wiring harness system in automotive engineering.
75%VerifiedMCP only addresses how capabilities are described and invoked, not permission narrowing, auditing, or cost control, which remain the harness's own responsibility.
65%VerifiedIn the field of AI programming, Harness refers to the runtime framework wrapped around the underlying large model, responsible for managing context, tool calls, state retention, error retries, and multi-step task decomposition, without training new models.
65%VerifiedMany agent frameworks are deliberately designed to isolate final evaluation data from the optimization loop, so agents can only see training and validation signals and cannot directly access the test set
65%VerifiedHuman-in-the-loop allows pausing at specific nodes in the Agent's execution flow to await human review or intervention before continuing, and relies on the persistence layer to save the complete state at the time of the pause in order to resume execution from the breakpoint.
65%Verified工具调用(Function Calling/Tool Use)是Agent系统的核心能力,允许模型动态调用搜索引擎、代码解释器、数据库查询、API接口等外部资源
65%UnverifiedSuperpowers本质上是一个专为Coding场景设计的轻量级Agent Harness实现
85%UnverifiedJediah Katz defines Agent Harness as the system layer that "wraps the model, steers the model, and connects it to the world," divided into the Runtime layer and the Context orchestration layer.
60%UnverifiedThe context management layer handles information compression, history trimming, and memory retrieval during long tasks to avoid exceeding the model's context window
60%UnverifiedIn the Agent context, a Harness is an intermediate layer connecting large language models to the external world, responsible for context window management, tool call serialization and deserialization, multi-turn conversation state maintenance, and sandbox environment lifecycle management.
60%UnverifiedResuming execution from breakpoints and idempotency are easily overlooked yet critical engineering problems in multi-step agent execution; a mature Harness typically needs to introduce idempotency keys, transactional state snapshots, and checkpoint mechanisms.
50%UnverifiedFor an enterprise-grade Harness, traces are not only debugging tools but also a data source for compliance auditing, cost attribution, and offline evaluation.
50%