The Formula for Agent Development: Model Plus Harness

    This article breaks down the widely validated formula Model + Harness = Agent, explaining how the model and the harness divide responsibilities, why context management is the hidden bottleneck, and how plugin-based architecture, tool execution loops, and evaluation cycles turn agents from demos into engineering systems. It also outlines a practical four-step path for teams building their own harness.

    The Formula for Agent Development: Model Plus Harness

    1. An Engineering Intuition That Keeps Being Validated

    In agent engineering practice, the industry has gradually converged on a simple formula: Model + Harness = Agent. The meaning is not mysterious. The model is the foundation of the agent, responsible for understanding, reasoning, and generation. The harness refers to all engineering work other than the model itself, and it is the key middle layer that connects the model to real workflows. Only when the two are combined do you get an agent that can enter a real environment and handle actual tasks.

    This formula matters because it separates two things that are often conflated: model capability and product capability. Model capability improves along a curve driven by training and inference. Product capability improves through engineering, determined by context organization, tool integration, state management, and evaluation loops. Many teams look impressive during a demo and then degrade quickly once they enter real business scenarios. The problem is usually not the model but the missing harness.

    In May 2026, a cloud vendor opened a product manager role focused on the harness, publicly stating this formula with the goal of turning model capability into agent products. A dedicated team was then formed, targeting code agents. A limited internal test began in late July, with the first users screened and required to sign non-disclosure agreements. In mid-August, a developer preview of the first agent product was released under a permissive open source license, following the core principle that everything is a plugin. This timeline itself shows that the harness is being built as an independent product, not as an appendage to the model.

    2. Responsibility Boundaries: What the Model Does and What the Harness Does

    A clear division of labor is the first principle of harness design.

    The model is responsible for three things: understanding input intent, performing multi-step reasoning, and generating structured or natural language output. It is good at semantic generalization, but it is not good at remembering information beyond the context window, and it has no real side effects.

    The harness is responsible for everything else. Typical capabilities include:

    • Context management: retrieval, filtering, compression, ranking, and eviction, ensuring the most valuable information fits within a limited window.
    • Tool invocation: abstracting external capabilities into callable interfaces and handling parameter validation, permissions, timeouts, and retries.
    • Task planning: breaking vague goals into executable subtasks and maintaining a task state machine.
    • File reading and writing and code modification: providing real read and write access and diff merging inside a controlled sandbox.
    • Terminal execution: running commands with least privilege and collecting standard output, error codes, and exit status.
    • Feedback collection and evaluation loops: feeding execution results back as the next input and measuring results quantitatively.

    A practical rule of thumb: anything that needs to “remember,” “reach something external,” “produce side effects,” or “be measured” should be pushed down to the harness. This keeps the model pure and replaceable, while the harness becomes an engineering asset that can evolve independently and be reused.

    3. Plugin Architecture: Everything Is a Plugin

    “Everything is a plugin” is not a slogan but an architectural constraint that reduces coupling and improves replaceability. Its core is to split the harness into a set of stable extension points where capabilities are mounted as plugins.

    A sketch of a plugin contract looks like this (pseudocode, structure only):

    1. class Plugin:
    2. name: str
    3. version: str
    4. scopes: list[str] # Permission scopes required
    5. def schema(self) -> dict: # Capability description for the model
    6. ...
    7. def run(self, ctx, args): # Real execution entry point
    8. ...

    Around this contract, engineering needs to fill in four things:

    1. Capability description and discovery: each plugin exposes a structured capability description, and the harness aggregates and trims them to avoid pushing every capability into the context at once.
    2. Permissions and sandboxing: grant file, network, and terminal scopes under the least privilege principle, with explicit confirmation for sensitive operations.
    3. Lifecycle and versioning: plugins can be upgraded, canaried, and rolled back independently, and version information goes into execution logs for traceability.
    4. Observability: record an input summary, duration, result, and failure reason for each call, forming a replayable execution trace.

    The direct benefit of a plugin architecture is parallel development: one person builds a retrieval plugin, another a terminal plugin, another an evaluation plugin, and they depend only on the contract rather than on each other’s implementations.

    4. Context Management: The Invisible Bottleneck That Decides Success

    Context in real tasks grows fast: multi-turn conversations, retrieved snippets, tool returns, and log output quickly crowd the window. The harness needs a clear strategy:

    • Layered memory: short-term context holds the current task, while long-term memory lives in external storage and is retrieved and backfilled on demand.
    • Structured compression: summarize verbose output into structured key points, keeping actionable information and dropping decorative content.
    • Relevance ranking: rank by task stage and semantic relevance, keeping high-value fragments first.
    • Failure context retention: error messages and stack traces must be preserved in full, since they are the key signal for self-correction.

    It is worth stressing that more context is not better. Noise dilutes attention and causes the model to miss key constraints. Treating “what to put in” as an explicit engineering decision rather than concatenating everything by default is the dividing line in harness maturity.

    5. Tool Invocation and the Execution Loop

    Tool invocation is the hand that connects the model to the real world. A reliable implementation covers the full chain: capability discovery, parameter validation, permission checks, execution, result normalization, failure retries, and fallback.

    1. Model emits an invocation intent
    2. -> Harness validates parameters and permissions
    3. -> Execution inside the sandbox (file/terminal/API)
    4. -> Normalize the result (stdout/stderr/exit code/structured data)
    5. -> Feed back into context, start the next reasoning round

    The most error-prone part is failure handling. The engineering recommendation is to distinguish retryable errors (timeouts, rate limiting) from non-retryable ones (invalid parameters, insufficient permissions). Use exponential backoff for the former, and feed the clear reason straight back to the model for the latter so it can revise its approach instead of blindly retrying and burning budget.

    6. Evaluation Loops: Making Results Measurable

    An agent without evaluation cannot iterate. The harness should have evaluation built in, covering at least three categories of metrics:

    • Task success rate: whether the end-to-end goal is achieved.
    • Process quality: number of steps, number of tool calls, ratio of ineffective calls, duration, and cost.
    • Safety: how well unauthorized access, dangerous commands, and leaks of sensitive information are blocked.

    The recommended practice is to maintain a repeatable task set, run a regression pass whenever the harness changes or the model is switched, and retain execution traces for attribution analysis. This turns “is the new model better” from a subjective impression into a data-backed decision.

    7. Evolution Path and Implementation Advice

    The timeline above shows a clear evolution path: first set the direction through hiring and team building, then converge on real scenario problems through a limited internal test, and finally open up extension points via open source and build a capability ecosystem with the community. For teams preparing to build their own harness, four steps are recommended:

    1. Define the contract: freeze the plugin interfaces and execution trace format before discussing features.
    2. Close the loop: get the minimal “plan - invoke - feedback - evaluate” loop working first, rather than piling up capability count.
    3. Enforce isolation: file, terminal, and network side effects must be sandboxed and minimally authorized.
    4. Stay replaceable: both the model and the plugins should be hot-swappable, avoiding tight coupling to a single implementation.

    On the infrastructure side, a harness typically relies on several general-purpose capabilities: object storage for artifacts and traces, message queues to decouple long-running tasks, container platforms for sandbox isolation, and logging services plus monitoring and alerting for observability. These are all standard industry categories and can be combined flexibly according to your own scale.

    8. Conclusion

    The value of Model + Harness = Agent is that it moves agents from “demo” to “engineering.” The model sets the ceiling; the harness determines whether you can reliably reach it. When context management, tool invocation, task planning, and evaluation loops are all taken seriously and evolve continuously in a plugin-based way, an agent is truly qualified to enter a real workflow.