What Is an Agent Harness and How Does It Differ From an Agent Framework?
Vendors use harness, framework, runtime, and scaffold as if they meant the same thing. Here is what each one does, and a four-question test to classify any agent tool you evaluate.
What is an agent harness?
An agent harness is the software layer that wraps a language model and turns its text output into action. LangChain's one-line version: "If you're not the model, you're the harness."
A model takes text in and gives text back. It can write "run this SQL query", yet it cannot run the query, read the result, remember it next turn or decide the job is done. Some outside system has to catch the output, recognise it as a command, execute it and judge when the task is complete. Each piece you add to close those gaps is harness.
[related-1]
What is a harness, in the general sense?
The term comes from software testing, where a test harness runs code under control. The agent version widens the scope: it controls, limits, verifies and corrects execution while the agent works. An evaluation harness such as SWE-bench's wraps an agent to test it. An agent harness wraps a model to make it act. Same word, opposite direction of wrapping.
Section summary: The model reasons; the harness is everything else that lets it act.
Agent harness vs framework: what's the difference?
A framework is a library you build an agent with. A harness is a ready-made environment your agent runs inside. With a framework, you write the loop; with a harness, the loop ships and you configure it, as a source-code study of eleven coding agents confirms.
A kitchen makes the four terms concrete. Picture the model as a chef.
- Framework: equipment plus assembly instructions. You build the kitchen.
- Runtime: the gas and power lines that keep the stove lit, whatever gets cooked.
- Scaffold: the mise en place laid out before each dish.
- Harness: a fitted kitchen with stations, pantry and safety rules. The chef walks in and cooks.
.png)
This taxonomy follows Harrison Chase's framework, runtime and harness split at LangChain. Scaffold is a near-synonym of harness in most papers: scaffold names the structural code, harness the shipped product.

Section summary: You build with a framework, a runtime keeps the agent alive, a scaffold sets up each call, and a harness is the finished workplace.
What does an AI harness architecture look like?
A production harness has seven subsystems around the model. The eleven-system study found all seven in every agent it read, including Claude Code and Aider:
- Agent loop: calls the model, acts, and decides when to stop.
- LLM integration: provider protocols, prompt assembly, caching and routing.
- Tools and actions: file edits, shell, queries, APIs.
- Memory and context: the context window and cross-session recall.
- Safety and permissions: what runs, what needs approval, what is blocked.
- Orchestration: spawns and coordinates sub-agents.
- Extensibility: hooks, skills, plugins and MCP connections.

For data teams, The Modern Data Company maps them directly: instructions come from the semantic layer, tools become governed data products, policy gates become data contracts, and evaluators draw on lineage and traces. So the harness question becomes a data architecture question for AI agents.
Section summary: Seven subsystems make up a harness, and in enterprises the data platform supplies much of its context and control.
[related-2]
Is Claude Code an agent harness? Examples of agent harnesses
Yes, Claude Code is an agent harness. It ships the loop, file and shell tools, context compaction, permission prompts and hooks around Claude models. Harrison Chase calls DeepAgents a general-purpose version of Claude Code and sees the Claude Agent SDK as that harness opened to builders.
Examples by type:
- Coding harnesses: Claude Code, OpenAI Codex CLI, Gemini CLI, OpenHands, Aider, OpenCode.
- General-purpose harnesses: LangChain DeepAgents, Claude Agent SDK, and the harness agent in Microsoft Agent Framework.
- Managed harnesses: AWS Bedrock AgentCore harness, where AWS supplies the loop and you supply configuration.
Modern Data 101 has 34 agent harnesses compared.
Why the label matters: the harness moves benchmark scores as much as a model upgrade. Changing only the harness around GPT-5.2-Codex took Terminal Bench 2.0 results from 52.8% to 66.5%. Claude Opus 4.5 scored 45.9% on SWE-bench Pro under a standard scaffold and 55.4% inside Claude Code.
Section summary: Claude Code, Codex CLI and DeepAgents are harnesses, and a better harness can add 10 or more points to the same model.
How do you tell if a tool is a harness, framework, runtime or scaffold?
Ask four questions in order. The first "yes" names the layer, whatever the vendor calls it.
- Do you import it and write the agent loop yourself? Framework.
- Does it keep agents running (state, retries, resume) without caring what they do? Runtime.
- Does it ship a working loop with tools, memory and permissions that you configure? Harness.
- Is it the prompt, tool schemas and instructions assembled before each model call? Scaffold.
Side check: a tool that scores agents on benchmark tasks is an evaluation harness.

For buyers, Gartner warns of "agent washing", estimating only about 130 of thousands of agentic vendors are real, and expects over 40% of agentic AI projects to be cancelled by the end of 2027. Classifying a tool shows what is left to build: a framework leaves you the harness, and a harness still needs governed business context from data products for agentic AIand an AI data platform.
Section summary: Who writes the loop, who keeps it alive and what the model sees first: those three answers classify any agent tool.
FAQs
What is the difference between an AI harness and an AI agent?
An agent is the whole working system; the harness is every part of it except the model. Put the same model in a different harness and you get a different agent, with different tools, limits and results.
Is there such a thing as an agent harness framework?
Yes, and the categories are merging. DeepAgents runs on LangChain, Microsoft Agent Framework composes a harness agent from its own blocks, and AWS runs its managed harness inside AgentCore Runtime. Classify each by what you would still write yourself.
Do I need an agent harness if I already use a framework?
If your agent takes multi-step actions with tools, something has to act as its harness, so you either build one on the framework or adopt one. A chatbot that only answers from a fixed prompt does not need one.
TL;DR
- An agent harness is everything around a language model that lets it act: the loop, tools, memory, context management, permissions and guardrails. The shorthand is agent = model + harness.
- An agent framework is a library you import to build that system yourself (LangChain, CrewAI, OpenAI Agents SDK). A harness ships the loop ready-made and you configure it (Claude Code, LangChain DeepAgents).
- An agent runtime keeps agents alive in production. A scaffold is the prompt and tool definitions assembled before each model call.
- To classify any tool, ask who writes the loop, who keeps it running and what the model sees before each call.
- Harness choice moves results: one team took the same model from 52.8% to 66.5% on Terminal Bench 2.0.
Connect with a community data expert
A no-cost session with a practitioner who's been where you are.
About Modern Data 101
Modern Data 101 is a global movement redefining how the world thinks about data. Built by the team behind The Modern Data Company, the company pioneering DataOS, the data operating system, Modern Data 101 brings together a global community of practitioners, architects, and leaders across 150+ countries at the intersection of data, product thinking, and AI.
While DataOS advances the technology and infrastructure on-ground to help enterprises operationalize data as products, Modern Data 101 advances the ideas, practices, and conversations that shape how the industry approaches data and AI. Together, they connect technological innovation with the broader movement to rethink how organizations build, govern, and activate data.
At its core, Modern Data 101 exists to simplify the journey from raw data to tangible, measurable impact. It champions data product thinking and next-generation architectures that unify and activate insights and automation across analytics, applications, and operational workflows.
In a world shifting from data stacks to AI ecosystems, Modern Data 101 helps the industry rethink what's possible.
A 9-dimension self-assessment used by 100+ data teams to benchmark strategy, ownership, and platform readiness.


Read the ideas here. Build them with The Modern Data Company.
Modern Data 101 is where the data community thinks out loud. When you're ready to move from articles to architecture, data products, governed AI pipelines, or a full Data Operating System; the team behind this community can help you build it.





