@Saboo_Shubham_: wtf is an agent harness. An agent is a model plus a harness. Model reads the context and picks the next action. The har…
Summary
A breakdown of what an 'agent harness' is — the code layer around a model that turns model decisions into real work — detailing 8 common components: the loop, tools/sandbox, subagents, context management, memory, guardrails, verification, and observability.
View Cached Full Text
Cached at: 10/30/26, 11:12 AM
wtf is an agent harness.
An agent is a model plus a harness.
Model reads the context and picks the next action. The harness is all the code that turns that choice into work.
Claude Code, Codex, Antigravity, OpenClaw and Hermes Agent are all harnesses.
8 common parts every agent harness shares:
-
The loop • Sends the context to the model and runs whatever tools it asks for • Feeds the results back in for the next step • Decides when the task is finished
-
Tools and sandbox • Give the model a terminal, files, a browser and your connected apps • Run every task inside its own isolated computer • Keep the damage from a bad command inside the sandbox
-
Subagents • Take side tasks off the main agent and run them in parallel • Start each one with a fresh context window • Send back only a short summary, so the main context stays clean
-
Context management • Decides what the model sees on every turn • Loads skills and files only when the task needs them • Summarizes old history before the context window fills up
-
Memory • Stores progress notes, git history and skills on disk • Lets a new session read what the last one did • Picks the work up where it stopped
-
Guardrails • Hold risky actions like emails, payments and deletes for your approval • Keep real credentials outside the sandbox • Give a prompt injection no credentials to steal
-
Verification • Stops the agent from handing you a summary that only sounds finished • Runs tests, browser checks or a separate grader first • Lets the agent call the task done only after those checks pass
-
Observability • Traces every model call and tool call • Spots the agent repeating the same failed edit • Pushes it to try a different approach
follow @Saboo_Shubham_ for more on Agent Harness.
Similar Articles
What Is a Harness?
The article explains the concept of AI agent harnesses by comparing them to climbing harnesses, detailing components like system prompts and tools that enable AI models to function as agents.
@Saboo_Shubham_: AI Agent framework vs harness. A framework is a library you import to build an agent. ADK, LangGraph, and CrewAI give y…
The post explains the difference between AI agent frameworks (libraries like ADK, LangGraph, CrewAI) and agent harnesses (pre-built agents like Claude Code, Codex, Deep Agents), and offers guidance on when to choose each as the boundaries between them blur.
@mardehaym: To truly understand AI agents, you need to understand the harness. And it's not the model. I went deep on how a working…
The article emphasizes that in AI agents, the harness—comprising tools, context, controls, and workflows—is more critical than the model for achieving reliable, safe, and traceable outcomes.
Harness Handbook to Map Agent Behavior to Code (28 minute read)
Harness Handbook provides a behavior-level manual for AI agent harnesses, linking system behaviors to verifiable code evidence to make harnesses understandable, auditable, and editable.
Code as Agent Harness
This survey paper presents a unified view of code as the operational substrate for agent reasoning and execution in agentic systems, organizing the discussion around three layers: harness interface, mechanisms, and scaling.