Super Agent Architecture: Runtime Scheduling for Multi-Task Sessions
This article examines how a Super Agent runtime can move beyond single-session execution by taking over session management, context synchronization, and task scheduling. It presents four foundational characteristics, five runtime modules, early performance observations, and practical engineering guidelines for continuously available, multi-task agent systems.
Super Agent Architecture: Runtime Scheduling for Multi-Task Sessions
I. From Single-Task to Multi-Task: Why the Bottleneck Shifts from the Model to Attention
Over the past year, single-task agent forms such as coding agents have shown that models can complete complex workflows through tool calls. As underlying execution becomes more automated, the human role shifts from step-by-step operation to goal setting, process supervision, and result acceptance. The problem is that most agents still operate with a single session as the unit of execution: one session carries one main task chain, and context, tool state, and output all advance within the same execution flow. Once multi-tasking is introduced, simply duplicating sessions creates four types of problems:
- Synchronous blocking: Tool calls, model inference, and user confirmation wait in sequence, so long tasks hold up short tasks.
- Context confusion: Information from different tasks is mixed in the same window, contaminating one another and making provenance difficult to trace.
- Stopping when the device goes offline: Execution state is bound to the client, so network or terminal interruptions cause task interruptions.
- Attention bottleneck: People need to switch among multiple sessions, copy context, check progress, and handle conflicts, making attention the new bottleneck.
Therefore, the architectural goal is not to make the model “better at chatting,” but to have the runtime take over session management, context synchronization, and task scheduling, moving humans up to decision-making and acceptance.
II. Definition and Four Foundational Characteristics of a Super Agent
A Super Agent can be understood as a continuous entity that is always online, can advance multiple tasks in parallel, can proactively discover tasks, and can recover after anomalies. It is not an enlarged version of a single session, but a continuous runtime that maintains context across sessions without interference. Its foundational characteristics can be summarized as follows:
- Continuous: Users can interact through familiar interfaces such as instant messaging and code hosting platform comments, feeling as if there is always only one agent, without needing to care “which session context a piece of information is in.”
- Parallel: Multiple tasks advance under the same entity, with isolated contexts and states preventing tasks from contaminating one another.
- Proactive: The agent continuously monitors authorized public channels, event streams, or review comments, and identifies defects, proposes fixes, or sends reminders without being explicitly addressed.
- Recoverable: When execution nodes fail, tools time out, or messages are lost, the agent can recover or isolate through persisted state and external monitoring.
The four characteristics correspond to system capabilities: continuity requires externalized state and a unified identity; parallelism requires scheduling and isolation; proactivity requires event subscription plus rule- or model-based judgment; recoverability requires heartbeats, timeouts, idempotency, and replay.
III. Five Modules: Bringing Classic System Design into the Agent Runtime
1. Two-Layer Architecture: Decoupling the Control Layer and Execution Layer
The runtime can be divided into a control layer and an execution layer. The control layer manages session metadata, task queues, routing decisions, permissions, and lifecycle; the execution layer handles model inference, tool calls, and result return. The control layer does not directly hold large contexts, and the execution layer is kept as stateless as possible. In this way, multi-task scheduling, priority adjustment, and failure migration are not tied to a specific execution process. The two-layer design is not simple layering; it separates “deciding who does what and when” from “actually doing it,” laying the foundation for parallelism and recovery.
2. Event-Driven Design: Replacing Polling and Long Blocking with an Event Bus
Event-driven design unifies user messages, tool callbacks, timers, monitoring alerts, and task state changes into events. The scheduler subscribes to events and routes them by session/task tags. The advantage is that short tasks are not blocked by long tasks, and anomalies enter the processing chain as events. Pseudocode example:
on event(e):task = route(e)if not dedup(e): returnif task.ready: enqueue(task)else: persist(e)
Key points: event deduplication, idempotency, ordering, and causality markers. Without these, event-driven design degenerates into duplicate execution and state drift.
3. Asynchronous Multi-Channel Interaction: Input and Output Do Not Wait on Each Other
Multi-channel means entry points such as instant messaging, code review comments, email, and consoles. Each channel has an independent adapter that converts messages into unified events; output can be returned according to the task source or aggregated into a unified inbox. Asynchronous means that after a user sends a message, they do not need to wait for the current task to finish, and the system can acknowledge, queue, and process in parallel first. Engineering work must handle channel rate limits, message ordering, rich-text/attachment parsing, and permission boundaries.
4. Storage-Compute Separation: Decoupling Session State from Execution Nodes
Storage-compute separation places session context, task state, event logs, and caches in external persistent storage, while execution nodes retain only a short-term working set. Benefits: node failures can be migrated; offline operation does not interrupt tasks; multiple execution nodes can share state; caches can be tiered by task popularity. The challenge is consistency: context writes need version numbers, tool results need idempotency keys, and cache invalidation needs event notifications. Read caching can reduce repeated inference, but it increases storage and token overhead.
5. External Watchdog: Independent Monitoring and Recovery
The watchdog is independent of the execution process and periodically checks heartbeats, task timeouts, queue backlog, deadlock signs, and resource anomalies. When anomalies are found, it performs isolation, restart, retry, or degradation, and records events. The key is “external”: if monitoring runs in the same process as execution, monitoring also fails when the process crashes. The watchdog must avoid false kills, using multi-level thresholds and a human confirmation channel.
IV. Direct Routing and Batching: Insights from Performance Data
Public initial experiments show that in Super Agent tasks based on this architecture, about half of tasks completed within 12.4 minutes and 95% within 15.7 minutes, outperforming a single-session approach with sub-agent tools. After removing subscription direct routing, the number of routing decisions increased by about 30%, and read-cache tokens increased from 23.23 million to 31.77 million; routing batching reduced amortized inference time per routing decision from 6.4 seconds to 1.6 seconds. Interpretation:
- Direct routing reduces routing decisions: High-frequency, deterministic messages do not need to call the model for judgment every time; routing them directly by rule saves overhead.
- Batching absorbs bursts: Aggregating multiple routing decisions for inference lowers average time per decision but increases queuing delay, requiring tradeoffs by service level.
- More tokens buy time and stability: Caching and context copying are not free, and their cost must be included in the budget.
- The data is based on synthetic load and a simplified environment: It is evidence of feasibility, not a formal product conclusion. Real business scenarios require stress testing of long-tail behavior, fault injection, and cost accounting.
V. Engineering Implementation Recommendations
- Externalize state before discussing parallelism: Unify session IDs, task IDs, and event IDs; persist state; and cover tool calls with idempotency keys.
- Make the event bus observable: Each event should have a causal chain, retry count, and dead-letter queue; monitor queue backlog and latency percentiles.
- Isolation and quotas: Set concurrency, token, and tool quotas by task/tenant to prevent one task from bringing down the whole system.
- Tiered watchdog: Use three levels—heartbeat, timeout, and business health—with automatic recovery plus a human brake.
- Cost control: Prioritize direct routing rules for high-frequency deterministic scenarios; set a maximum waiting window for batching; evict caches by hit rate.
- Security boundaries: Proactive tasks require authorized scope, audit logs, and secondary confirmation for sensitive operations.
- Canary validation: Start with read-only proactive reminders, then low-risk fix suggestions, and finally enable automatic submission.
VI. Conclusion
The value of a Super Agent is not in “opening more sessions,” but in bringing system-level capabilities such as scheduling, caching, storage-compute separation, and watchdogs into the agent runtime, pushing session management and context synchronization downward so that humans can focus on decisions and acceptance. It trades more tokens and a more complex runtime for time, stability, and parallelism, and is suitable for scenarios that require continuous online operation and concurrent multi-tasking. Implementation should first solve externalized state, idempotent events, observability, and cost boundaries, and then gradually expand proactive capabilities.
