
As models become more capable, the challenge is deciding how much structure an agent still needs.
Every new failure in an AI agent can lead to another layer of code: a retry mechanism, a tool-routing rule, or another check to confirm that the model completed its task. Over time, the harness grows around the model, often in response to limitations developers encountered with an earlier version.
As the model improves, some of those layers may become less useful. A model that can select tools more reliably or follow a multi-step instruction may no longer need the same amount of hand-written orchestration. The existing harness, however, does not automatically adapt. Its rules, branches, and extra model calls remain until someone evaluates them.
Keeping unnecessary components can increase latency and cost, complicate debugging, and make the system harder to change. Removing them without understanding their purpose creates a different set of risks. An agent may lose the ability to recover from tool failures, preserve task state, verify results, or enforce permissions.
The engineering decision is therefore about which responsibilities still need to be handled by the surrounding system and which parts of the workflow can safely become simpler.
What the Harness Actually Does

A model generates responses and decides which tools to request. The harness manages how those decisions become actions within a running system.
Depending on the application, it can coordinate model and tool calls, maintain context and state, handle approvals, limit execution, recover from failures, and record what happened during a task. These responsibilities are especially important when an agent operates across multiple steps or interacts with external systems.
Microsoft’s Agent Framework describes a harness as runtime scaffolding that drives model and tool calls, manages conversation state and context, applies approval policies, and supports multi-step work. Its implementation is configurable, allowing capabilities to be added or removed based on the application.
That flexibility is central to the design. A model summarizing a document does not need the same runtime as a coding agent that edits files, runs commands, and works through a task for an extended period. The system should reflect what the agent is expected to do, the resources it can access, and the consequences of a failure.
Stronger Models Can Change the Amount of Orchestration
Some harness components compensate for decisions that models have struggled to make reliably. Developers may add explicit planning steps, route requests through specialized agents, or write rules that determine which tool should be called next.
When a model becomes more capable, parts of that logic may no longer provide the same benefit. A model that consistently selects the right tool could make a separate routing layer unnecessary for a bounded task. A model that follows a multi-step instruction may require fewer hand-written rules to move between steps.
The change is not automatic, and model capability alone does not establish that a workflow can be simplified. The relevant question is whether a component still improves the system’s performance on the tasks it is designed to handle.
Microsoft’s agent-orchestration guidance describes a range of architectures, from direct model calls to single agents and multi-agent systems. More elaborate patterns can introduce coordination overhead, latency, cost, and additional failure modes. The architecture should use only as much complexity as the task requires.
A multi-agent workflow may still be justified when work can be performed in parallel, requires distinct security boundaries, or follows a predictable business process. A simpler agent may be a better fit when one model can complete the task reliably with a small set of tools.
The architecture should be evaluated against the workload, rather than treated as a permanent response to an older model’s limitations.
The Cost of Keeping Every Layer
As harness components accumulate, their interactions can become difficult to manage.
An additional model call can increase inference cost and latency. A branch or handoff creates another point where context, instructions, or state must be passed correctly. When a task fails, developers may need to inspect the model’s decision, the tool response, routing logic, and state transitions to locate the cause.
A rigid workflow can also constrain a model that has become better at adapting to the task. The model may identify a reasonable next step, while the surrounding logic forces it through a sequence that no longer fits. Repeated checks can add overhead when they do not catch additional errors.
These costs do not mean that every extra component is a mistake. A routing layer that reduces errors across a broad task set may justify its overhead. A separate planning call that adds time without improving completion or correctness may not.
The distinction should come from evaluation. Without it, teams risk preserving complexity because it was once useful or removing a component because its value is not immediately visible.
What Can Be Lost When the Harness Is Misunderstood?
The harness is often treated as a collection of instructions around the model. That view overlooks the responsibilities that may be lost when components are removed without understanding what they do.
Consider a coding agent asked to update a function and its tests. The model edits the file and reports that the task is complete, but the execution tool returns an error. If the system does not preserve that result or verify the change, the completion message may not reflect the actual state of the code.
The developer could be left with an incomplete change and no clear indication of where the process failed. In a longer workflow, losing state can also make it difficult to resume from the correct point. Without useful traces, the team may struggle to determine whether the problem came from the model, the tool, the execution environment, or the orchestration logic.
Removing recovery mechanisms can make transient tool failures harder to handle. Removing verification can allow incorrect outputs to pass as successful work. Removing permission checks can expose resources or actions that the agent should not be allowed to access.
These are different failure modes, and they do not all require the same solution. The important distinction is between components that help the model decide what to do and components that make the system’s behavior observable, recoverable, or constrained.
A Better Model Does Not Remove the Need to Verify
Verification is a separate responsibility from deciding what action to take. The model may interpret a tool result and choose the next step, but the system needs a dependable way to establish whether the action succeeded.
For a coding agent, this can mean running tests after a change and returning the results to the model. The harness can allow another attempt and stop the loop when a configured limit is reached. The model can respond to the failure, while the system retains the execution result and controls how the workflow proceeds.
OpenAI’s Codex engineering work describes how context, tools, execution boundaries, and feedback loops support agent work. These mechanisms help connect the model’s decisions to observable results from the environment.
The same distinction applies beyond software development. A research agent may produce a convincing summary, but the sources still need to support its claims. An operations agent may recommend a change, while the application must confirm whether the underlying record was actually updated.
Verification should reflect the consequences of failure. A low-risk classification may need only a lightweight check. An agent changing production data or handling sensitive records may require stronger controls, independent validation, or human approval.
A more capable model can improve the decisions made within a workflow. It does not make the evidence of successful execution irrelevant.
The Harness Also Defines What the Agent Is Allowed to Do
Some harness responsibilities should not depend on the model’s judgment.
An agent may be able to select a tool, but that does not mean it should have unrestricted access to every tool or resource. The model can reason about whether an action is appropriate; the application must still enforce whether that action is permitted.
Research on trustworthy agents highlights that the model, harness, tools, and environment are distinct parts of an agent system. Each contributes capability and can introduce risk. A capable model can still be exposed through a poorly configured harness, an overly permissive tool, or an environment with excessive access.
For agents working with files, credentials, customer records, or production systems, an instruction such as “do not modify this file” is not equivalent to a permission boundary that prevents modification. Approval policies, access controls, and isolation can enforce restrictions independently of the model’s response.
Model improvements may reduce the need for some behavioral instructions. They do not automatically remove the need for system-level controls.
One Harness Does Not Fit Every Task

