Why Minimalist Inference Harnesses Improve LLM Performance

    This article explains why the same model weights can score significantly higher on real-world software maintenance tasks under a minimal harness than under a feature-rich standard one. It traces the gap to first-turn context structure rather than the operating system, identifies three key variables—tool-space size, system prompt length and conflicting instructions, and coupling between post-training and the harness—and shows how to verify the effect with controlled experiments and multi-dimensional scoring. It closes with practical engineering recommendations for building reproducible agent evaluation pipelines.

    1. The Observation: A Performance Jump That Was Misattributed

    A widely shared community observation: the same model weights, running under a certain “minimal” mode, jump from roughly the low 90s to the 96–99 range on real-world software maintenance tasks, while under a feature-rich standard mode the score stays persistently low. Discussion quickly centered on the operating system and distribution, but that attribution does not hold up: the same gap reproduces across different desktop and server systems, virtualization layers, and container environments, and results even differ between terminals on the same machine.

    The conclusion is straightforward: the variable is not at the system layer but in the structure of the first-turn context. This is a wall that agent engineering keeps running into.

    2. Three Variables That Actually Matter

    2.1 A Large Tool Space Raises Selection Entropy

    Standard mode typically mounts a dozen or more tools: search, search-and-replace, terminal, subagents, task lists, external search, and so on. The more tools there are, the more the model must first decide which tool to use at every step, and the probability of accumulated errors rises accordingly. Minimal mode keeps only two tools—terminal and file editing—compressing “how to do it” into “write a command, edit a file,” which significantly shortens the decision chain.

    Illustrative comparison of tool declarations:

    1. # Standard mode (simplified illustration)
    2. tools = [search, grep, edit, bash, task, subagent, web, todo, ...]
    3. # Minimal mode (simplified illustration)
    4. tools = [bash, edit]

    2.2 System Prompt Length and Conflicting Instructions

    Long prompts often contain a large number of negative constraints about what not to do, along with style requirements and format templates. These constraints can pull against each other, forcing the model to trade off between conflicts, and the output becomes more conservative and more verbose. A very short prompt compresses the goal into a single sentence, producing a more concentrated behavior distribution.

    2.3 Coupling Between Post-Training and the Harness

    The most important point: if the model co-evolved with one specific harness during post-training (especially the reinforcement learning stage), the policy it learned is naturally bound to that context layout, those tool signatures, and that prompt style. Move it to a different “exam room” and its capability falls back. The shift in verbal habits the community observed—from frequent first-person singular progression to first-person plural negotiation—is a surface signal of exactly this distribution difference, not evidence that the model was swapped.

    3. Verify Instead of Guess

    Use controlled experiments in place of intuition, and keep only one variable:

    1. Fixed: model version, temperature, task set, scoring script, hardware
    2. Variable: switch only the harness mode (standard / minimal)
    3. Repetition: at least 3 runs per mode; report median and variance

    Break scoring into dimensions so a single aggregate score does not hide problems:

    • Task completion rate (whether tests pass)
    • First-runnable-patch rate
    • Number of ineffective edits and rollbacks
    • Context consumption and end-to-end latency
    • Number of tool calls and failure rate

    Only if the gap remains stable across repeated runs with low variance can it be treated as a harness effect rather than sampling noise.

    4. Engineering Recommendations

    1. Narrow the tool set: trim tools per scenario and follow the “minimum viable toolset” principle.
    2. Compress the first-turn context: split long specifications into layered instructions loaded on demand rather than injected all at once.
    3. Align training and inference: keep the production harness isomorphic to the harness used for evaluation and post-training to reduce distribution drift.
    4. Build regression evaluation: put the task set and scoring script into continuous integration, and run them on every prompt or tool change.
    5. Observability first: use logging services and monitoring alerts to record a context snapshot and the tool-call chain for each turn, making post-hoc attribution easier.

    5. Conclusion

    “Minimal mode” is not magic, nor a privilege of any particular system. It exposes a fact often overlooked in agent evaluation: a score depends on both the model and the exam room. For stable performance, the controllable gains on the engineering side far outweigh switching environments; governing the context and the tool space is the reusable methodology. Organizations that want to bring similar capabilities to the cloud can build a reproducible evaluation pipeline on general cloud capabilities such as container platforms, object storage, and log monitoring.