Model-Driven Agent Harnesses: Rethinking Super-Agent Architecture
A model-driven harness moves agent control logic from predefined workflows into a learned decision model. This article examines the limitations of conventional harnesses, outlines a three-layer Super-Agent architecture, and explains how structured execution loops, hierarchical memory, and feedback-driven improvement can support reliable long-running tasks. It also presents a reference implementation and practical evaluation criteria for incremental adoption.
Model-Driven Agent Harnesses: Rethinking Super-Agent Architecture
1. From Chat Tools to Task Agents: The Bottleneck Is Shifting
Over the past two years, large language model applications have moved beyond single-turn conversational tools toward agents that can break down goals, call tools, and verify results autonomously. Several research organizations predict that a substantial share of enterprise applications—often cited as roughly 40%—will include task-oriented AI agents by the end of 2026.
Yet adoption figures tell a more restrained story. An industry survey of large enterprises reportedly found that multistep workflows accounted for only about 9% of total token consumption on average. Most tokens still go toward relatively flat tasks such as question answering, summarization, and translation. Long-running, multistep agent workloads remain at an early stage.
That early stage matters: the core engineering challenges have not yet been systematically resolved. One of the most important bottlenecks is not the model’s reasoning ability, but the harness—the surrounding control system and engineering scaffolding.
The harness determines whether an agent can make reliable decisions throughout a long-running task:
- How should the task be decomposed?
- Which tools should be selected?
- How should results be verified?
- How should context be managed?
- How should failures be handled?
The model is the engine; the harness is the vehicle’s transmission and control system. A powerful engine cannot compensate for a poorly designed control system.
Two reported experiments illustrate the importance of this layer:
- In a coding-agent experiment, changing only the file-editing interface’s call format and interaction conventions, while keeping the model unchanged, increased the benchmark score from 6.7% to 68.3%.
- In a terminal-environment benchmark, replacing the harness with a more refined architecture, without changing model weights, raised the pass rate from 52.8% to 66.5%.
These results point toward a broader shift: competitive differentiation is moving from the model layer toward the harness layer. As foundation model capabilities become more comparable, the surrounding control architecture increasingly determines practical performance.
2. Three Structural Limitations of Conventional Harnesses
Many agent systems use state machines, workflow graphs, or predefined code to implement their harnesses. Developers specify task nodes, transition conditions, and exception branches in advance, then use handwritten control logic to drive execution.
This approach can work for short workflows in constrained domains. In open-ended, long-running tasks, however, it exposes three structural limitations.
Control Latency Compounds Across Frequent Decisions
In conventional architectures, many critical decisions—task assignment, tool selection, parameter assembly, and result verification—require a model inference call.
As tool-use frequency increases, these decision points accumulate serially, increasing control-plane latency. Many decisions are also repetitive: which parser should handle an output, or whether a particular error calls for a retry or a fallback.
A state machine does not, by itself, turn these recurring decisions into learned capabilities. The system must repeatedly query a model or follow another predefined code branch.
Long-Running Tasks Lose Critical Information
As a task grows, its conversation history quickly exceeds the context window. A common response is to summarize earlier interactions.
Summarization is inherently lossy. Initial constraints, important parameters, and previously rejected approaches may disappear during compression. By step 30, an agent may have forgotten a hard requirement introduced at step 3 or may retry a path that has already failed.
This form of long-task forgetting is often silent. The agent does not report an error; it simply produces a plausible execution trajectory that has drifted away from the original objective.
Rule Maintenance Becomes Increasingly Expensive
As tasks become more open-ended, the number of workflow branches can grow exponentially. Every new tool or failure mode may require additional nodes, transition conditions, and exception-handling code.
Eventually, the harness itself becomes one of the most complex, fragile, and difficult-to-test components. Developers become trapped in a cycle of adding rules: fixing one case exposes two more.
The common issue is the mismatch between deterministic, manually specified control logic and an uncertain, open-ended task environment with a long tail of possible situations.
Rather than continuing to accumulate rules, the proposed alternative is to redefine how the harness operates: use a model as the control system.
3. The Core Idea: Use a Model as the Harness
The model-as-harness approach can be summarized as follows:
Move control logic from hard-coded branches into a learnable decision model that can improve through training data and serve as the agent’s control plane.
Instead of relying primarily on a state machine and code branches, the system uses a decision model to handle runtime responsibilities such as:
- Task decomposition and planning: Turn high-level goals into executable, verifiable subtasks.
- Tool and model selection: Choose appropriate tools, worker models, or execution paths based on the current state.
- Result verification and state integration: Check intermediate results against constraints and decide whether to retry, roll back, or continue.
- Context management: Decide what belongs in working memory, what should be retained in long-term memory, and what can be safely compressed.
- Completion and summarization: Determine when the task is actually complete rather than relying solely on a fixed step limit.
In this architecture, generation and execution models become worker models or executors. The decision model concentrates on what to do, when to do it, and whether it was done correctly.
This resembles the separation between control and data planes in systems architecture: the data plane performs the work, while the control plane handles scheduling and governance.
The intended benefits are threefold:
- Reusable learned decisions. Recurring judgments can be encoded in the decision model’s parameters through training data, allowing similar decisions to be reused across tasks rather than rebuilt from scratch.
- Evolving control logic. Improvements can come from updating the decision model and its training corpus, rather than exclusively modifying workflow code and releasing new versions.
- Better adaptation to open-ended tasks. A decision model can potentially generalize to unfamiliar task patterns instead of encountering an undefined workflow branch.
4. A Three-Layer Super-Agent Architecture
A complete Super-Agent platform can be organized into three cooperating layers.
Layer 1: The Harness and Decision Model
The decision model sits at the center of the control system. One possible implementation is a mixture-of-experts (MoE) architecture, with expert subnetworks for different control functions:
- Planning
- Tool routing
- Verification
- Context management
This layer determines the agent’s behavioral policy and acts as the architecture’s coordinating brain.
Layer 2: Worker Models
The worker layer contains one or more models responsible for generation and execution. It may also include code-execution sandboxes, retrievers, and vision models.
Workers do not own the overall workflow. They perform the atomic tasks assigned to them.
This separation allows worker models to be upgraded as foundation models improve without requiring the control strategy to change at the same time.
Layer 3: Datasets and Memory
The dataset layer provides both training material and memory for the decision model. It contains three main categories:
- Decision data: High-quality planning trajectories, tool-call examples, and failure-recovery cases used to train and calibrate the decision model.
- Domain data: Task-specific knowledge, constraints, and standards that support context management and result verification.
- Runtime feedback data: Execution traces, verification outcomes, and human feedback collected during operation and fed back into the dataset.
Together, these layers form a feedback loop that can continuously improve the decision model.
The architecture can also support private deployment. The control system and datasets can reside on user-side devices or in private environments to address data compliance and latency requirements.
5. Essential Capabilities: Execution Loops, Extended Context, and Self-Improvement
Making a model-driven harness effective requires solving three deeper engineering problems.
Structured Execution Loops
Long-running tasks follow a repeated cycle:
Plan → Execute → Observe → Replan
Engineering this loop requires each iteration to produce structured outputs. Execution results should become verifiable state updates rather than merely natural-language logs. When verification fails, the system should generate a corrective plan.
The decision model also makes higher-level judgments throughout the loop: Is the current trajectory still converging on the goal? Does the plan need to change?
The objective is an agent that becomes more accurate as it works, rather than mechanically following its initial plan.
“Infinite Context” Engineering Through Hierarchical Memory
Moving beyond a fixed context window requires more than repeatedly summarizing the conversation. The proposed approach uses a layered memory system:
- Working memory: Exact parameters and constraints required for the current subtask, retained without compression.
- Episodic memory: Summaries of completed steps and their important conclusions, retrieved when needed.
- Semantic memory: Domain knowledge and standards injected on demand through retrieval augmentation.
- Task blackboard: A structured record of the global objective, completed and outstanding work, and constraints, included as required input to each decision.
Here, “infinite context” describes an engineering approach to supporting very long tasks, not a literally unlimited model context window.
The decision model controls when to retrieve information, what to retrieve, and how to compress it. This allows critical information to remain available across extended workflows.
The central idea is that the compression and retrieval policy itself can be learned.
Self-Improvement Through Runtime Feedback
As execution traces, verification results, and feedback flow into the dataset layer, the decision model can be periodically retrained or calibrated.
For example, repeated failures at the same stage of a task can become training evidence for a better control strategy. This creates a self-improvement loop:
Execution produces data → Data improves decisions → Better decisions improve execution
The article’s RSI, or recursive self-improvement, concept refers to this feedback-driven process. It must be paired with strict evaluation gates and regression testing to prevent overfitting to narrow task distributions or degrading existing capabilities.
6. Reference Implementation: A Model-Driven Harness Skeleton
The following illustrative pseudocode shows how the control layer can drive the execution loop. The decision-model interfaces must be defined for the actual implementation.
class ModelHarness:"""Reference skeleton: a decision model serves as the control plane."""def __init__(self, decision_model, worker_models, corpus):self.decision = decision_model # Planning, routing, and verificationself.workers = worker_models # Worker pool for generation and executionself.corpus = corpus # Datasets and hierarchical memorydef run(self, goal, constraints):# A structured blackboard preserves goals, constraints, and task state.board = {"goal": goal,"constraints": constraints, # Hard constraints are never compressed"done": [],"failed": [],"findings": [],}for step in range(self.max_steps):# 1. Assess completion and whether the trajectory is still converging.if self.decision.is_complete(board):return self.decision.summarize(board)# 2. Generate the next task dynamically from the current state.next_task = self.decision.plan(board)# 3. Select an appropriate worker model and tool.worker, tool = self.decision.route(next_task, self.workers)# 4. Execute the assigned atomic task.result = worker.execute(tool, next_task)# 5. Verify and integrate results; plan corrections after failures.verdict = self.decision.verify(result, board)self.decision.integrate(board, next_task, result, verdict)# 6. Retrieve and compress context as needed, not through blanket summaries.self.corpus.maintain(board)# 7. Record traces for future decision-model improvement.self.corpus.record(board, next_task, result, verdict)return self.decision.summarize(board)
The architectural point is that planning, routing, verification, state integration, and memory-maintenance policy are driven by the decision model rather than predefined state transitions. In this skeleton, memory maintenance is exposed through the corpus interface.
The blackboard and hierarchical memory replace dependence on conversation summaries alone. Each execution also produces a trace that can support future model improvement.
The code is an architectural sketch, not a complete implementation; details such as configuring max_steps remain implementation-specific.
7. Evaluation and Deployment Recommendations
A model-driven harness requires evaluation at the workflow level, not just at individual tool calls.
Evaluation Metrics
- End-to-end task success rate: Measure whether the agent achieves the objective on realistic, long-running tasks.
- Constraint retention rate: Check whether initial hard constraints are satisfied at completion, directly measuring long-task forgetting.
- Control efficiency: Track the number of control-decision inference calls per completed task and total end-to-end latency to test whether learned decision reuse provides practical benefits.
- Failure recovery rate: Inject tool failures, timeouts, and abnormal outputs to measure the agent’s ability to recover.
- Improvement over time: Compare task success before and after retraining on collected execution data to determine whether the feedback loop is effective.
Incremental Adoption
A gradual rollout is preferable to replacing the entire harness at once.
Start by introducing a decision model into the most problematic control functions, such as tool routing or result verification. Validate the benefits before extending it to full planning.
Deploy worker models and decision models independently so each can evolve on its own schedule. Training and inference infrastructure can use standard container platforms, object storage, message queues, logging, monitoring, and alerting to support elastic scaling and reliable trace collection.
8. Conclusion
The Super-Agent concept addresses a growing mismatch in agent engineering: model capabilities are advancing quickly, while many control systems still rely heavily on manually specified state machines.
A model-driven harness moves control logic into learned parameters and training data. It uses a decision model to coordinate task decomposition, tool routing, result verification, and context management. Combined with structured execution loops, hierarchical memory, and feedback-driven improvement, this offers a path from conversational capability to reliable completion of long-running tasks.
The approach also introduces challenges: decision-model interpretability, training-data quality, safe boundaries for self-improvement, and the resource costs of private deployment.
The central proposition is that, as differentiation shifts toward the harness, a model trained to perform harness functions becomes a compelling architectural option. For engineering teams, the immediate priorities are collecting high-quality control data, building rigorous evaluations, and evolving the architecture incrementally.
