A model can tell you how to fix a bug. An agent is expected to open the repository, read the code, make the change, run the tests, notice that the first attempt failed, try again—and, ideally, avoid deleting production on the way.
Carrying out those steps reliably requires tools, execution controls and feedback around the model. A prompt alone cannot provide them.
Much of my work over the last few years has concerned that surrounding system. When I built observability for a customer-facing AI avatar on a multi-tenant Kubernetes platform, I needed to check whether the right context reached the model, whether tools behaved as expected, whether the RAG pipeline returned the intended results and whether we could trace failures. The term AI agent harness describes this surrounding layer.
DeepSeek uses this shorthand in its recently released harness:
Agent=Model+Harness
The vocabulary is not fully standardised. You will see agent runtime, orchestrator, agent framework and harness used to mean overlapping things. But the separation of responsibilities is worth holding onto:
| Layer | Main responsibility | Plain-language view |
|---|---|---|
| Model | Interprets information, reasons, proposes actions | The intelligence engine |
| Harness | Supplies context, exposes capabilities, executes actions, enforces controls | The execution and control system |
| Agent | Combines intelligence with the ability to operate | The complete working system |
This distinction matters because many “AI failures” are not really model failures. The model may understand the task perfectly well while the system around it retrieves the wrong document, exposes a confusing set of tools, drops an earlier result, executes an action incorrectly, or lets the agent declare victory without checking its own work.
What the harness does
Most useful agents run some variation of a reason–act–observe loop.
The harness first assembles the relevant instructions, state and context. The model then proposes a next action. Before anything happens, the surrounding system can apply policies, permissions and workflow rules. A tool or sandbox performs the action, the result is observed and verified, state is updated, and the new evidence goes back to the model. The cycle repeats until the task is complete, blocked, or needs a human.
The model proposes what to do. The harness decides what is available, what is permitted, how the action executes, and what evidence comes back.
That is why a production harness is much more than tool calling. In practice it carries system instructions that define objectives and boundaries; context management that decides what the model sees and when; memory that preserves useful information across turns and sessions; tools that connect the model to APIs, databases, search and applications; sandboxing to isolate risky execution; state and durable execution to survive interruptions; verification to catch mistakes; guardrails and approvals for sensitive actions; identity and authorisation to establish who the agent represents; and observability to record what happened.