The right amount of structure depends on what the agent does and what can go wrong.
A direct model call may be sufficient for a one-step classification or summary. A single agent with a small set of tools may suit a workflow that requires a few decisions. A long-running agent that changes external systems may need persistent state, execution limits, recovery, tracing, and approval gates.
Microsoft’s architecture guidance notes that multi-agent orchestration can be useful for cross-functional work, parallel specialization, or distinct security boundaries, while also adding coordination overhead and failure modes.
The goal is to avoid carrying complexity that the task does not require while retaining the controls needed to meet its reliability and safety requirements.
How to Decide What to Remove
Teams need a repeatable way to determine whether a harness component improves the system or merely makes it larger.
Start with a task set that represents the agent’s real work. Record completion rate, correctness, latency, cost, and failure types. Then change or remove one component at a time and run the same tasks again.
If removing a planning step reduces latency without lowering task success, it may be unnecessary for that workload. If removing a retry mechanism increases failures after tool errors, the mechanism is providing value. A permission check that prevents an unauthorized action should not be judged only by whether it improves task-completion speed.
OpenAI’s agent-evaluation guidance recommends using traces and graders to inspect workflow behavior and identify where results change.
The evaluation should include failures, not just successful examples. Ordinary tasks may not expose the need for a recovery mechanism or a permission boundary; rare but costly errors can matter more than a small improvement in average latency.
For each component, teams should be able to explain what it protects or improves, what evidence supports keeping it, and what would replace its function if it were removed. A component can be simplified, combined with another, or eliminated but the decision should follow from the system’s requirements and observed behavior.
The Harness Should Keep Pace With the Model
A harness can outlive the limitation it was built to solve. As models improve, some instructions, routing rules, and planning steps may stop providing enough benefit to justify their cost.
The surrounding system still needs to manage execution, preserve relevant state, enforce access, and establish whether the work succeeded. Those responsibilities are particularly important when an agent can act across tools and external systems.
Treating the harness as part of the system that must be evaluated alongside the model gives teams a practical way forward. Keep components that measurably improve outcomes or enforce necessary boundaries. Simplify those that add overhead without enough benefit, and verify that the change does not introduce failures the previous design prevented.
The result should not be a harness that is always smaller. It should be one whose complexity is justified by the work the agent is expected to perform.
Sources
Microsoft Agent Framework Harness
https://learn.microsoft.com/en-us/agent-framework/agents/harnessOpenAI Harness Engineering
https://openai.com/index/harness-engineering/OpenAI Agent Evals
https://developers.openai.com/api/docs/guides/agent-evals/