# Agent vs Harness vs Framework: What Each One Is | QQuantum.ai

> Agent vs harness vs framework: model, harness, agent, framework, orchestrator and runtime explained side by side, and when to build on each.

Source: https://qquantum.ai/compare/agent-vs-harness-vs-framework

[Home](https://qquantum.ai) [compare](https://qquantum.ai/compare) agent-vs-harness-vs-framework

Comparison

# Agent vs harness vs framework.

Three words that get used as if they meant the same thing. The model reasons. The harness is the software around the model that lets it act. The agent is the two together, doing a job. A framework is a library for building harnesses. Orchestrators and runtimes sit around all of them.

- Reviewed December 2026

All Comparisons →

## The short answer

Agent = model + harness. The harness is the loop, tools, context, memory, permissions and checks around a model. A framework, such as LangGraph or an agent SDK, is a set of building blocks you use to write a harness. An orchestrator coordinates several agents or steps. A runtime is where it all executes, with state, retries and scaling.

So “AI harness vs agent” is a part-and-whole question: the harness is the part of the agent that is not the model. “Harness vs framework” is a finished-or-not question: a harness is ready to run a task; a framework is what you would build one with.

SIDE BY SIDE

## Six words, one table.

| Criterion | What it is | Example | You choose it when |
| --- | --- | --- | --- |
| Model | The language model that reasons and writes | Claude, GPT, Gemini, Llama, Mistral | Always: it is the engine |
| Harness | The software around a model that lets it act: loop, tools, context, permissions, checks | Claude Code, Codex, a custom support agent harness | You want a working agent for a task |
| Agent | A model in a harness, doing a job | A coding agent, a support agent, an AI bookkeeper | It is what you actually use |
| Framework | A library of building blocks for writing harnesses | LangGraph, Claude Agent SDK, OpenAI Agents SDK, Pydantic AI | You are building your own harness |
| Orchestrator | Code that routes work between agents, models or steps | A planner that hands tasks to subagents | One agent is not enough for the work |
| Runtime | Where agents run, with state, retries, scaling and logs | Your servers, a workflow engine, a managed agent service | Agents must run reliably without a person watching |

WHERE THE LINES BLUR

## Why people mix them up.

01

### Some products are both

The Claude Agent SDK is the harness behind Claude Code, offered as a framework. LangChain’s Deep Agents is a ready harness built on the LangGraph framework. The same code can be a harness to one team and a framework to another.

02

### Harnesses are replacing frameworks

Many teams used to start from a framework and assemble a loop. Strong general harnesses now come ready, so more teams start from a harness and customise it with tools, hooks and rules instead.

03

### Agent is used loosely

Vendors call a chatbot with one tool an agent. In this site’s sense an agent plans and acts over several steps; see chatbot vs AI agent for the line.

04

### Harness also means test harness

An evaluation harness tests a model or agent on fixed cases. It shares the name, not the job, with an agent harness.

WHICH TO BUILD ON

## Framework, existing harness or custom harness?

| Criterion | Start from an existing harness | Build on a framework | Write a custom harness |
| --- | --- | --- | --- |
| Best when | Internal or coding work a general harness covers | You need your own loop but not from nothing | The harness is your product, or must run where nothing else can |
| Time to first result | Days | Weeks | Weeks to months |
| Control | Hooks, settings, tools | Most of the loop | All of it |
| Main risk | Vendor changes beneath you | Framework churn and abstraction cost | Building what you could have reused |

We do all three, and often move a client between them: start with an [existing harness](https://qquantum.ai/agent-harnesses/claude-code-for-business) to learn what the work needs, then write a [custom harness](https://qquantum.ai/agent-harnesses) once the agent faces customers or carries a regulated process, reusing the same tools and evaluation set.

Questions

## Questions about agents, harnesses and frameworks.

### What is the difference between an agent and a harness?

An agent is the whole working system that does a job. A harness is the part of the agent that is not the model: the loop, tools, context, memory, permissions and checks. Agent equals model plus harness.

### What is the difference between an agent harness and a framework?

A harness is ready to run a task. A framework is a library of building blocks — model calls, tool definitions, state, graphs — that you use to write a harness. Some products, such as the Claude Agent SDK, are a harness offered as a framework.

### Is an orchestrator the same as a harness?

No. An orchestrator routes work between several agents, models or steps. Each of those agents still runs in a harness. Some harnesses include an orchestrator, for example to hand tasks to subagents.

### Do I need a framework to build an agent?

No. A simple agent loop is a few dozen lines of code against a model API. Frameworks help with state, retries and multi-agent graphs; existing harnesses help even more. Choose by how much control you need and how much you want to maintain.

### Which matters more, the model or the harness?

Both, but the harness is the part you control. Public benchmarks show the same model scoring differently in different harnesses, and for business work the harness is where your systems, rules and approvals live.

Keep reading

- [Definition What Is an Agent Harness?](https://qquantum.ai/agent-harnesses/what-is-an-agent-harness)
- [The service Agent Harness Development](https://qquantum.ai/agent-harnesses)
- [Comparison Chatbot vs AI Agent](https://qquantum.ai/compare/chatbot-vs-ai-agent)
- [Service Custom LLM Orchestration](https://qquantum.ai/architectures/custom-llm-orchestration)
