An agent harness is the runtime layer that wraps a language model and turns it into an agent able to act on an external environment. Three organizations with real standing published definitions of that term this year, and they do not agree with each other. The disagreement has commercial consequences.
This matters commercially rather than academically, because vendors have begun selling harnesses to buyers who have no test for whether they are receiving one. What follows sets out the disagreement, the one definition built to resolve it, and the question to put to a supplier.
Salesforce, Google Cloud and an arXiv paper define the term three ways
Read them side by side and the gap is visible immediately.
Salesforce, on its Agentforce explainer published 28 January 2026 and updated 28 August, calls an AI agent harness the operational software layer that manages an AI’s tools, memory, and safety to ensure reliable, autonomous task execution. Its longer definition adds a useful image: the harness is not the brain that does the thinking, it is the environment that provides the brain with the tools, memories, and safety limits it needs to function.
Google Cloud, in an explainer last updated 15 October 2026, calls it the runtime software infrastructure and control layer that wraps around an AI model to turn it into a reliable, autonomous agent, managing the execution loop, state persistence, tool invocation, memory, and safety guardrails.
Those two are close. Academic treatment is not, and it is blunter about the state of the language.
A conceptual analysis calls the usage loose and polysemous
Sanderson Oliveira de Macedo submitted a single-author paper to arXiv on 8 June 2026, filed under software engineering and artificial intelligence, titled on exactly this question of what makes a harness a harness.
Its diagnosis is direct. The term now circulates widely, and the usage is loose and polysemous. It identifies three distinct things people mean by it: sometimes the whole product, naming Claude Code and Codex CLI; sometimes the evaluation scaffold that runs an agent against tasks, naming the SWE-bench harness; and sometimes it gets conflated with an agent framework, an SDK, an IDE plugin, or an orchestrator.
Its reconstructed genealogy explains the confusion. That word runs from the horse’s tack, to the classic test harness, to the machine-learning evaluation harness, and finally to the agent harness. Three of those four senses remain in active use in software, which is why two engineers can say harness and mean different layers without either being wrong.
What it says is missing is a reference definition that works as an instrument, one that includes and excludes cases consistently. That is a procurement problem described in academic language.
Four coupled conditions constitute a harness
Against that, Macedo proposes a constitutive definition with four coupled elements. An agent harness is the runtime engineering layer that wraps one or more language models and turns them into an agent able to accomplish tasks over an external environment, by coupling to the model an agent loop that interleaves reasoning, action and observation, a tool interface that lets the model perceive and alter the environment, context management that decides what enters and leaves the model’s window, and control mechanisms, meaning limits, verification and deterministic actions that make execution more trustworthy, auditable and contained.
The paper is strict about the conjunction: a system is an agent harness if and only if it instantiates all four elements at runtime. It also disclaims novelty, stating the four elements were not invented for the paper but drawn from mechanisms the technical literature treats as recurrent in agents that act.
Element four is the one that should interest anyone signing off a deployment, and it is the one vendor definitions tend to fold into a word like safety. Limits, verification and deterministic actions are three separate capabilities, and a supplier can have the first without the second.
Three further things about that definition make it usable.
It is constitutive rather than descriptive, so it is meant to admit and exclude rather than to characterize. It gets operationalized as an inclusion and exclusion test, then applies it to six real systems, naming Claude Code, Codex CLI, Aider, Cline, OpenHands and SWE-agent, and reports that the test includes and excludes consistently.
It draws boundaries explicitly against an agent framework, an agent SDK, an IDE plugin, an eval harness and an orchestrator. One of those boundaries is drawn with a single criterion the paper says carries a lot of weight: the harness acts during the task, while an evaluation harness acts afterward. That timing test settles an argument that otherwise runs for an hour. Those are the five things a harness is most often confused with, and a supplier claim that fails those boundaries is a claim about a different product.
And its keyword list includes context engineering, which is the right pairing. A harness that manages what enters and leaves the model context is executing the discipline described in what models need before they can build. The harness is where context engineering becomes runtime behavior rather than intention.
One caveat on citing this paper: it is a conceptual analysis and says so. It does not measure benchmark performance, so it settles vocabulary rather than value.
Salesforce draws the framework boundary more usefully than the paper does
On one point the vendor documentation is sharper than the academic text, and it is the distinction buyers most need.
Salesforce’s own FAQ answers what separates a framework from a harness. A framework, naming LangChain and Salesforce’s AI Agent Builder, provides the libraries and building blocks to design an agent’s logic. A harness is the runtime environment and infrastructure that actually manages execution, state and reliability in a live production setting. Its summary is the line to reuse: the framework is the blueprint, while the harness is the facility where the agent works.
Salesforce also publishes a comparison that clarifies why both layers exist. The agent is probabilistic, using patterns and logic to predict the next best action, and is responsible for thinking. The harness is deterministic, following hardcoded rules, safety checks and protocols, and is responsible for doing and for safety.
That split is the most important sentence in this topic for anyone accountable for a production deployment. A reasoning layer cannot be made deterministic, so the controls have to live somewhere that is. If a supplier cannot point at the deterministic layer, they are describing a model with ambitions.
Salesforce names five stages where a loop breaks
Its own Futures team published a complementary breakdown on 7 May 2026, written by Mick Costigan, Marc Escobosa, Daniel Lim and David Berthy, and it is more useful operationally than the definitions above because it says where failure happens.
A loop can break down at any of five stages. Specification, meaning did the agent correctly understand the goal. Planning, meaning can it reason and plan to achieve it. Execution, meaning can it actually take the required action. Verification, meaning can it determine whether it succeeded. And termination, meaning can it know when to stop.
Their stated dependency list for loop reliability is the procurement question in one sentence: the quality of data the harness can access, the permissions it has been granted, the tools available to it, and the clarity of the policies governing its actions, with a gap in any one able to derail the whole sequence.
Note which two stages are usually unowned. Verification and termination. Most agent demonstrations cover specification, planning and execution, then stop.
A controlled evaluation credits the harness rather than the model
Here is the evidence that turns this from a definitional argument into a budget argument.
Elias Lumer, Sahil Sen, Kevin Paul and Vamse Kumar Subbiah submitted Recursive Agent Harnesses on 11 June 2026. Their design has a parent agent generate and run an executable script that spawns subagent harnesses in parallel, using structured function calls for small subtasks.
Carry the measurement itself into a steering committee. With the backbone held fixed at GPT-5 to match published Codex and RLM baselines, their approach improves the Codex coding-agent baseline from 71.75 percent to 81.36 percent on Oolong-Synthetic, across 199 samples and 13 context-length buckets up to 4 million tokens. The authors state plainly that this is a gain attributable to the harness rather than the model. With a stronger backbone, Claude Sonnet 4.5, the same design reaches 89.77 percent.
Read the structure of that result rather than the headline. Holding the model constant moved performance nearly ten points. Then the model was upgraded and it moved again. Both levers work, but only one of them is usually on the agenda in procurement, and it is not the one that was free to change.
For a delivery organization the practical reading is that model selection is the lever everyone debates and the harness is the lever that is actually available to them. You cannot improve a frontier model. You can improve the loop, the tools and the context discipline around it.
Without a harness, four failure modes appear by default
Salesforce names what goes wrong in the absence of this layer, and the list functions as a diagnostic for anyone whose pilot underdelivered.
Infinite loops, where an agent repeats the same unsuccessful action because it lacks the memory to realize it has already tried that path. Uncontrolled resource consumption, where an unmanaged agent calls an expensive API repeatedly, producing ballooning costs without completing the task. Context drifting, where the most important details get lost in the noise of previous steps as the agent processes more information. And hallucinated tool usage, where without strict validation an agent calls a function with the wrong parameters or invents a tool that does not exist in its library.
Every one of those is a runtime problem rather than a model problem, which is the point. A better model fails the same way with slightly more eloquence.
Salesforce’s named components map onto those failures directly. Context engineering and management, covering compression of session history and injection of documents only when needed. Tool orchestration with a five-step sequence that intercepts the request, validates permission, executes in an isolated environment, sanitizes output and feeds the result back. Human-in-the-loop controls implemented as interrupts. And lifecycle and state management that boots the agent with correct prompts and permissions and saves memory snapshots during operation.
Worth noting what Salesforce does not publish on that page: no benchmarks, limits, thresholds or success rates appear anywhere on it. Its only numeral is an illustrative mention of 50 pages of logs in a compression example. Treat the component model as useful and the absence of measurement as a gap you should fill with your own.
GetGenerative.ai runs the deterministic layer around seven agents
Applying the definition to a real platform is more informative than another abstraction.
Take GetGenerative.ai, which runs a seven-agent delivery workspace. The parts of it that qualify under the definition above are the unglamorous ones. A single org context that every stage reads from, extracted once by its Metadata Agent rather than reassembled per project, which satisfies the context-management condition. Architectural logs that hold standing rules such as one trigger per object with a handler class, which is the deterministic constraint the probabilistic layer cannot supply itself. Validation of a package against a target sandbox before deployment, which is the tool interface refusing to act on unchecked output. And a documented chain from theme to epic to user story to low-level solution to workbook item to deployment, which is the state persistence that makes a generated change auditable after the fact.
Measured against the paper’s four conditions, the loop, the tool interface, context management and control mechanisms are all present and named, with validation before deployment and the architectural logs doing the work of element four. That is the test to run on any supplier, GetGenerative.ai included, and it is a better conversation than comparing model names.
Every vendor has the same limitation here, this one included. Published effort-saved figures across these agents, in the range of 50 to 80 percent by stage, are the vendor’s own numbers and are not independently audited. Only the arXiv result above was produced under controlled conditions by parties with nothing to sell. If you want to generate your own figure rather than accept anyone’s, run the agents against a live project and measure the rework rate yourself.
The four conditions, and who states what
| Condition from the arXiv definition | Salesforce’s equivalent component | Google Cloud’s equivalent |
|---|---|---|
| An agent loop interleaving reasoning, action and observation | Lifecycle and state management | Execution loop |
| A tool interface to perceive and alter the environment | Tool orchestration | Tool invocation |
| Context management deciding what enters the window | Context engineering and management | Context windows, memory |
| Control mechanisms: limits, verification, deterministic actions | Guardrails and human-in-the-loop interrupts | Safety guardrails, error recovery |
Read across a row and the three sources agree. Read the fourth row down the columns and they diverge, because only the paper separates limits from verification from deterministic action. A supplier claiming the fourth condition should be asked which of the three they actually have.
Six questions to put to any supplier claiming a harness
Use the paper’s conditions and the failure list as an interview, not a checklist to be returned by email. The delivery model these questions sit inside is described in the AI-led implementation approach.
Where does the agent loop terminate, and what is the retry ceiling? An answer that does not exist is the infinite-loop failure waiting to be discovered in an invoice.
What decides what enters and leaves the model context, and who can change it? Context management is one of four named conditions, so a supplier without an answer fails the definition outright.
Which actions are intercepted for permission validation before execution, and against whose permission model? Those mechanics are set out in reviewing what an agent’s user context can actually reach.
What is deterministic in your stack? If everything is probabilistic there are no controls, only hopes.
How is the agent’s state persisted, and can you reconstruct what it did three weeks ago? What decides it is whether a reviewer can tell what was decided and what was rejected.
And what do you measure, with what sample? That paper settled the vocabulary question. Nobody has settled the value question, which means the supplier who brings their own evidence is doing something unusual.
Where the harness ends and governance begins
A harness constrains what an agent may attempt in the moment. It does not decide what the agent should be allowed to attempt at all, and conflating the two is how organizations end up with technically safe agents doing commercially unwise things.
Salesforce’s Operational Excellence guidance draws the sharpest version of that line, by separating two things that share a word. A sandbox is an environment, an isolated copy of an org where teams build and test before changes reach production. Sandboxing an agent’s actions is different: it is the runtime boundary that constrains where and how an autonomous action executes, through scoped permissions, limited object and integration access, and controlled execution, so the agent cannot reach beyond its intended scope. Its summary of how they relate is worth adopting, since a developer sandbox is where you validate an agent’s actions against non-production data and action sandboxing is what contains those actions in production.
Scope, approval authority and ownership after go-live sit outside the runtime, in the forum that signs off change rather than in the loop that executes it. Where recursion inside the harness earns its cost, and where it should stop, is treated in when agent loops pay for themselves. Whether the output was any good is a separate question again, answered by scoring generated work rather than reading it, and the behavioral boundaries that keep a specific agent inside its remit are covered in the guardrails that keep agents in scope.
Questions people ask once the term is defined
What is an agent harness?
Because three earlier senses are still live. The arXiv paper traces the word from the horse’s tack to the test harness to the machine-learning evaluation harness, and notes it now denotes the whole product, the evaluation scaffold, or gets conflated with a framework or orchestrator. It calls the usage loose and polysemous.
What is the difference between an agent framework and an agent harness?
Salesforce answers it directly. A framework such as LangChain or its own AI Agent Builder supplies the libraries to design an agent’s logic. A harness is the runtime environment managing execution, state and reliability in production. Its summary: the framework is the blueprint, the harness is the facility where the agent works.
Does the harness matter more than the model?
In one measured case it moved more. With the model held fixed at GPT-5, performance rose from 71.75 to 81.36 percent, which the authors attribute to the harness rather than the model. Upgrading to Claude Sonnet 4.5 reached 89.77 percent. Both levers work; only one is usually yours to pull.
Why is the term used inconsistently?
Because three earlier senses are still live. The arXiv paper traces the word from the horse’s tack to the test harness to the machine-learning evaluation harness, and notes it now denotes the whole product, or the evaluation scaffold, or gets conflated with a framework, SDK or orchestrator. It calls the usage loose and polysemous.
What happens without a harness?
Salesforce names four: infinite loops, where the agent repeats a failed action without memory of trying it; uncontrolled resource consumption, where expensive APIs are called repeatedly without completing the task; context drifting, where details are lost in earlier noise; and hallucinated tool usage.
Is a harness the same as guardrails?
No. Guardrails are one component of a harness. Salesforce lists tool orchestration and guardrails alongside context management, human-in-the-loop controls and lifecycle and state management, so guardrails constrain actions while the harness also owns the loop, the context and the state.
ChatGPT
Claude
Perplexity