AI agent vs harness: what each word means
An AI agent is a model that plans its own steps and calls tools in a loop until a task is done. A harness is the software around the model that supplies the tools, runs the loop, keeps memory and enforces permissions. As of November 2026 the vendors that use these words draw the boundary between them in slightly different places, and the sections below show where.
The words side by side
| Word | Plain meaning | Source that uses it this way |
|---|---|---|
| Model | Mostly takes in text, images, audio or video and outputs text. Out of the box it keeps no durable state and runs no code | LangChain |
| Agent | A system where the model directs its own process and tool use, and gets feedback from tool results at each step | Anthropic |
| Harness | The code, configuration and execution logic around the model, such as system prompts, tools, a sandbox and hooks | LangChain, Claude Code docs |
| Framework | A package of abstractions that helps a developer build with models | LangChain, Google Cloud |
| MCP server and skill | Parts a harness can load. An MCP server provides context and tools over a standard protocol, and a skill is a folder with instructions | MCP docs, Agent Skills |
How the sources define agent and harness
Anthropic's post on building effective agents groups these designs under "agentic systems" and then splits them. Workflows are "systems where LLMs and tools are orchestrated through predefined code paths". Agents are "systems where LLMs dynamically direct their own processes and tool usage". The post adds that agents should get "ground truth" from the environment at each step, such as tool results or code execution, and that agentic systems "often trade latency and cost for better task performance".
The Claude Agent SDK documentation says an agent is an application that completes a task by planning its own steps and calling tools. In the loop it describes, Claude evaluates the prompt, calls tools, receives the results and repeats until the task is done.
The harness is the part that runs that loop. LangChain's post on the anatomy of an agent harness, dated March 10, 2026, gives the shortest version: "Agent = Model + Harness", with a harness being "every piece of code, configuration, and execution logic that isn't the model itself". Its list of contents includes system prompts, tools, skills and MCP servers, bundled infrastructure such as a filesystem or sandbox, orchestration logic for subagents, and hooks for deterministic steps like compaction and lint checks.
Google Cloud's page on agent harnesses gives a longer definition. It calls an agent harness "the runtime software infrastructure and control layer that wraps around an AI model", and lists the execution loop, state persistence, tool invocation, memory and safety guardrails among its duties. Claude Code's documentation says that Claude Code is the layer around the model that provides the tools and manages the context the model sees, and that this surrounding layer is what the term agentic harness refers to.
Where the words stop agreeing
OpenAI's Agents SDK documentation defines an agent as a packaged configuration. It "packages a model, instructions, and optional runtime behavior such as tools, guardrails, MCP servers, handoffs, and structured outputs". The page calls the agent "the core unit of an SDK-based workflow", so here an agent is a unit you configure. Anthropic's post describes an agent by how it behaves, with the model directing its own steps.
One product can carry both labels. The current version of Anthropic's "Building effective agents" post lists the Claude Agent SDK among frameworks. Anthropic's post on long-running agents calls the same SDK a "general-purpose agent harness". LangChain's Harrison Chase, in an October 2025 post, calls LangChain a framework, LangGraph a runtime and DeepAgents a harness, then writes that "LangGraph is probably best described as both a runtime and a framework" and that he does not think there is yet "a super clear definition of any of these".
LangChain defines harness engineering as how "we build systems around models to turn them into work engines". OpenAI's February 11, 2026 post "Harness engineering: leveraging Codex in an agent-first world" uses the phrase in its title and describes a team whose job moved to "design environments, specify intent, and build feedback loops" so that Codex agents can do reliable work.
Where frameworks and plug-in parts sit
In Chase's description, a framework supplies abstractions, and a runtime such as LangGraph supplies durable execution, streaming and human-in-the-loop support. A harness sits higher, and DeepAgents "builds on top of LangChain" and adds default prompts, opinionated handling of tool calls, planning tools and a filesystem. Google Cloud draws a similar line, saying an orchestration framework focuses on "the developer experience of writing the code" and a harness on "the runtime environment".
An MCP server is a program that provides context to MCP clients. The protocol calls the AI application that coordinates one or more clients the host, and names Claude Code and Claude Desktop as examples. Claude Code's own documentation, covered above, describes the layer around its model as a harness. A skill is simpler. It is a folder with a SKILL.md file holding a name, a description and instructions, and it can bundle scripts and templates. Claude Code documents both as extensions that "form a layer on top of the core agentic loop".
What to ask a vendor that says AI agent
The word agent on a pricing page says little, so ask the vendor these questions.
- Does the model choose its next step, or does fixed code decide the sequence? Anthropic's workflow and agent split is a usable test. Either can be right for a task, and the answer sets how predictable the output is.
- Which tools does it have on each ad account, and which of them write? Ask for the list for each ad platform.
- What stops a write? Look for a rule enforced in code outside the model. The Claude Agent SDK documentation shows the pattern of a permission mode plus allow and deny rules, checked in a fixed order before a tool runs. An instruction in the prompt is a request to the model.
- Can you see each query or call it made, and does the history survive the session?
- What does it remember between conversations, and can you delete it?
- Where does code it writes run, and what can that code reach?
- Which MCP servers and skills does it load, and who vets them?
- Which model sits underneath, and can the vendor change it without telling you?
The sources above do not include a vendor checklist. These eight questions are our own, drawn from their definitions.
Where Alpue Studio fits
Alpue Studio describes itself as an AI harness for marketing. Anthropic's Claude model, called through Anthropic's commercial API, gets tools, access to the connected accounts and a memory. You brief it in a chat and people approve what goes live. A new campaign reaches Google Ads, Meta or Sklik only when a person with the right role drags a slider, and each query it ran can be opened under "See query".
It has limits. It is not an MCP server, does not publish one and does not load third-party MCP servers, because it has its own connectors to the ad and analytics APIs. It has no autopilot mode and makes no automatic bid or budget changes, and custom integrations are read-only. There is no self sign-up, so teams ask for access. The security page describes the controls. The comparison with a bare server is in MCP server vs agent harness, a worked example is in an agent harness example, and skills are covered in Claude marketing skills.
Questions
What is the difference between an AI agent and a harness?
The agent is the model working through a task by choosing steps and calling tools. The harness is the software that provides the tools, runs the loop and holds the memory and rules. LangChain writes it as "Agent = Model + Harness", and as of November 2026 other vendors draw the edge of each word in slightly different places.
Is Claude Code an agent or a harness?
Its documentation uses both words. It calls Claude Code "an agentic assistant" and says the layer around the model that provides tools and manages context is what the term agentic harness refers to. The agentic loop, it says, is powered by models that reason and tools that act.
What is harness engineering?
LangChain defines it as building systems around models to turn them into work engines. OpenAI's post uses the phrase for the work of designing environments, specifying intent and building feedback loops so Codex agents can do reliable work.
Is LangChain a harness?
LangChain's own authors call LangChain a framework and DeepAgents a harness built on top of it. Chase also says the lines are blurry and that LangGraph is both a runtime and a framework. Another vendor may label the same library differently, so read the definition each one uses.
Sources
- Building effective agents, Anthropic. Read 26 November 2026.
- Effective harnesses for long-running agents, Anthropic. Read 26 November 2026.
- Agent SDK overview, Claude Code documentation, Anthropic. Read 26 November 2026.
- How the agent loop works, Claude Code documentation, Anthropic. Read 26 November 2026.
- How Claude Code works, Claude Code documentation, Anthropic. Read 26 November 2026.
- The Anatomy of an Agent Harness, LangChain. Read 26 November 2026.
- Agent Frameworks, Runtimes, and Harnesses, oh my, LangChain. Read 26 November 2026.
- Harness engineering: leveraging Codex in an agent-first world, OpenAI. Read 26 November 2026.
- Agent definitions, OpenAI API documentation. Read 26 November 2026.
- What is an agent harness?, Google Cloud. Read 26 November 2026.
- MCP architecture overview, Model Context Protocol. Read 26 November 2026.
- Agent Skills overview, Agent Skills. Read 26 November 2026.