Durable state, database permissions, container recovery and reliable audit trails require system mechanisms. They cannot be supplied by instructions alone. Building those mechanisms draws heavily on platform engineering.
From prompt engineering to complete systems
Prompt engineering defines the instructions the model follows.
The engineering focus has steadily expanded outward—from shaping instructions, to selecting context, to designing the whole environment a model operates in:
| Discipline | Central question | Main design work |
|---|---|---|
| Prompt engineering | How should the task be described? | Instructions, examples, constraints, formats |
| Context engineering | What should the model know right now? | Retrieval, memory, filtering, compression, assembly |
| Harness engineering | How should the whole agent behave? | Tools, execution, state, workflows, verification, permissions, observability |
These are complementary, not competing. A good prompt cannot repair a broken API integration. Excellent retrieval cannot make an irreversible action safe. A million-token context window will not tell an agent whether it should be allowed to send ten thousand emails.
Harness engineering makes a sequence of decisions and actions dependable. This includes checking intermediate results and controlling execution, so the system can support customer work beyond a demonstration.
Sometimes the model is not the problem
Anthropic reported an example in April 2026.
After users reported that Claude Code had gotten worse, Anthropic investigated and traced the problem to three separate product-level changes affecting Claude Code, the Claude Agent SDK and Claude Cowork. The underlying API and inference layer, they said, were unaffected. One change had lowered the default reasoning effort. A context-management bug repeatedly stripped older reasoning out of resumed sessions. And a system-prompt change meant to reduce verbosity quietly hurt coding quality.
Users experienced all of this as the agent getting less intelligent. The model had not changed in the way people assumed.
Users experience the whole system. The same model weights can produce different results depending on reasoning configuration, context handling, tools, prompts, execution policies and verification. Anthropic reported a similar finding in its work on long-running coding agents, where changes to planning, context hand-offs and evaluator structure affected performance more than a model swap.
Model benchmarks remain useful, but they do not establish the reliability of the agent built around the model.
Long-running agents need durable execution
Tasks lasting minutes, hours or longer need to tolerate interruptions. An agent cannot assume that a single process, context window or container will remain available throughout.
OpenAI made this explicit in its April 2026 Agents SDK release. It describes the infrastructure as a model-native harness and deliberately separates the harness from sandbox compute. Agent state can be externalised, sandbox environments can be recreated, and execution can resume from stored checkpoints if the original environment disappears. DeepSeek’s harness takes a related route through event-sourced sessions: its history is an append-only log that can be persisted, inspected, replayed, and recovered after an interrupted run.
Both point at the same requirement:
Agent execution should survive the environment executing it.
In production, a failed container should not automatically mean a failed task. Recovery introduces familiar distributed-systems concerns: checkpoints, idempotency, retries, event history and state recovery. Before retrying an interrupted external action, the system also needs to establish whether it already happened. These are problems I recognise from operating stream and batch pipelines to a reliability target.
The harness is not the protocol
Open protocols standardise the interfaces used by parts of this stack.
Model Context Protocol (MCP) standardises how an agent connects to tools, APIs, resources and external context. Agent2Agent (A2A) addresses a different boundary—communication and coordination between independent agents—and reached its first stable, production-ready release (v1.0) in 2026. They are complementary rather than rival ideas.
Neither protocol replaces the harness. Protocols standardise the interfaces. The harness still decides which capabilities to expose, what context reaches the model, which identity is in use, what permissions apply, how execution state is maintained, when verification runs, and when a human has to step in.
More tools do not automatically make a better agent
One of the easiest mistakes in agent design is to equate capability with the number of tools available. In practice, every tool is another decision the model has to weigh.
The MCP maintainers made this point directly in their updated roadmap, published on 22 August 2026. Connect an agent to a server exposing a hundred tools, and the model has to reason about that entire surface before the user has even asked for anything—and tool-selection quality tends to degrade as the catalog grows. One direction MCP is now exploring is progressive discovery: expose a small, useful set of capabilities first, and reveal more as the task becomes clearer.
This principle also applies outside MCP: expose the capabilities needed for the current task, and make additional tools available when they become relevant.
Memory and its attack surface
Persistent memory brings a related trade-off between capability and exposure.
Memory makes an agent far more useful: it preserves preferences, prior work, intermediate findings and long-running context. But persistent information also influences future reasoning—which means it is a place an attacker would like to reach. OWASP’s Agentic Security Initiative now treats memory and context poisoning as a distinct agentic security category (ASI06). Unlike a one-shot prompt injection that resets when the session ends, poisoned memory persists across sessions and can shape decisions days or weeks after it was written.
So persistent state should not automatically become trusted state. Depending on the application, provenance, isolation, validation, write permissions, expiration and auditability all start to matter. The same logic applies to tools.
As agents gain autonomy, security becomes a question of blast radius: if the agent makes a bad decision—or is manipulated into one—what can it actually affect? Sandboxes, virtual machines, filesystem boundaries, network egress restrictions and narrowly scoped credentials shrink that radius before the model ever decides anything. In my experience that is far more reliable than asking a human to click through an endless stream of permission dialogs. Anthropic describes a similar philosophy in how it contains Claude across products—access boundaries and blast-radius reduction through sandboxes, VMs and egress controls.
A plugin-first case study: DeepSeek Harness
The open-source DeepSeek Harness applies a plugin architecture across the agent runtime. It is MIT-licensed and currently in developer preview. Its organising principle is:
Everything is a plugin.
Models, tools, skills, sessions, sandboxes, storage, loops, scheduling and even the UI can be mounted and recomposed as plugins. An underlying kernel called Cordis manages plugin dependencies and lifecycle rather than implementing the agent’s capabilities directly.
Software has used plugins for decades. DeepSeek applies that modularity across much of the agent execution stack. In principle, a restricted research agent, a coding agent with an isolated sandbox and filesystem, and an enterprise agent limited to approved systems could share most of the same harness infrastructure. Its event-sourced session model keeps interaction history durable and replayable, independently of transient UI state.
The project remains a developer preview, so its interfaces and conventions may change. Alongside work at OpenAI, Anthropic and the protocol projects, it shows how much agent behaviour now depends on the design of the harness.
The enterprise question is identity, authority and control
An organisation running agents needs to answer a basic question: who is each agent acting as?
An enterprise system needs to know not just which model produced an action, but which user, service or organisation authorised it, and what authority was actually delegated. The August 2026 MCP roadmap lists agent identity and enterprise-ready security as a major priority for good reason. Browser-based user authorisation works fine for interactive software, but autonomous cloud agents may run when the user is absent, or delegate narrower authority to subagents. That raises real questions around workload identity, token exchange and delegated authorisation—the kind of governance and RBAC concerns I have watched enterprises wrestle with well before “agent” became the word for it.
The harness is the natural place to enforce these boundaries. A good enterprise agent should let you reconstruct what happened: which identity performed the action, which data it touched, which tools were available, which permissions were active, how much the run cost, and whether any policy was overridden. Without a shared control layer, organisations end up with dozens of disconnected agents, each with its own permissions, logging conventions, memory behaviour and security assumptions.
These controls make delegated autonomy accountable to the organisation.
Designing a dependable agent
A useful agent depends on both model capability and the engineering around it.
The model provides reasoning. The harness turns reasoning into controlled action. Context decides what the model knows, tools decide what it can affect, memory provides continuity, durable execution keeps work alive, verification catches mistakes, identity defines authority, sandboxes limit damage, and observability makes the whole sequence legible. Protocols like MCP and A2A increasingly define how these pieces connect to the world.
Better models expand what an agent can do and may remove the need for some existing workarounds. A harness should evolve as models improve. Review complexity added to compensate for earlier model limitations, and remove it when it no longer serves a purpose.
Aim for the smallest reliable operating environment that provides enough context to understand the task, enough capability to complete it, enough feedback to correct mistakes and clear limits on what the agent may affect.
Sources and further reading
- DeepSeek — DeepSeek Harness (developer preview). Documents the “Agent = Model + Harness” and “everything is a plugin” architecture, the Cordis kernel, and an append-only, replayable session log.
- Model Context Protocol — “The New MCP Roadmap” (22 August 2026). Covers agent identity, enterprise security, long-running agentic messaging and progressive discovery for large tool catalogs.
- A2A Protocol — Version 1.0. The first stable, production-ready open standard for communication between independent agents, and its complementary relationship with MCP.