Insights
Agent harness design is a platform engineering job
More and more platform engineering teams are being asked to enable agents to perform enterprise tasks. That puts the focus on the agent harness. Yet enterprise AI programs still devote a remarkable share of their attention to one question: which model to standardize on.
Procurement compares providers while architecture boards debate context windows, and Benchmark charts circulate in every steering meeting. But the evidence points elsewhere. The part of the system that most often decides whether an agent finishes the job is not the model. It is the harness around it, and the harness, part of the agent infrastructure of an Agentic Platform, is the part an enterprise builds itself. An Agentic Platform makes paths executable by agents at scale, providing the necessary context while enforcing guardrails and gates. Every agent on the platform is a model running on a harness.

Figure 1: Reference architecture of an Agentic Platform showing its three layers: tooling, path specs, and agent infrastructure.
The model reasons. The harness is everything around the model that turns its reasoning into work: the context the agent sees, the tools it may call, where it runs, and how its output is checked. Within the platform, the harness is one of the three planes of the agent infrastructure layer, alongside governance and models. That makes harness design a platform engineering job. The AI platform team builds the harness once, and every path running on the platform shares it.
The evidence: a 34-point gap from the harness alone
The harness also plays a major role in how well an agent performs. Take an example from software development: give the same model, Claude Sonnet 4.5, 50 coding tasks from SWE-bench Verified Mini. With the SWE-agent harness, it resolves 68% of them. With the HAL Generalist Agent, it resolves 34% (Holistic Agent Leaderboard, sampled May 27, 2026). The model and the tasks stay the same; only the harness changes.
That 34-point gap is larger than most, with an even wider gap of nearly 48 points for o4-mini in the same comparison. Many published harness-only gaps are in the double digits. Across these comparisons, harness variance is about twice model variance on the same tasks (arXiv:2605.23950, section 4.1, May 2026). The evidence base is still small. While the relative importance of the harness and model may vary by workload, the findings provide a reason to prioritize harness design.
What an agent harness is, and where it sits
The harness is the set of four components (context, capability, execution, and evaluation) that wrap every agent run, and it’s how an agent does the work. Think of it as the operating system around an individual agent: it makes the environment legible, capable, bounded, and checked.
A raw LLM call alone provides no persistent state, tool permissions, execution controls, or end-to-end observability. Without a harness, agents proceed on assumptions; tool calls go uncontrolled. Loops lack defined stopping conditions, and output quality can't be verified.
In the three-layer Agentic Platform, the harness sits within the agent infrastructure layer:
Tooling: Domain-owned tools, such as your existing Internal Developer Platform (IDP) for software development or vertical-related systems like a CRM (for marketing and sales), or an ERP
Path specifications: A map of repeatable actions
Agent infrastructure: The engine room comprising three planes: harness, governance, and models
It's worth distinguishing the harness from adjacent concepts. A framework like LangGraph is a tool the harness may use for orchestration, while an SDK is a library. The path is a definition, and the orchestrator is what walks the graph. The harness is the configured, platform-owned environment in which the graph runs.
Model providers ship harnesses of their own, such as Claude Code and OpenAI Codex. They work well for one developer and one model. An enterprise still needs its own harness setup, because the components that determine the outcome are enterprise-specific. Context comes from its own catalog and supporting records, such as tickets and ADRs. Entitlements come from its own identity provider and policy engine. The audit trail has to land in its own ledger. And the same controls must remain in place when a team switches models or a non-engineering function onboards. A provider's harness can serve as one execution option within the enterprise's broader harness setup, but it can't replace it.
The 4 components of an agent harness
Each component addresses a question your platform team must answer before an agent runs. All four components wrap every run, regardless of vertical or use case.

