AI Agent Benchmarks: Why Performance Drops When the Environment Changes
Why can the same coding model score 91–93 in a standard agent setup but reach 96–99 in a minimal configuration? This article examines how tool availability and system prompts can create a mismatch with reinforcement learning environments, explains a community-developed two-stage anchoring approach, and outlines the implications for agent evaluation, training, and integration.
An Unexpected Benchmark Gap
A striking observation has been circulating in developer communities: a coding-focused language model scored around 91–93 on coding-agent benchmarks under the default configurations of several mainstream coding tools. Yet when evaluators switched to a “minimal mode,” two runs scored 99 and 96—almost matching the model’s results during prerelease testing.
The reported gap was large enough to raise questions about the evaluation setup rather than being dismissed as routine score variation.
There was also a noticeable change in wording. In standard mode, the model frequently used “Let me.” In minimal mode, that phrase almost disappeared, replaced by “Let us” and “We need.” During prerelease testing, some observers interpreted these differences as evidence that the platform had silently switched model weights. The emerging explanation was different: the same weights were behaving differently under two agent configurations.
Understanding this case requires looking beyond the model itself. What did minimal mode change? Why could those changes produce such a large score gap? And what does the result mean for developers evaluating or integrating AI agents?
1. What Minimal Mode Actually Changes
Minimal mode makes two main changes.
First, it sharply reduces the tool set. A standard agent framework may expose more than 20 tools, covering search, web access, subtask delegation, terminal commands, and file operations. Minimal mode keeps just two: a shell and a file-editing tool. Everything else is disabled.
Second, it strips down the system prompt. Standard system prompts often run to thousands of tokens, specifying the agent’s role, tool-use rules, output requirements, safety boundaries, and other instructions. Minimal mode reduces this to something like a single sentence: “You are a helpful software engineer assistant.”
Intuitively, more tools and more detailed instructions should improve performance. In this case, the reported results went the other way. The important variable was not how many capabilities the framework exposed, but how closely the environment matched the one used during training.
2. The Underlying Mismatch: Training and Evaluation Environments
A key clue appeared in a commit to the agent framework’s repository shortly before the model’s public release. The change aligned the minimal agent configuration with the agent composition used during reinforcement learning post-training. The model’s public technical documentation also stated that its published coding-agent benchmark results used this minimal configuration.
Together, these details point to a straightforward explanation: the model’s post-training environment was the same stripped-down setup, with a shell, file editing, and a very short system prompt.
Reinforcement learning rewards were collected in that environment. The model’s learned strategies, recurring language patterns, and tool-call sequences were therefore optimized for it.
Moving the model into standard mode changed the conditions substantially: two tools became roughly 25, and a one-sentence system prompt became a long instruction document. This introduced a distribution shift relative to the post-training setup.
Several mechanisms help explain the resulting performance drop:
- A larger tool-selection space introduces more opportunities for error. During training, the model largely chose between running commands and editing files. With 25 tools available, it must consider additional paths that may not have been shaped by the same reward process.
- Long system prompts can disrupt learned behavior. A model optimized under short prompts may respond differently when thousands of tokens of additional instructions change the context in which it makes decisions.
- Language changes can accompany trajectory changes. The “Let us” and “We need” patterns were associated with behavior reinforced in the minimal environment. A shift in phrasing can therefore be a useful clue that the model is following a different behavioral trajectory, although wording alone does not establish the cause.
The central issue is not that the model suddenly becomes more or less intelligent, or that different weights must have been deployed. It is that the model performs differently depending on how familiar the surrounding agent environment is.
3. An Engineering Workaround: Two-Stage Anchoring
The community developed a workaround that also served as a practical test of this explanation: a two-stage anchoring plugin.
The approach has two steps:
- Anchor the first turn. Initially expose only a minimal set of terminal and file tools, and reduce the system prompt to a short instruction. The goal is to start the model in conditions close to its post-training environment.
- Restore the full tool set. Once the first tool call has completed and the initial trajectory is established, re-enable the standard tools so the agent can use the framework’s broader capabilities.
The underlying idea follows from autoregressive generation: the beginning of a trajectory strongly conditions what follows. If the initial wording, pacing, and tool-use decisions resemble familiar training trajectories, the model may continue along that pattern even after more tools become available.
Community reports indicated that this approach substantially narrowed the gap between standard and minimal modes, lending further support to the environment-alignment explanation.
The following pseudocode illustrates the approach using shell and file-editing tools:
def run_agent(task):# Stage 1: Anchor behavior with a minimal configurationfirst_turn = model.generate(system="You are a helpful software engineer assistant.",tools=[shell, file_edit],prompt=task,)execute(first_turn.tool_calls)# Stage 2: Restore the full tool set and continueresult = model.generate(system=standard_system_prompt,tools=all_25_tools,context=first_turn.trace,)return result
This is an illustrative control flow rather than a complete agent implementation. Its purpose is to show the transition from a minimal first turn to a full-featured environment.
4. Broader Lessons for Agent Evaluation and Integration
Although this case concerns a particular model and framework, it highlights issues that apply more broadly.
Benchmark Scores Need an Environment Fingerprint
A coding-agent benchmark score is difficult to compare meaningfully without the configuration that produced it.
Evaluators should disclose the tool definitions, system prompt, maximum number of turns, timeout policies, and other relevant environment settings. Otherwise, a score of 99 and a score of 91 may describe performance under substantially different conditions rather than a clean difference in model capability.
Post-Training Can Overfit to the Agent Scaffold
If reinforcement learning uses a single, narrowly defined tool configuration, the model may bind its strategy too closely to that scaffold.
Varying tool sets and system prompts during training can help address this form of scaffold overfitting. The objective is not merely strong performance in one optimized setup, but robustness when the surrounding environment changes.
Tool Integrators Need to Align with the Model
When integrating a third-party model, developers should first examine the provider’s published descriptions of its training and evaluation environments.
Where practical, the default integration should resemble those conditions. When that is not possible, transitional techniques such as two-stage anchoring may help bridge the mismatch.
This reverses a common assumption: integration is not only about making a model follow a framework’s conventions. The framework may also need to accommodate the conditions under which the model learned to operate effectively.
Language Style Can Be a Diagnostic Signal
Recurring phrases, tool-call ordering, and other statistical features of agent behavior can provide useful clues about whether the model is following familiar patterns.
These signals are worth including in agent observability. They should be treated as diagnostic indicators, not as proof that model weights have changed or that a particular configuration is inherently better.
Conclusion
The contrast between high performance in minimal mode and lower performance in standard mode illustrates a basic principle of agent systems: capability is a product of the interaction between model weights and the environment, not the weights alone.
For developers, that distinction matters when interpreting benchmark results, selecting tools, and designing integrations. A configuration that performs well because it closely matches post-training conditions should not automatically be mistaken for evidence of broadly generalizable capability.
Understanding the environment is therefore part of understanding the model.
