Why AI Agent Harnesses Will Converge on a Thin, Pluggable Core
As AI agent systems mature, the "harness" layer between models and applications faces a design fork: heavy infrastructure or lightweight scaffold. This article argues neither extreme survives long-term, and explains why a thin core with pluggable modules and standardized protocols is the sustainable middle ground, covering what the core must retain, what belongs in plugins, and a practical evolution path for engineering teams.
Why AI Agent Harnesses Will Converge on a Thin, Pluggable Core
The Real Question: Not “Light or Heavy,” but “What Must Stay Stable”
In agent systems, the harness is the execution scaffold between the model and the business application: it transforms tasks into context, drives the model to produce actions, schedules tool execution, handles interruption and recovery, constrains side effects, and records the whole process as an observable, replayable, and governable event stream. The model decides what it might do next; the harness decides how it’s allowed to do it, how results enter the system, and how to continue after failure.
So when asking whether harnesses will evolve into heavy infrastructure or a lightweight scaffold, code volume, service count, and orchestration capability are the wrong metrics. The real questions are: which capabilities are long-term stable invariants that the core must own; which are highly volatile and belong in pluggable modules; and which naturally belong to the platform side and should sink into external infrastructure.
From an engineering evolution standpoint, the likely answer has three parts:
- A thin core: a clean execution loop, an event and state model, tool dispatch contracts, policy gates, and extension hooks.
- Pluggable modules: context compression, memory retrieval, planning strategies, multi-agent collaboration, sandboxed execution, evaluators, telemetry export, connectors, and more, all delivered as plugins.
- Standard protocols: versioned protocols for events, tools, permissions, context, tracing, and capability manifests that decouple the core from its modules.
Heavy infrastructure tends to harden volatile policies into the core, resulting in slow upgrades, painful debugging, and duplication of platform capabilities. Lightweight scaffolds leave security, recovery, auditing, context budgeting, and side-effect governance to business scripts—fast for demos, but enormously expensive to retrofit for production. The shape most likely to endure is the middle ground: a thin pluggable core, heavy capabilities sunk into the platform, and lightweight extensions riding on standard protocols.
Why Both Extremes Make Sense—and Where They Hit Their Limits
1. The Value and Cost of Heavy Infrastructure
Heavy harnesses typically offer full workflow orchestration, graph structures, multi-role collaboration, state machines, durable execution, visual debugging, centralized evaluation, and permission systems. They clearly add value when:
- Task chains are long and need well-defined stage boundaries and human approvals;
- Multiple teams share one set of tools, permissions, and audit standards;
- High-risk operations require strong isolation, replayability, and accountability;
- Complex agent capabilities must be packaged into a reusable runtime layer for the enterprise.
But once too many decisions are written into the core, problems emerge:
- Abstraction lock-in: the core treats one planning style, role model, or graph orchestration as the only paradigm—yet model capabilities evolve fast, and today’s sensible decomposition may be absorbed by the model tomorrow;
- High debugging cost: failures can originate from the model, context, tools, policy, plugins, or orchestration layer; the longer the chain, the more debugging depends on comprehensive tracing;
- Duplicated platform capabilities: identity, secrets, queues, containers, logging, monitoring, and object storage belong in general-purpose infrastructure; rebuilding them inside the harness creates maintenance burden;
- Overhead for small tasks: a simple retrieval, file edit, or test run may be forced through multiple orchestration layers, slowing iteration.
Heavy infrastructure isn’t wrong per se—the mistake is mixing “infrastructure capabilities” and “agent execution policy” in the same core.
2. The Value and Risk of Lightweight Scaffolds
Lightweight scaffolds usually look like a simple loop: assemble the prompt, call the model, parse actions, run tools, push results back into context, keep looping. They’re transparent, quick to start, and easy to debug—well suited to local development, prototyping, and small tasks with clear boundaries.
Lightweight does not mean production-ready. Once real business traffic arrives, you must answer at least:
- How are tool failures, timeouts, and duplicate executions handled?
- How are side effects on files, networks, and databases isolated and approved?
- When context exceeds budget, what is kept, compressed, or dropped?
- How does recovery work after a user interrupts? How is state replayed?
- What’s the fallback when model output violates structured conventions?
- Which tool calls did a task trigger, at what cost, and who approved what?
- Can plugins bypass security policies to access sensitive resources directly?
If all of these get patched ad hoc in business code, the lightweight scaffold gradually grows into a “heavyweight framework without a unified protocol.” Its complexity hasn’t disappeared—it has moved from an explicit architecture into scattered scripts.
Four Technical Reasons the Middle Ground Wins
1. Model Capabilities Are Moving Up—the Core Shouldn’t Hardcode Cognitive Strategies
As models grow stronger at reasoning, planning, and tool use, decisions that once required an outer framework get absorbed into the model. If the harness core hardcodes elaborate planning strategies, it overlaps with model capabilities and may even suppress the model’s better in-the-moment judgment.
A more sensible boundary: the core only defines “the space of allowed actions, the contract for executing them, and how their results are recorded.” Whether execution uses single-step planning, hierarchical planning, reflection-with-retry, or multi-role collaboration should exist as replaceable strategies. That way, when models upgrade, the harness doesn’t have to be rebuilt.
2. Enterprise Constraints Persist—but Belong in Policy and Infrastructure Layers
No matter how strong models become, permissions, approvals, data boundaries, auditing, secret management, sandbox isolation, cost control, and multi-person collaboration won’t vanish. The core should invoke these capabilities explicitly, but doesn’t need to implement all of them itself.
For example, the core only needs to emit a policy check request before tool execution; actual rules can come from a policy module or the enterprise permission system. The core only needs to publish structured events; persistence can land in object storage, log services, or event stream platforms. Isolated execution can be delegated to containers, microVMs, or remote execution services. The core stays thin; the periphery can be heavy.
3. Ecosystem Interoperability Demands Protocol-First, Not Framework-First
Agent systems inherently need to connect to models, tools, data sources, executors, evaluators, approval systems, and observability platforms. If every harness invents its own plugin interface, integration cost rises linearly with the number of integrations.
Long-term, the more valuable asset isn’t a specific framework’s API but a set of clear, versioned, testable protocols:
- How tools declare inputs, outputs, side-effect severity, idempotency, and permission scope;
- How state events express causality, error types, and checkpoints;
- How context fragments are annotated with source, sensitivity, time-to-live, and budget priority;
- How plugins declare capabilities, version compatibility, and required permissions;
- How traces are redacted, correlated, and replayed.
Once protocols are stable, the core can be small, the modules can be many, and the platform can be swapped out.
4. Complexity Is Conserved—the Goal Is Placing It at the Right Layer
Complexity in agent deployment doesn’t disappear because you go “lightweight,” nor is it automatically governed because you go “heavyweight.” The right approach is layered ownership:
- Cognitive strategy complexity goes into pluggable strategy modules;
- Side-effect and isolation complexity goes into executors and sandboxes;
- Enterprise governance complexity goes into policy, identity, auditing, and approvals;
- Data and runtime complexity goes into general-purpose cloud infrastructure;
- The core retains only stable cross-module constraints and execution orchestration.
This is the economic basis of “thin core + plugins + standard protocols”: keep the stable parts small, make the volatile parts replaceable, and sink heavy capabilities on demand.
What a Thin Core Should Actually Retain
A thin core isn’t just a while loop. It retains only the stable constraints that can’t easily be externalized. A practical core should include the following responsibilities.
1. A Single Execution Loop
The loop drives the task from start to finish: build context, call the model, parse actions, check policy, execute tools, record results, decide whether to stop. It doesn’t need to dictate how the model reasons internally or how complex workflows are layered, but it must be the single entry point for all actions.
2. Event Logs and Checkpoint Hooks
The core should express task state as appended events rather than scattered object fields. At minimum, events include task start, context compilation, model output, tool request, policy result, tool result, error, human input, checkpoints, and termination.
Checkpoints shouldn’t be bound to a specific database, but the core must provide hooks so state can be persisted, resumed, and replayed.
3. A Context Compilation Interface
Context isn’t naive prompt concatenation—it’s a working set compiled from the task objective, historical events, tool results, memory, retrieval results, sensitivity levels, and budget constraints. The core can define context fragment structure and budget rules, while concrete summarization, compression, and recall strategies are implemented by plugins.
4. A Tool Dispatch Contract
All side effects must flow through a unified tool dispatcher. Tools should declare input/output structure, side-effect category, timeout, retry semantics, idempotency, permission scope, and cost hints. The core handles dispatch and recording; actual execution can be delegated to a local sandbox, remote executor, or enterprise service.
5. Policy and Approval Gates
The core must expose a policy checkpoint before executing any action. Policy modules may allow, deny, degrade, redact, or require human approval. Approval decisions enter the state as events—not hidden in side-channel logic.
6. Output Parsing and Termination Decisions
Model output may not meet structural requirements. The core should define a fallback path when parsing fails: retry, request reformatting, degrade to read-only actions, or terminate. Termination conditions should also be explicit rather than enforced only through prompts.
A simplified skeleton:
interface HarnessCore {run(task, options): EventStreamresume(checkpointId, input): EventStreamregister(extension: Extension): void}loop:emit TaskStartedwhile not stopped:context = contextCompiler.compile(task, state, budget)decision = modelAdapter.invoke(context)action = parser.parse(decision)if action.isFinal:breakpolicy = policyEngine.check(action, principal)if policy.needApproval:emit ApprovalRequiredwaitForHumanInput()result = toolRegistry.dispatch(action, policy.sandbox)emit ToolExecuted(action, result)state = reducer.apply(state, result)if isUnrecoverable(error):handleFailure()emit TaskFinished
The point of this skeleton isn’t that the code is short—it’s that every decision passes through the same set of stable boundaries: context compilation, policy checking, tool dispatch, event recording, and recovery control.
Which Capabilities Belong in Plugins
Pluggable modules should cover capabilities that are volatile, specialized, or optional—not fragment the core. Typical modules include:
- Model adapters: unified invocation, streaming output, error mapping, cost and quota tracking—without turning any single model’s quirks into a global dependency.
- Tools and connectors: code execution, file operations, retrieval, messaging, business system queries—exposed through a unified tool protocol.
- Memory and retrieval: short-term working memory, long-term memory, vector search, keyword search, knowledge graphs. The core only receives context fragments and never depends on specific storage.
- Planning and collaboration strategies: single-step execution, hierarchical planning, reflection with retry, multi-role assignment, workflow adaptation. These act as strategy plugins influencing next-step proposals, but must never bypass policy gates or tool dispatch.
- Execution and sandboxes: local process isolation, containers, remote execution, browser automation—plugged in through a unified executor interface.
- Policy and approvals: rules based on role, resource, action, time, and risk level; human approvals; data redaction and access control.
- Observability and evaluation: trace export, metrics, failure classification, replay, dataset evaluation, regression testing.
- Lifecycle management: plugin registration, capability manifests, version compatibility, signature verification, gradual rollout, and disabling.
One hard rule for plugin design: plugins may extend capabilities, but must not bypass core events, policy, or tool dispatch. Otherwise the thin core loses its governance power, and the more plugins you add, the less controllable the system becomes.
Standard Protocols Are the Glue of the Middle Ground
Without protocols, a thin core easily degrades into “a thin core where every module invents its own interface.” Protocols don’t need to become industry standards on day one, but they must be internally stable, versioned, and testable.
| Protocol | Key Questions | Stability Requirement |
|---|---|---|
| Event protocol | What happened, causal relationships, how to recover and replay | High |
| Tool protocol | What can be done, inputs/outputs, side-effect severity, how to authorize | High |
| Context protocol | Fragment source, priority, sensitivity, how budget is computed | Medium-high |
| Permission protocol | Who performs what action on what resource, whether approval is needed | High |
| Tracing protocol | Call chains, cost, error types, redaction, correlation IDs | Medium-high |
| Capability manifest | Plugin versions, compatibility range, required permissions, start/stop state | High |
Protocol design should avoid two extremes: over-abstraction—cramming everything into one universal message structure that implementers can’t understand—and leaving everything to plugin authors, which prevents unified auditing and replay. The better approach is defining minimal necessary fields around the stable objects of “action, context, event, permission, and capability,” then allowing extension fields.
One Core Across Deployment Shapes
The middle ground has another advantage: the same thin core can adapt to different deployment forms.
- Local development: the core runs in-process, events land in local files, tools execute within controlled directories, and memory/retrieval are optional—ideal for fast debugging and transparent tracing.
- Team production: the core connects to a centralized tool registry, policy service, logging and tracing backends, replay systems, and evaluation sets, with plugins under version management.
- Multi-tenant cloud: the core stays stateless or lightweight, events and checkpoints persist to external storage, executors run in isolated environments, queues handle async tasks, secrets and identity are managed by platform services, and monitoring/alerting is unified.
In this model, the cloud platform handles generic category capabilities—object storage, message queues, containerized execution, logging, monitoring/alerting, and secret management. These aren’t the harness’s cognitive logic; they’re runtime guarantees. Once they’re sunk lower, the harness core stays thin, and enterprise governance is carried by the surrounding platform and policy plugins.
A Practical Engineering Checklist
1. Start with a Minimal Replayable Loop
Don’t build an elaborate orchestration platform upfront. Implement a single loop, a unified tool entry point, appended events, and checkpoint recovery first. As long as tasks are replayable and failures are traceable, later pluginization has a foundation.
2. Tools Must Declare Side Effects
Read-only queries, file modifications, external sends, and financial or permission changes should carry distinct risk levels. High-risk actions should support human approval and idempotency keys to prevent retries from causing duplicate side effects.
3. Context Budgets Must Be Explainable
Context compilation should record which fragments were kept, what was compressed or dropped, and why. Otherwise, when a task fails, it’s hard to tell whether the cause was insufficient model capability, retrieval errors, or bad context trimming.
4. Error Classification Must Be Unified
At minimum, distinguish model output format errors, policy denials, tool timeouts, tool business failures, resource exhaustion, unrecoverable errors, and cases requiring human intervention. Only with unified error classification do retry strategies and evaluation statistics become meaningful.
5. Observability Isn’t an Add-On
The core should produce structured traces by default: task, step, model calls, tool calls, policy decisions, approvals, cost, and latency. Sensitive fields should be redacted before export, and traces should link to evaluation and replay.
6. Plugins Need Capability Manifests and Version Compatibility
When registering, plugins should declare required permissions, compatible protocol versions, dependent resources, and whether they can be disabled. Before core upgrades, run protocol compatibility checks to avoid “one plugin stalling the whole system’s upgrade.”
7. Don’t Push Multi-Agent Into the Core Too Early
Multi-role collaboration is a strategy, not a harness requirement. It can be enabled as a plugin when needed, while the core continues to revolve around a unified action protocol and event recording.
Suggested Evolution Path for Teams
A relatively safe route has five steps:
- Minimal kernel: implement the execution loop, unified tool entry point, event log, and basic error classification.
- Safety and recovery: add policy gates, human approvals, checkpoint recovery, and controlled execution environments.
- Modular extension: split model adaptation, retrieval, memory, planning, tracing, and evaluation into plugins, and stabilize the protocols.
- Platform enablement: route persistence, queues, sandboxes, logging, monitoring, and identity into general-purpose infrastructure.
- Ecosystem reuse: build plugin registration, version management, capability manifests, replay-based evaluation, and gradual rollout, letting different teams compose capabilities on demand.
Whether a harness design is healthy shouldn’t be judged by how many features it supports, but by more practical metrics: time to first successful run, tool failure recovery rate, number of human interventions, context budget utilization, task replay completeness, plugin onboarding cost, audit record completeness, and per-task cost. A core packed with features but hard to extend is often more fragile than a thin core with clear boundaries.
Closing: Sink Heavy Capabilities, Externalize Light Extensions, Keep the Core Stable
Back to the original question: will agent harnesses lean toward heavy infrastructure or a lightweight scaffold? The more accurate answer is layered evolution.
Heavy infrastructure won’t disappear—it will increasingly sink into generic platform capabilities: storage, queues, isolated execution, logging, monitoring, identity, and secret management. Lightweight scaffolds won’t disappear either—they’ll become composable capabilities through protocol-based plugins instead of scattered scripts. The harness core in between needs only to retain the stable invariants: the execution loop, event state, context compilation, tool dispatch, policy gates, and extension boundaries.
The form with the most long-term vitality is the middle ground of “thin core + pluggable modules + standard protocols”: a small core with complete constraints, many plugins under governance, and heavy infrastructure that never intrudes on cognitive logic. It preserves the transparency and flexibility of a minimal execution model while carrying enterprise-grade security, auditing, recovery, and observability. This isn’t a compromise between heavy and light—it’s the engineering outcome of putting complexity back at the right layer.
