AI Agent Architecture: Understanding the Model + Harness Approach

    What makes an AI system an agent rather than just a model? This article examines the Model + Harness architecture, its relationship to AgentOS, and the engineering components that support reliable execution. It also explores why stronger models do not eliminate the need for external tools, memory, context management, and operational controls.

    1. What Is an AI Agent?

    The growing popularity of open-source agent projects has renewed debate around several fundamental questions: What is an agent? How should it be built? And how will agent architectures evolve?

    One common source of confusion is the boundary between a model and an agent. Agents are typically described as systems capable of planning, making decisions, and executing tasks autonomously. Yet as foundation models become more capable, the idea that “the foundation model itself is the agent” has gained traction. Training models on increasing amounts of tool-use trajectory data further blurs that boundary.

    Consider a simple example: you ask a model for today’s date and weather. It independently reads local time information and calls an external data source. Should this system be called an LLM or an agent?

    This may sound like a terminology debate, but the answer influences how we design agent systems and where we invest engineering resources.

    2. From AgentOS to Harness Engineering

    2.1 Two Architectural Perspectives

    Discussions of agent architecture have increasingly centered on two formulations.

    The first perspective: Agent = Base Model + AgentOS

    Early discussions proposed that agents required an “AgentOS.” Although the name evokes a traditional operating system, the concept refers to a different kind of support layer.

    AgentOS encompasses components that help unlock model capabilities and extend their application boundaries, including context management, task orchestration, tool registration and invocation, persistent memory, and access control.

    The second perspective: Agent = Model + Harness

    The discussion subsequently moved toward the concept of harness engineering. A harness is the engineered support layer built around a model to make its capabilities available reliably, controllably, and efficiently.

    Whether described as AgentOS or a harness, the central message is the same: the foundation model matters, but how effectively it is used may matter even more.

    2.2 Typical Components of a Harness

    In engineering practice, a harness commonly includes:

    1. Context engineering: System prompt design, dynamic context assembly, context-window management, and conversation-history compression and summarization.
    2. Tool infrastructure: Tool definition, registration, routing, and invocation, along with formatting tool results and feeding them back into the context.
    3. Memory and knowledge: Short-term memory, long-term memory, and retrieval-augmented knowledge injection.
    4. Execution loops: Task decomposition, multistep planning, result validation, failure retries, and termination checks.
    5. Safety and governance: Permission-controlled sandboxes, approval for sensitive operations, output filtering, and tool-call audit logs.

    A simplified execution loop looks like this:

    1. def agent_loop(model, harness, task):
    2. context = harness.build_context(task)
    3. while not harness.should_stop():
    4. action = model.decide(context)
    5. observation = harness.execute(action) # Tool calls and environment feedback
    6. context = harness.update(context, observation)
    7. return harness.summarize(context)

    In this simplified architecture, the model makes decisions, while the harness executes those decisions in the environment and continuously maintains state. Both are necessary.

    3. Will Models Absorb the Harness?

    One of the central questions is whether the harness will eventually be absorbed into the model.

    Some argue that harness engineering is merely a new label for capabilities that models will ultimately internalize. Under this view, external infrastructure could become unnecessary as models improve, much as longer context windows are sometimes expected to replace knowledge retrieval and vector databases.

    A closer examination, however, suggests that this conclusion does not hold.

    3.1 Components Evolve Rather Than Disappear

    Knowledge retrieval has not disappeared as models have become more capable. Instead, it has continued to evolve. Combined with prompt engineering, tool use, and richer ways of organizing knowledge, retrieval has become part of broader capability and skill systems.

    More capable models can benefit even more from high-quality external information and resources. Improving the model does not automatically remove the value of the surrounding infrastructure.

    3.2 Why the Harness Remains Necessary

    Several harness components have structural reasons to persist:

    • Up-to-date information: Model training data has a cutoff. Tasks that require current information still depend on external tools or data sources.
    • Private data and private actions: Internal enterprise knowledge, databases, and operations in business systems cannot—and should not—be fully embedded in model weights.
    • Verifiability and control: Executing critical actions through the harness enables auditing, rollback, and permission enforcement. Internalizing capabilities in the model alone is insufficient for these production requirements.
    • Cost and latency trade-offs: Not every subtask requires the most powerful model. The harness can route steps to models of different capabilities according to task complexity.

    3.3 The Real Value: Connecting High-Value Components

    The deeper value of the harness is its ability to connect prompts, tools, knowledge, memory, and execution environments into a coherent system.

    This makes harness engineering one of the important disciplines of the agent era. Model capabilities and harness engineering evolve together: stronger models give the harness more leverage, while a better harness enables more of the model’s capabilities to be realized.

    4. Returning to the Definition of an Agent

    Taken together, these arguments lead to the following architectural definition:

    Agent = Base Model—whether an LLM, a multimodal model, or an embodied model—plus harness-level optimization.

    Under this definition, even a small prompt optimization or an additional tool call moves a system beyond the idea of a “foundation model alone” and into the Model + Harness architecture.

    Conversely, handing a bare model to users and expecting it to solve complex tasks does not provide reliable execution or adequate control.

    The implication for developers is clear: rather than focusing exclusively on whether the model is powerful enough, invest in systematic harness engineering. Refine context management, tool infrastructure, memory mechanisms, and execution controls.

    The foundation model sets the capability ceiling. The harness determines how much of that potential the system can actually deliver.