Why Agent Harnesses Are Worth Watching

    As coding agents move from demos into large repositories and long-running tasks, the deciding factor is shifting from the model itself to the runtime system around it. This article explains what an agent harness is, how it differs from a model, a tool-calling protocol, and a graph-based orchestration framework, and why a plugin-based "everything is a plugin" design is gaining attention. It outlines eight engineering problems a usable harness must solve, four practices that determine long-task stability, and four criteria for evaluating such projects. Readers will gain a practical framework for understanding agent runtimes and planning their own implementation.

    1. The Focus Is Shifting from Models to Runtime Systems

    Over the past two years, most discussion around coding agents has centered on the model: whether code understanding is more accurate, whether the context window is larger, whether reasoning chains go deeper, and whether inference costs are lower. These metrics matter. But once you place a model inside a real, large-scale repository containing hundreds of thousands of files and let it work continuously for tens of minutes or even hours, the final delivery quality often depends less on the model itself than on the runtime system around it.

    The reason is straightforward. A model only decides “what to do next,” but turning a single decision into a reliable action involves a great deal of engineering: the system must know what is in the current working directory, read files accurately, modify code, run commands, observe test output, and retain key facts as the context keeps growing. Dangerous commands must not be executed directly, a failed tool call must not drag down the entire session, and an interrupted task must be resumable. The model produces intent; the system is responsible for turning that intent into a result safely, reliably, and traceably.

    This execution environment around the model is commonly known in the industry as an agent harness. A recently released open-source harness project has drawn attention. Its official positioning is “everything is a plugin,” and it is driven at the bottom layer by a dependency injection and plugin loading mechanism. It is still in developer preview and explicitly warns that breaking changes will follow. What deserves attention is not “yet another coding agent tool,” but the fact that it breaks model adaptation, the task loop, tool registration, session logs, sandboxing, approval, context compression, sub-agents, and even the graphical interface into plugins.

    2. Three Concepts That Are Easy to Confuse

    To judge whether a harness is worth investing in, the first step is to draw clear boundaries.

    A model is not an agent. A model receives messages and generates the next piece of text or tool call. It does not know where the working directory is, nor does it inherently have command-line, editor, version control, browser, or database capabilities. A model outputting an intent to “read a file” does not mean the file has been reliably read.

    A protocol is not an agent either. A tool-calling protocol standardizes how tools, resources, and prompts are exposed and discovered, but it does not automatically provide a complete task loop, session recovery, context compression, permission decisions, or execution state management. A protocol is an interface contract, not an execution environment.

    A framework is not the same as a harness. Development frameworks centered on graph orchestration are oriented toward helping developers build business flows and describe how nodes connect. A harness is a complete environment that can actually run an agent, taking real responsibility for model requests, tool dispatch, process execution, log persistence, user approval, and the interaction interface.

    3. Eight Problems a Usable Harness Must Solve

    Turning these boundaries into an engineering checklist, a harness fit for real development needs to cover at least eight areas:

    1. Request assembly: combining the system prompt, project notes, message history, and tool descriptions into a compliant model request.
    2. Tool dispatch: parsing the model’s call intent, validating parameters, routing, and feeding results back.
    3. Process and command execution: launching commands in a controlled environment and handling timeouts, output truncation, and exit codes.
    4. State persistence: writing sessions, messages, and tool results to disk so tasks can be replayed and audited.
    5. Permissions and approval: intercepting high-risk actions and returning the decision to a human.
    6. Context governance: compressing, summarizing, or archiving as the window approaches its limit while preserving key facts.
    7. Failure recovery: ensuring a single tool failure does not end the session, and allowing a task to resume from a checkpoint after interruption.
    8. Interaction and observability: providing an interface and logs so people can see why the model did what it did.

    These eight problems are tightly coupled. A missing piece in any one of them will be amplified into a systemic failure during long tasks, which is why a harness cannot be faked with “one prompt plus a few functions.”

    4. What “Everything Is a Plugin” Actually Solves

    The traditional approach writes these eight capabilities into a closed program where modules call each other directly through functions. The problems surface quickly in long tasks: switching to a different context compression strategy requires changing core code; adding approval for a certain type of command requires invading the executor; connecting a new model requires touching the request assembly layer.

    Plugin architecture inverts these dependencies. The core keeps only a minimal loader and an event bus, capabilities register themselves at extension points as plugins, are assembled into a tree based on configuration at startup, and can be replaced or even unloaded at runtime. A schematic:

    1. root
    2. ├── model-adapter # Model adaptation: message formats, tool-calling protocol differences
    3. ├── agent-loop # Task loop: think - call - observe
    4. ├── tool-registry # Tool registration: files, commands, retrieval
    5. ├── sandbox # Sandbox: filesystem and network isolation
    6. ├── approval # Approval: human confirmation for high-risk actions
    7. ├── context-compress # Context compression and summarization
    8. ├── sub-agent # Sub-agent spawning and result aggregation
    9. └── web-ui # Interaction interface and log views

    This structure brings three direct benefits. First, replaceability: different models, different sandbox strengths, and different compression strategies can be switched at the configuration layer without touching business code. Second, trimability: batch scenarios that do not need an interface can simply skip loading the UI plugin, reducing the attack surface and resource usage. Third, evolvability: breaking changes are inevitable during the preview stage, and plugin boundaries keep upgrades confined to a single extension point.

    5. Four Key Practices for Long-Task Stability

    Plugin architecture is only the skeleton. What really determines success or failure are a few concrete mechanisms.

    Sandboxing and least privilege. File writes should be restricted to the project root, network access should be allowed on demand through a whitelist, and command execution should use separate low-privilege processes, so that a single model misjudgment does not act directly on the host environment.

    Tiered approval. Classify actions by reversibility and impact: reads and retrieval are allowed automatically; local builds and tests are allowed but logged; deletion, force push, and production changes require human confirmation. The approval records themselves are audit evidence.

    Context compression. In long tasks, message history expands rapidly. A workable approach is segmented summarization plus a fact list: extract confirmed file paths, interface signatures, and failure reasons as structured facts and retain them long term, while folding lengthy logs into conclusions.

    Failure isolation and recovery. Tool exceptions should be converted into observable results and returned to the model rather than thrown to terminate the session. Write a checkpoint after each successful action so that resuming after an interruption does not start from scratch.

    6. What to Look for When Choosing a Harness

    For projects of this kind, evaluate across four dimensions rather than only looking at a feature list: whether the extension points are fine-grained enough to replace compression and approval strategies without changing the core; whether state is replayable and logs can reconstruct a complete decision chain; whether security boundaries are tightened by default and high-risk actions are blocked by default; and whether the compatibility strategy is transparent, with the preview period and breaking changes clearly marked.

    For teams that want to build their own capabilities, they can start on general-purpose infrastructure such as the container platform, log service, and monitoring and alerting offered by Baidu AI Cloud, break the work down along the eight problem areas above, and then gradually introduce plugin-based refactoring, avoiding the risk of a one-time rewrite.

    7. Conclusion

    The reason a harness is worth watching is not that it adds one more new tool, but that it moves an agent from “a model that can talk” to “an executable system that can deliver.” As model capabilities converge and differences in context and price narrow, the success of long tasks will depend on whether the sandbox is tight, whether approval is tiered, whether context is effectively governed, and whether failures are recoverable. Making these capabilities into a composable, replaceable, and unloadable plugin tree is precisely the engineering idea most worth borrowing from projects like this.