Agent Harness Design: Why the Same Coding Model Can Perform So Differently
The same coding model can deliver substantially different results depending on its agent harness. This article examines how system prompts, tool definitions, and initial context affect performance, why alignment with reinforcement learning post-training matters, and how developers can test and maintain that alignment in practical agent deployments.
1. One Model, Two Levels of Performance
A recent industry discussion highlighted a striking discrepancy: the same coding model weights scored around 91–93 on real-world software maintenance tasks in standard agent mode, but reached 96 or even 99 in a “minimal” mode. Those higher scores matched the results from the official pre-release testing.
The community offered several explanations. Some argued that reproducing the results required a particular Linux distribution. Others suspected that the provider had quietly substituted a different model in minimal mode.
Yet tests reproduced the behavior on macOS, Windows, and a Linux subsystem. The operating system and distribution were not the relevant variables.
The decisive factor was the structure of the initial context. The case illustrates an often underestimated aspect of agent engineering: the harness—the surrounding prompts, tools, and execution setup—directly affects how much of a model’s capability it can put to use.
2. What Minimal Mode Actually Changes
Minimal mode takes an unusually restrained approach:
- A sharply reduced tool set: Only shell execution and file editing remain available; all other tools are disabled.
- An extremely short system prompt: It consists of a single instruction: “You are a software engineering assistant.”
- A clean initial context: The first request does not include extensive guidelines, tool documentation, or behavioral constraints.
Another detail was the change in the model’s wording. In standard mode, its output frequently used “Let me.” In minimal mode, it shifted largely to “Let us” and “We need.”
During pre-release testing, this difference was mistakenly treated as evidence that the provider had changed models. Instead, the same weights exhibited different reasoning patterns under different context conditions.
3. The Explanation: Aligning Post-Training and Inference
Why would changing the agent environment cause such a large performance difference?
Public version history provides a clue. A few days before the model’s official release, a commit in its agent framework repository aligned the Minimal Agent with the agent composition used during reinforcement learning (RL) training.
In practical terms, minimal mode was the environment used for the official benchmark runs.
During RL post-training, the model was optimized in conjunction with a particular harness configuration: a short prompt, a small tool set, and compact context. When the inference environment matched that configuration, the model could operate in the task-solving pattern it had been trained to use.
By contrast, the standard mode introduced more tools and longer prompts. That changed the context distribution relative to training, reducing how effectively the model could apply its capabilities.
The key distinction is that minimal mode did not make the model more knowledgeable; it restored a familiar environment. The model was responding to its surroundings, not acquiring new intelligence.
4. The Underlying Mechanism: Context Conditions the Distribution
Technically, a language model generates output according to a probability distribution conditioned on its context. For a coding model post-trained for agent tasks, several parts of that context matter.
- The system prompt shapes the conditional distribution. If training used a one-sentence prompt but inference introduces thousands of words of rules, the model must also interpret those additional constraints. This can make its reasoning behavior less stable.
- Tool definitions compete for attention. When all tool schemas are included in each request, they occupy context space and participate in attention computation. More tools can introduce more tokens unrelated to the core coding task.
- Generation trajectories are path-dependent. The shift from “Let me” to “Let us” illustrates how a context change can lead to a different generation pattern. In practice, such shifts can accompany differences in task performance.
A simplified representation of the inference input looks like this:
prompt = [system_prompt] # Minimal mode: one sentence+ [tool_schemas * N] # Minimal mode: N=2+ [conversation_history]+ [user_task]
When this structure matches the input structure used during RL training, the model operates under more in-distribution conditions. Greater departures from that structure can lead to greater performance degradation.
5. Engineering Lessons: Align Context Before Optimizing the Environment
This case offers several practical lessons for engineers building coding agents.
1. Test Context Alignment Before Adding Optimizations
After selecting a model, first identify the default prompt and tool configuration used by its provider during training or evaluation. Start from that configuration and make incremental changes rather than building a supposedly more comprehensive harness from scratch.
Use the same task set for an A/B comparison:
Group A: Default minimal harnessGroup B: Custom long prompt + expanded tool setEvaluation metrics: Task completion rate, average step count,tool-call error rate
This helps establish whether additional instructions and tools improve performance or interfere with the model’s trained behavior.
2. Remove Tools Rather Than Automatically Adding Them
Many teams instinctively equip agents with search, browsers, databases, and numerous Model Context Protocol (MCP) integrations. Each additional tool can dilute attention to the core task.
A leaner approach is to keep shell execution and file operations as the two basic capabilities on the primary execution path. Other needs can be handled indirectly through the shell, with specialized subagents loaded on demand when necessary.
3. Monitor Behavioral Drift
Language patterns such as “Let me” versus “Let us” can serve as inexpensive signals of behavioral change.
In production, monitor output style, average reasoning length, and tool-call patterns. A shift in these distributions may indicate that a recent harness change has altered the context structure.
These signals are useful for observing changes in behavior; they should be interpreted alongside task-performance measurements.
4. Keep Prompts Short and Move Guidelines Outside Them
Move lengthy coding guidelines out of the system prompt. Instead, inject relevant guidance when assigning a task, or place it in repository convention files that the model can read when needed.
This reduces recurring context overhead and keeps the input structure closer to the one used during training.
6. Conclusion
The debate over minimal mode appears, at first, to be about benchmark scores. Its deeper lesson is that, in the post-training era, model performance depends on more than weights alone. It is a joint outcome of model weights × agent harness.
When evaluating a model, examine the environment in which it was trained and tested. When deploying it, reproduce that environment as closely as practical. When optimizing the agent, make small, measured changes from an aligned baseline.
For developers, the most useful starting point is not the operating system or Linux distribution. It is the first request sent to the model: the system prompt, tool definitions, and other context it contains. That input may explain why the same model appears to perform at two very different levels.
