Super Agent Architecture Explained: Moving Scheduling to the System Layer
This article breaks down the super agent architecture that shifts task scheduling from the model to the system layer. It explains why single-session agents hit bottlenecks in blocking, context mixing, and offline recovery, and how a two-layer design, event-driven execution, asynchronous multi-channel interaction, storage-compute separation, and an external watchdog address them. It also shares early experimental observations on latency, routing overhead, and batching, plus practical guidance on state contracts, externalized context, message queues, cost control, and permissions.
1. Background: The Bottleneck Has Shifted from Execution to Attention
Recent work on single-task agents such as AI coding tools has shown that a model combined with tool calls can handle fairly complex engineering tasks. Human involvement in low-level execution has dropped significantly, and the human role has moved up to defining requirements, making design decisions, and accepting results.
At the same time, always-on, event-triggered forms such as personal assistants are starting to appear. However, most agent implementations still use a “single session” as the organizing unit. Once the number of tasks grows, they run into three walls:
- Blocking: one long-running task occupies the session, so other requests have to queue.
- Context mixing: multiple tasks share the same history, and information contaminates itself across tasks.
- Offline means stopped: if the execution host disconnects, the task state is lost with it.
As a result, the industry has begun to define a “super agent” as a continuous entity that keeps context across sessions, advances multiple tasks in parallel without interference, and stays alive over time. Its four core characteristics can be summarized as:
- Continuous: users interact directly in familiar interfaces such as chat groups and code review comments. There is only ever one agent from the user’s point of view, with no need to track whether a given session already contains a piece of information.
- Parallel: multiple tasks move forward at the same time without blocking each other.
- Proactive: even when no one calls on it, the agent can spot defects in shared information streams and submit fixes on its own.
- Self-healing: after an error or disconnection, it recovers on its own instead of starting over.
2. Core Idea: Bringing Classic Operating System Mechanisms into the Agent
The most valuable part of this architecture is not a new concept. It is the migration of proven engineering ideas from computer systems into the agent layer: scheduling, caching, storage-compute separation, and a watchdog. Together, these four mechanisms map directly onto the four walls described above.
1. Two-Layer Architecture: Separate Decision-Making from Execution
The upper layer is the routing layer. It understands intent, decomposes tasks, selects an execution path, and aggregates results. The lower layer is the execution layer, where each task has its own working context and tool environment. The two layers communicate through an explicit state contract, and the upper layer does not depend on the internal details of the lower layer.
User / event source↓Routing layer (intent recognition / task orchestration / result acceptance)↓ task handle + state contractExecution layer (Task A context | Task B context | Task C context)
The direct benefit is isolation: history growth or a failure in one task does not pollute the context of another.
2. Event-Driven: From Polling and Waiting to Triggering on State Change
A traditional session follows a request-response model: the system does nothing until the user asks. An event-driven design turns changes in the outside world (a new comment, a new alert, a failed build) into events, delivers them to a task queue, and lets the execution layer consume them. The system gains initiative, and idle resources can be put to use.
3. Asynchronous Multi-Channel Interaction: One Entity, Multiple Entry Points
The same task can start in a chat window, continue in a code review, and finish in an alert callback. The key is to assign each task a stable identifier and normalize messages from different channels into internal events, which avoids having many entry points with scattered state.
4. Storage-Compute Separation: Externalize State, Make Execution Replaceable
Context, task state, and checkpoints live in external storage, while execution nodes keep only short-lived compute state. This brings three benefits: execution nodes can be replaced at any time; after a disconnection, work can resume from a checkpoint; and read-heavy, write-light context can be reused through a cache layer, reducing repeated computation.
5. External Watchdog: Make Self-Healing a Separate Component
The watchdog runs independently of the execution path. It periodically checks task heartbeats against the expected state, and triggers a restart, replay, or degradation when it detects a timeout, a stuck task, or a lost node. It has to be an external component: a process monitoring itself is effectively not monitored at all.
3. Experimental Observations: Both Gains and Costs
In preliminary experiments with synthetic workloads and a simplified environment, this approach showed clear trends:
- Task latency: about half of the tasks finished within 12.4 minutes, and 95% converged within 15.7 minutes, clearly better than the baseline of a single session plus a sub-task tool.
- Effect of the direct-passthrough mechanism: removing passthrough increased routing decisions by about 30%, and the token volume read from cache rose from 23.23 million to 31.77 million.
- Batching efficiency: with routing batching enabled, the inference time amortized per decision dropped from 6.4 seconds to 1.6 seconds.
These numbers need to be read with care. On one hand, moving scheduling to the system layer does improve both speed and stability: passthrough saves overhead, and batching absorbs bursts. On the other hand, it trades more tokens for time and stability, and the simplified test environment means the results are only a feasibility reference, not a formal product conclusion.
4. Implementation Guidance: Start with a Minimum Viable Form
- Define the state contract first: specify task identifiers, the state machine (pending / running / awaiting acceptance / failed and retryable), and idempotency keys. This is the foundation for every mechanism that follows.
- Externalize context early: put history and checkpoints in external storage with a cache layer, and avoid keeping them local to execution nodes.
- Decouple event sources from the execution layer with a message queue: this naturally provides peak shaving and replay.
- Deploy the watchdog separately from the main path: close the loop with logging and monitoring alerts.
- Keep cost under control: set thresholds for passthrough and batching so token consumption does not grow linearly with the number of tasks.
- Permissions and audit: a proactive agent needs least privilege, an operation trail, and human acceptance checkpoints.
5. Conclusion
The essence of a super agent is upgrading the agent from a “passively responsive session” to a “schedulable, cacheable, recoverable runtime entity.” It reuses old lessons from systems engineering; the value lies in how they are combined. For developers, the real barrier is not the model but three foundational engineering capabilities: state management, event governance, and observability.
