Why Minimal Harnesses Boost LLM Agent Performance

    This article explains why switching an AI agent harness—not the underlying model weights—can dramatically change benchmark scores on real-world software maintenance tasks. It breaks down the four input layers of an agent task, describes how post-training over-binds models to a specific scaffold, and outlines a reproducible four-group experiment to isolate whether prompts or tool space drive the gains. It closes with practical engineering advice on configuration management, structured first-turn context, task-specific tool sets, regression evaluation, and observability, along with the limits and risks of minimal-mode setups.

    1. The Observation: Same Weights, Two Reasoning Modes

    A repeatedly validated observation has been circulating in technical communities: on the same set of real-world software maintenance tasks, swapping only the agent harness—without changing the underlying model weights—can push evaluation scores from the low nineties to near-perfect. In contrast, changing the OS distribution, the desktop environment, or the virtualization layer barely moves the score. Some people report scores of 98 or 99 on different desktop systems, while others stay stuck after switching to another distribution.

    A more distinctive signal shows up in language style. In the fully featured “standard mode,” the model frequently uses first-person singular self-narration (“Let me…”). In a “minimal mode” that retains only a handful of capabilities, these expressions nearly disappear and are replaced by a collaborative first-person plural tone (“We need to…”). During a gradual rollout, this was misread as the provider secretly swapping the model, but reproducible experiments point to a more reasonable explanation: the same weights exhibit two reasoning modes under different scaffold constraints.

    The conclusion up front: what matters is not the environment, but the structure of the first-turn context.

    2. Separating the Variables: What Actually Affects Performance

    To judge whether the environment is really “magic,” start by layering the variables. The input to an agent task can be split into four layers:

    1. Model weights and decoding parameters (temperature, top-p, max output length, etc.);
    2. System prompt and role definition;
    3. Tool space (number of available tools, naming, parameter schemas, return structures);
    4. Context assembly order and first-turn information density (the arrangement of history messages, retrieved snippets, and repository summaries).

    “Minimal mode” compresses layers 2, 3, and 4 at the same time: the system prompt shrinks to a single sentence, only two tools remain—command execution and file editing—and all other capabilities are turned off, making the first-turn context extremely clean. The direct source of the score jump is the combined effect of these three layers, not the OS kernel.

    A simplified illustration (pseudocode, showing only the assembly idea):

    1. # Standard mode: many tools, long instructions, noisy first turn
    2. messages = [
    3. system(long_role_prompt + tool_catalog(20+ tools) + usage_policy),
    4. user(task + repo_index + retrieved_snippets + history_summary)
    5. ]
    6. # Minimal mode: reduced capabilities, structured first turn
    7. messages = [
    8. system("You are a helpful software engineer assistant."),
    9. user(structured_task(goal, constraints, files, acceptance))
    10. ]

    3. Mechanism: Over-Binding Between Post-Training and the Scaffold

    Why does narrowing the tool space make the model stronger? The widely accepted explanation in the industry is a distribution-matching problem during post-training. If a model is trained with reinforcement learning or instruction tuning while interacting with one specific agent setup over a long period—a fixed tool set, fixed prompt templates, a fixed turn protocol—the policy becomes strongly coupled to that scaffold. What the model learns is not only “how to solve the problem,” but also “how to solve it within this particular set of props and workflow.”

    Once you move it to an environment with more tools, longer instructions, and a noisier first turn, the model has to do three extra things beyond solving the task: decide which tool to use, parse more complex tool descriptions, and filter key constraints out of the noise. This overhead eats into the reasoning budget and shows up as a score drop. Conversely, minimal mode reduces the props to two and compresses the instructions to one sentence, so the model lands almost back in the distribution it saw during training—and performs at “full strength.”

    This explains a common misjudgment: mistaking “recognizing the environment” for “becoming smarter.” The test is straightforward—fix the weights and decoding parameters and change only the scaffold; if the score changes significantly, it is a distribution-matching issue. Only when the score changes after swapping the weights is it a capability issue.

    4. A Reproducible Controlled Experiment Design

    To turn this kind of phenomenon from “hearsay” into a “verifiable conclusion,” run four control groups:

    • Group A: standard mode, full tool set and long prompt;
    • Group B: minimal mode, only command execution and file editing;
    • Group C: minimal tool space + long prompt (isolating the prompt variable);
    • Group D: standard tool space + one-sentence prompt (isolating the tool variable).

    Fixed items include: the same batch of real-world engineering tasks, the same random seed, the same decoding parameters, and the same evaluation script and acceptance criteria. Recommended metrics to record: task pass rate, first-turn hit rate (the proportion solved in one shot), average number of turns, number of tool calls, invalid call ratio, and average output length.

    Expected observations: Group B significantly outperforms Group A; Groups C and D are used to determine whether the main driver is the prompt or the tool space; repeated experiments across desktop systems and across virtualization layers should show no significant difference, ruling out “distribution determinism.”

    5. Engineering Implementation Advice

    For enterprises and teams, the conclusion translates into five practices:

    1. Treat the scaffold as configuration management. Put the system prompt, tool list, and context assembly order under version control, route changes through review, and avoid “a casual tweak that makes scores drift.”
    2. Subtract and structure the first-turn context. Use a four-part format—goal, constraints, files involved, acceptance criteria—and cut irrelevant history and redundant retrieved snippets.
    3. Tailor the tool space to the task. Prepare a “minimum viable tool set” for different task types to lower selection cost, and keep tool naming and parameter schemas consistent.
    4. Build regression evaluation. Every time you adjust the prompt or tool set, run a fixed task set and watch changes in pass rate and turn count—replace gut feeling with data.
    5. Use observability as a safety net. Log an assembly snapshot and the tool-call chain for every session with a logging service, and track pass-rate fluctuations with monitoring and alerts, so you can quickly tell whether the problem is on the model side or the scaffold side.

    For cloud deployment, you can use a container platform to host the runtime, object storage to keep evaluation datasets and artifacts, and a message queue to decouple task scheduling, ensuring experiments are repeatable and environments are rebuildable.

    6. Boundaries and Risks

    Three boundaries need emphasis. First, there is a ceiling on score improvement; minimal mode is not a cure-all, and complex multi-tool collaboration tasks may degrade because capabilities are trimmed. Second, if the evaluation set is too close to the training distribution, it will overestimate the real gains, so keep an independent set of real-world engineering tasks. Third, style features (such as shifts between first-person singular and plural) can only serve as clues, not as attribution evidence—controlled experiments remain the final arbiter.

    7. Conclusion

    The phenomenon of “changing the system doesn’t change the score, changing the scaffold does” is essentially a distribution-matching problem between the model and its post-training environment. The takeaway for developers: instead of chasing environment superstition, govern first-turn context structure, tool space, and prompts as first-class engineering objects. Separate the variables clearly and run the experiments correctly, and capability fluctuations stop being mysterious.