Minimal Mode for Agent Harnesses: How Tool Subtraction Improves LLM Performance

    This article examines why the engineering harness around a large language model can matter as much as the model itself. It explains the “Agent = Model + Harness” consensus, describes the standard capabilities of an agent harness, and analyzes the recently debated “minimal mode,” which keeps only a terminal and a basic file editor. It discusses how reducing tool choices can lower decision entropy, cut tool hallucination, free context space, and strengthen the code-execution feedback loop. It also distinguishes benchmark-oriented minimalism from production requirements such as dynamic knowledge access, enterprise integration, and multi-agent parallelism, and offers practical guidance for scenario-specific, dynamically adapted tool strategies.

    In the current wave of LLM application deployment, an interesting phenomenon has sparked active discussion in developer communities: the same large language model performs poorly when connected directly to ordinary code generation tools, and may even fail to close basic code logic loops correctly. Yet when switched to a professional agent development kit, its performance can match that of leading models in the industry. This sharp contrast reveals a core technical consensus: Agent = Model + Harness.

    As foundation model capabilities continue to improve, the factor that determines the upper limit of AI applications has shifted from model parameter count alone to the engineering environment built around the model. This article explores the decisive impact of development kits on agent performance and focuses on the recently controversial phenomenon of “minimal mode.”

    1. Harness: The Underestimated Dedicated Weapon of Agents

    In agent architecture, the Harness—also called an agent development kit or engineering framework—plays a critical role. It is responsible not only for interaction with the external world, but also for determining how the model perceives its environment, plans tasks, and executes operations.

    Independent industry tests show that the same set of model weights often struggles to complete complex engineering tasks when paired with crude interaction tools. Once connected to a fully featured professional kit, however, its task pass rate can improve significantly. Without a suitable engineering harness, even a powerful foundation model remains a blank slate and cannot convert latent capability into real productivity.

    A standard agent kit usually includes a rich set of tools, such as:

    • File system interaction: reading, writing, creating, and modifying local code and configuration files.
    • Terminal command execution: running scripts, installing dependencies, and performing compilation and build operations.
    • Network information retrieval: searching online for the latest API documentation and consulting community solutions.
    • Task planning and sub-agents: decomposing complex requirements into subtasks and dispatching them to specialized agents.

    Together, these capabilities form a complete loop that allows the model to “write code, run it, read errors, and fix code” like a human developer.

    2. The “Minimal Mode” Phenomenon: Why Does Subtraction Cause a Performance Jump?

    Recently, a seemingly counterintuitive engineering practice has circulated in the community: after switching an agent development kit to “minimal mode,” the model’s actual task performance shows a surprising improvement, sometimes exceeding normal expectations.

    What is “minimal mode”? In most development kits, standard mode enables all the functions above by default, often with more than 20 tools. Minimal mode is extremely simple. It usually keeps only two core tools: a terminal environment that can run continuously and a basic file editor. All capabilities such as web search, sub-agent scheduling, and complex skill libraries are forcibly disabled.

    This mode was initially designed specifically for running model benchmarks. To ensure that different models can be compared on pure logical reasoning and code generation in an absolutely fair and interference-free environment, developers stripped the environment down to the cleanest possible state. When this “exam mode” was accidentally used for real work, however, it produced remarkable results.

    Why can “subtraction” improve performance? The core reason is that it reduces the model’s “decision entropy”:

    1. Reducing tool hallucination: When too many tools are available, the model must choose the most appropriate one from a large set in every interaction round, which easily leads to incorrect tool-call parameters or inappropriate selection. Minimal mode forces the model to focus on the code itself and reduces unnecessary branching.
    2. Shortening the context window: Complex tool definitions and skill descriptions consume a large number of tokens. A streamlined tool set frees up context space, allowing the model to better understand the complete logic of a long codebase.
    3. Strengthening the core feedback loop: With only the terminal and editor retained, the model must rely strictly on “code execution results” as its sole source of feedback. This pure “generate–execute–correct” loop makes the model more focused and improves execution.

    3. Benchmark Testing vs. Production Environments: Is Exam Mode Really Suitable for Real Work?

    Although minimal mode performs impressively in some scenarios, we must clearly recognize the gap between benchmark testing and real production environments.

    In tasks with strong closed-loop characteristics—such as solving pure algorithm problems, writing standalone scripts, or refactoring a single module—minimal mode can indeed shine. Such tasks depend less on external knowledge and test the model’s internal knowledge base and logical reasoning more heavily.

    In real enterprise software development, however, scenarios are much more complex:

    • Dynamic knowledge dependencies: When using the latest framework versions or internal private SDKs, the model must be able to search documentation online.
    • Complex engineering collaboration: Integrating with object storage to read data, triggering tasks through message queues, and deploying services on container platforms all require calling specific cloud service APIs or enterprise components.
    • Multi-task parallelism: Large projects require sub-agents to handle frontend, backend, and test cases separately.

    In these scenarios, blindly applying “minimal mode” will cause the model to fall into endless loops because it cannot obtain external information or call necessary infrastructure. Therefore, using exam mode for all real work is not a silver bullet.

    4. Engineering Practice Recommendations: Dynamically Adapted Tool Strategies

    For developers and enterprise users, the biggest lesson from this phenomenon is: tools should not be numerous; they should be precise and well matched. When building enterprise-level agent applications, teams should abandon static “big and comprehensive” tool piles and adopt dynamic, on-demand tool strategies.

    1. Scenario-based trimming: On general-purpose LLM development platforms such as Baidu AI Cloud or enterprise-owned platforms, different tool sets should be configurable for different business flows. For example, when performing code review, attach static analysis tools and log services; when performing data cleaning, attach database query and object storage interfaces; and when performing pure logic or algorithm generation, decisively fall back to minimal mode and block irrelevant interference.
    2. Build progressive context: Do not stuff all tool definitions into the initial prompt. Instead, dynamically inject the tool capabilities needed for the next stage based on the staged results of task planning, reducing the pressure of single-step decisions.
    3. Improve environment feedback quality: Minimal mode is effective largely because terminal error messages are direct and accurate. In production environments, optimize the return formats of various tools, such as monitoring alerts and log retrieval, to ensure that the information fed back to the model is structured and low-noise.

    Conclusion

    The heated discussion around minimal mode in LLM development kits is essentially a reflection on “over-engineering in agent architecture.” The striking variability in model performance reminds us that what determines AI application results is not only compute and parameters, but also refined engineering architecture design. In future practice, knowing when to add and when to subtract will be a required skill for every AI engineer.