Figure 2: The four components of an agent harness
Context: What the agent knows
The platform assembles context for each run and versions it as code. Paths define procedures. During context assembly, a path binds to the specific entity involved in the run: service, owner, tier, and data class.
The context window is a token budget. Retrieval and memory tiers, along with telemetry, consume that budget. Ranking and truncation therefore belong at the platform layer, not the model layer. Filter context before it reaches the model, because sending more information than the agent needs can degrade the context window and increase token costs.
The failure mode is subtle. When context is missing, the agent proceeds on assumptions, and the quality of the result degrades.
On a retry, the harness adds feedback from the gate to the context, including the eval score and details of failed checks with the associated test output. The additional grounding improves the chances of a hybrid loop converging.
Capability: What the agent can do
Capabilities are explicitly allow-listed. A gateway makes restrictions on what an agent can do deterministic. Three mechanisms commonly enforce this:
Tool registry: Every callable tool is declared as code. If it isn't in the registry, the agent can't reach it through the harness.
Gateway: A single entry point for every call, centralizing authorization and rate limits alongside audits. An MCP gateway is a common choice, but an API gateway or tool broker can play the same role.
Entitlement map: Permissions are scoped per path and per verb.
That guarantee holds only when every external access path runs through the registry and gateway. Direct network access, shell access, embedded credentials, or unregistered APIs can bypass these controls, so sandboxing and egress controls must close those routes.
Execution: Where and how the agent runs
The orchestrator schedules steps and manages retries and handoffs. Each run gets an ephemeral workspace, a disposable sandbox where lint takes place and build and tests are executed. Isolation prevents cross-contamination between concurrent runs and supports comparable, reproducible results. Reproducibility also depends on pinned dependencies, stable fixtures, versioned models, and recorded context.
A single run follows six steps:
Spin up a clean, ephemeral workspace.
Route the task to an approved model.
Execute steps and checkpoint session state.
Run lint, followed by build and tests in the workspace.
Emit artifacts and telemetry, along with results.
Tear down the workspace, ensuring nothing persists locally.
Now scale that to 200 concurrent runs. Capacity, quota, and cost become your control variables. Without orchestration and clean session handling, things can get messy fast.
Evaluation: Whether the output is acceptable
Define evaluation before the run. This gate turns a probabilistic result into a controlled acceptance decision. It has three layers:
Deterministic tests: Lint, build, and unit tests. These are typically cheaper than model-based evaluation and produce a clear pass or fail, provided the test environment is controlled. Large suites can still be slow or flaky.
Probabilistic evals: Rubric-based evaluations using judges, which can be separate subagents. These remain probabilistic.
Promotion and rollback rules: Define what ships, what gets retried, and what gets reverted before the run starts.
The design heuristic is to be deterministic where possible and probabilistic where necessary. Output from a failed run becomes context for the next attempt, which can help the loop converge. Convergence is not guaranteed, so you still need iteration caps, stall detection, and cost budgets.
One harness, every vertical
Marketing, sales, finance, and development agents can all run on the same agent infrastructure. The conceptual harness and governance requirements remain consistent when the vertical changes, while the tools and paths change. Control strength and implementation details will still vary depending on each domain's regulatory, data sovereignty, latency, and audit requirements.
The shared infrastructure is the organizational argument for platform ownership. Cross-cutting infrastructure is the platform team's job, built once and consumed by every domain. Some organizations split ownership among platform, security, and AI infrastructure teams, but central standards still anchor the substrate.
This is what an agentic enterprise depends on. In an agentic enterprise, agents do most of the work knowledge workers do today across every business function, while people direct them toward business outcomes. For this model to work, every function's path must run on the same foundation. Building and integrating agents independently within each team undermines that approach. The harness is where the shared foundation meets each agent run. Built once in the agent infrastructure layer, it lets each new function join simply by declaring its paths. Here's a practical way to test whether your approach is working: if your fourth path needs its own orchestrator, you are not building toward an agentic enterprise. You have several agents that happen to share a cloud account. Treat the harness as a product with internal customers and build it to serve multiple use cases. Harness design belongs with platform engineering: it is the one place where every agent in the enterprise gets its context, controls, and checks. Explore the agent tooling landscape to see which tools teams use for each component of the harness.

