What is an agent harness and why it matters for enterprises
An agent harness is the software around a model that supplies its context, runs its tools, checks its work and sets its limits. The same model can score very differently in two agent harnesses, so the agent harness is the first thing to evaluate in an AI transformation.
gain on Terminal Bench 2.0 from changing only the harness around a fixed model
The same model scores very differently in two harnesses, so the harness, the part buyers rarely see, is what they should evaluate first.
- Ask every vendor to describe its agent harness in writing
- Test candidate agents on the organization's own cases
- Turn every failure caught in review into a test
The head of claims operations at a composite insurer reviews two vendor pilots of the same intake agent. Both vendors run the same frontier model on the same claim files, yet one pilot completes most files cleanly while the other stalls on missing documents. The difference sits in the software each vendor wrapped around the model, which neither proposal described.
The labs that build this software call it the agent harness. An agent harness is the layer of software around a language model that turns it into a working agent. It assembles the model's context, runs the tools it calls, keeps memory across sessions, checks output against tests and holds limits on what the agent may do. Anthropic describes its Claude Agent SDK as a general-purpose agent harness.1
The agent harness moves results with the model held fixed
Recent measurements show the agent harness changing outcomes by wide margins while the model stays constant. LangChain kept its model fixed at gpt-5.2-codex and changed only its agent harness, and its coding agent rose 13.7 points on Terminal Bench 2.0, from 52.8 to 66.5.4 That moved it from outside the top 30 to the top 5 of the leaderboard.4 Marmelab reports a test that ran one model through eight agent harnesses on the same 25 tasks, with success rates ranging from 68 percent to 88 percent.5 An October 2026 paper reports several-fold differences in scores for the same model across agent harness configurations, and argues that each one should be specified as a versioned part of the system.3
A model leaderboard therefore says little about how a vendor's agents will perform on a buyer's own work. Two AI service providers offering the same model can deliver very different results on the same work, and in our experience the gap comes from context, tools, checks and limits that a procurement team rarely sees.
Changing only the agent harness around a fixed model lifted a coding agent from outside the top 30 to the top 5 on Terminal Bench 2.0.4
An agent harness sits above the framework and carries the domain
LangChain's documentation separates three layers that buyers often treat as one. A runtime runs agents in production, a framework offers abstractions that make building with models easier, and an agent harness is an opinionated, batteries-included framework with built-in tools for long-running agents.2 In our experience, an enterprise agent harness also carries the domain context, the evaluation suite, the approval rules and the routing between models, which general frameworks leave to the builder.
OpenAI describes its own engineering in these terms. It reports that a small team built an internal beta of a product with about a million lines of code over five months with no manually written code, by engineering the agent harness around its Codex agents.6
Reliability and control are built into the agent harness
Enterprises already weigh controls as heavily as capability. In a Caylent survey of 200 senior leaders at organizations with 1,000 or more employees in the US and Canada, 83 percent placed guardrails on an equal or higher footing than model intelligence in accelerating adoption.7 Zapier's 2026 survey found that only 30 percent of leaders at organizations using agents say the technology handles a majority of their tasks without human intervention.8 Guardrails, escalation and review are functions that sit in the agent harness, so both findings bear directly on its design.
Agent harness design and process reimagination therefore belong together on the AI roadmap. When intake is redesigned around agents, each approval point becomes a rule, each risky action waits for a named person, and each failure that reviewers catch becomes a permanent test. Segeta builds its agent harness inside an agent factory, so the tests and context from one deployment carry into the next. Segeta also runs the models in the client's own cloud and places agents inside the tools people already use, which keeps the reimagined process close to existing work.
What leaders can do now
- 01Ask every vendor to describe its agent harness in writing
Request the context sources, tools, evaluation suite, approval rules and model routing behind each agent. A proposal that names only the model leaves the main driver of performance unexamined.
- 02Test candidate agents on the organization's own cases
Run the same sample through each vendor and compare completion, error and escalation rates.
- 03Turn every failure caught in review into a test
Require that each error joins the evaluation suite before the next release. The suite then grows with the workflow and protects the gains as models change.
- 04Place each workflow on the AI roadmap with its controls
Sequence each workflow so that its baseline, its owner and its approval rules exist before agents act on it. The agent harness built for the first workflow then becomes the starting point for the next one.
As enterprises move more workflows to agents, the agent harness becomes the part of an agentic system that separates one deployment from another. It holds the context that makes an agent accurate, the tests that keep it accurate and the limits that keep it safe. Enterprises that evaluate it as carefully as the model, with one accountable party owning the KPI it serves, will see each workflow make the next one cheaper. That is how an AI transformation compounds into an AI-native operating model.
How Segeta approaches this
Segeta works as the kind of AI implementation partner this piece describes. Our agent factory carries tested agents, rules and evals from one deployment to the next, so each engagement starts further along than the last. A Frame week agrees one KPI and its baseline on your own systems, our agent factory builds the agents for that workflow, and the first one goes live inside your tools within six weeks. Risky actions wait for a named person, and part of our fee follows the KPI.
Questions leaders ask
What is an agent harness?
An agent harness is the software layer around a language model that turns it into a working agent. It assembles the context the model sees, runs the tools the model calls, carries progress across sessions and checks work against tests.12 In enterprise use it also sets limits on what the agent may do, including which actions wait for a person's approval.
What is the difference between an agent harness and an agent framework?
A framework supplies building blocks for writing an agent, such as an agent loop and abstractions over models and tools. An agent harness is an opinionated, batteries-included setup with built-in tools for long-running agents.2 In our experience, an enterprise harness adds domain context, evaluation suites, approval rules and model routing on top.
Why does the agent harness matter when the model is the same?
Measurements on the same model show the agent harness alone moving results by large margins. LangChain raised a fixed model's Terminal Bench 2.0 score from 52.8 to 66.5 by changing only the harness, and a test reported by Marmelab found success rates between 68 and 88 percent for one model across eight harnesses.45
Notes and sources
- Anthropic, "Effective harnesses for long-running agents," Anthropic Engineering, November 2025, anthropic.com.
- LangChain, "Runtimes, frameworks, and harnesses," LangChain Docs, accessed November 2026, docs.langchain.com.
- Nicolas Gertler, Claudio Novelli and Luciano Floridi, "Towards Portable Specification of the Agent Harness," arXiv, October 2026, arxiv.org.
- LangChain, "Improving Deep Agents with harness engineering," LangChain Blog, February 2026, langchain.com.
- François Zaninotto, "The State Of AI Harness Engineering 2026," Marmelab, September 2026, marmelab.com.
- Ryan Lopopolo, "Harness engineering: leveraging Codex in an agent-first world," OpenAI, February 2026, openai.com.
- Caylent, "98% of Enterprise Leaders Would Let AI Agents Run Production, Under the Right Conditions: Caylent Survey Reveals," Caylent, August 2026, caylent.com.
- Zapier, "88% of enterprises now use or test AI agents, but most still need a human in the loop," Zapier, December 2025, updated November 2026, zapier.com.