Super Agent Architecture: System-Level Session Management for Continuous, Parallel, and Proactive Agents

    This article examines how agents can evolve from single-session, single-task tools into persistent online entities that manage multiple tasks across channels. It outlines four design goals—continuity, parallelism, proactivity, and self-recovery—then describes a two-plane architecture with event-driven routing, asynchronous multi-channel interaction, storage-compute separation, scheduling, caching, and an external watchdog. It also discusses tradeoffs between direct execution and batching, evaluation metrics and boundaries for preliminary experiments, and practical engineering recommendations for state modeling, idempotency, decoupling, conservative rollout, and observability.

    1. From Single-Task Agents to Persistent Multi-Task Entities

    Over the past year, code agents, personal assistants, and similar applications have demonstrated that when a model can call tools, maintain context, and execute multi-step operations, people can gradually step back from low-level execution and focus on goal setting, decision-making, and acceptance. In single-task scenarios, this pattern is relatively mature: the user provides a clear task, the agent plans, calls tools, and returns a result, with a well-defined interaction boundary.

    But new problems emerge. Most existing agents use a single session as the basic unit: one session corresponds to one context chain, one execution queue, and one set of states. When a user advances multiple tasks at the same time, the bottleneck is no longer only model capability, but also human attention and system scheduling. Simply increasing the number of sessions introduces synchronization blocking, context confusion, task stoppage when a device goes offline, and difficulty recovering task state. Users have to switch among multiple sessions and determine whether a piece of information has already appeared in another session. This effectively transfers a system problem to the human.

    A further approach is therefore to upgrade the agent from a session that is opened to a continuously existing online entity. It can maintain context across sessions, advance multiple tasks in parallel without interference, work continuously in familiar interfaces such as instant messaging, code review, and ticket systems, and proactively identify defects or pending items when no one explicitly names them. Such entities can be collectively called super agents. The key is not a longer single response, but system-level ownership of session management, context synchronization, task scheduling, and failure recovery, so that users feel they are always interacting with one agent and do not need to care how many sessions exist underneath.

    2. Design Goals: Continuity, Parallelism, Proactivity, and Self-Recovery

    Publicly described super agent architectures generally revolve around four basic characteristics.

    The first is continuity. Users can interact with the agent through chat windows, comment areas, ticket replies, and other interfaces, while the system merges messages from different entry points into the same entity context in the background. Users do not need to manually switch sessions or repeatedly explain background information. The hard part of continuity is not message forwarding but state consistency: which information belongs to long-term memory, which belongs to temporary context for the current task, and which must be isolated across tasks. An explicit state model is required.

    The second is parallelism. A super agent needs to advance multiple tasks simultaneously—for example, waiting for code review results while handling questions in instant messaging and periodically inspecting public group chats. Parallelism is not simply starting multiple threads. Tasks must not interfere with one another, resources must be schedulable, and failures must be isolated. Otherwise, one long-running task can block the event loop and slow down every task.

    The third is proactivity. Traditional agents mostly wait passively for input, whereas a super agent needs to continuously monitor event sources, identify defects, discover pending work, submit fixes, or issue reminders when no one explicitly names it. Proactive behavior must be constrained by permissions, frequency, and confidence; otherwise, it can easily create noise or even incorrect operations.

    The fourth is self-recovery. Continuous online operation means failures are normal: tool timeouts, model call failures, device offline, duplicate message delivery, and execution environment crashes. The system needs heartbeats, timeouts, retries, compensation, and state snapshots so that tasks can continue after an exception instead of relying on a human to restart them.

    These four characteristics mean the architecture cannot be merely a wrapper around a model plus tools. It needs classic computer systems ideas: scheduling, caching, storage-compute separation, watchdogs, and event-driven design.

    3. Overall Architecture: Two Control Planes and Five Modules

    The core idea is to split the agent into a control plane and an execution plane, with five key modules working together.

    The control plane handles session management, event routing, context assembly, task scheduling, and state persistence. The execution plane handles model inference, tool invocation, sandbox execution, and result return. The control plane does not directly execute heavy tasks, and the execution plane does not hold global state for long periods. The purpose is to decouple session scheduling from specific execution and prevent a single execution task from dragging down the entire online entity.

    Event-driven design is the second foundation. All inputs—user messages, tool callbacks, timers, code review notifications, and group chat inspection results—are abstracted as events. After events enter the bus, a state machine decides the next action. Event-driven design naturally supports asynchronous and multi-task operation: the system does not need to block waiting for a tool to return, but records state and continues when the callback event arrives.

    Asynchronous multi-channel interaction addresses fragmented entry points. Instant messaging, code review, ticketing, email, and other channels differ in protocols, message formats, and acknowledgment mechanisms. The architecture uses a channel adapter layer to unify external messages into internal events and convert agent output back into replies for the corresponding channel. The key is idempotency and deduplication: the same message may be delivered repeatedly, and the same operation may be triggered multiple times. The system must avoid duplicate execution through event identifiers and state versions.

    Storage-compute separation is the foundation of continuous online operation. Session state, task state, context snapshots, and cache indexes are stored in an independent state store, while execution environments are started on demand and discarded after use. In this way, device offline does not cause task loss, and execution crashes can recover from the latest snapshot. Caching reduces repeated context reads and routing decision overhead, but invalidation policies must be designed to prevent stale state from contaminating new tasks.

    The external watchdog is the final safeguard. It is independent of the main event loop and detects stuck sessions or execution units through heartbeats, timeout detection, and task state inspection, triggering retries, compensation, or human intervention. The watchdog is placed externally so that monitoring does not fail at the same time as the main loop.

    The following pseudo-code illustrates the main event-processing flow. It is conceptual only and does not represent any implementation interface:

    1. on_event(event):
    2. if event_already_processed(event.id): return
    3. state = state_store.read(event.session_id)
    4. decision = scheduler.route(event, state)
    5. if decision.mode == "direct":
    6. result = execution_plane.execute(decision.action)
    7. else:
    8. batch_queue.enqueue(decision)
    9. state_store.save(state_snapshot)
    10. watchdog.send_heartbeat(event.session_id)

    4. Scheduling and Caching: Direct Path, Batching, and Cost Tradeoffs

    To handle multiple tasks at the same time, the scheduler must answer two questions: which events can be executed immediately through a direct path, and which should enter a batch queue; which contexts can be read directly from cache, and which must be reassembled.

    The value of the direct path is reducing unnecessary routing decisions and cache reads. For events with clear intent, complete context, and low risk, entering the execution plane directly can reduce end-to-end latency. Public preliminary experiments mention that removing subscription-based direct paths increases the number of routing decisions and also raises token consumption for cache reads. This shows that the direct path is not only a performance optimization but also a cost-control measure.

    The value of batching is absorbing bursts. When a large number of events arrive at the same time, performing model inference or routing decisions one by one can cause resource jitter. The scheduler can merge similar decisions into batches, amortize the inference overhead of a single call, and reduce the average inference time per decision. However, batching introduces queueing delay, so tasks should be layered by priority, deadline, and interaction type: strongly interactive tasks use the direct path, while background inspection and batch repair use batching.

    Caching must distinguish between read cache and state cache. Read cache reduces repeated context fetching, and state cache reduces repeated session reconstruction. The key to cache design is versioning: each state change generates a new version, and the cache key includes the session identifier and version number to avoid reading stale snapshots. Long-term memory shared across tasks requires stricter write permissions and auditing; temporary task context should be reclaimed promptly after the task completes.

    It is important to recognize that this type of architecture trades more token consumption for time and stability. Direct paths and caching save overhead, and batching absorbs bursts, but parallel advancement, proactive inspection, and failure recovery all add computation and state-maintenance costs. Engineering teams should evaluate end-to-end completion latency, task success rate, token cost per task, human intervention rate, and duplicate execution rate on the same dashboard, rather than looking only at single-response speed.

    5. Evaluation Methods and Boundaries: Preliminary Feasibility Is Not a Product Conclusion

    Experiments in public materials are usually based on synthetic workloads and simplified environments. Their value is validating the feasibility of system-level ownership of session scheduling, not providing formal product conclusions. Evaluation should focus on three categories of metrics.

    The first is multi-task completion efficiency: when multiple tasks run in parallel, whether end-to-end completion time is more stable, whether long-tail tasks are reduced, and whether context crosstalk occurs between tasks. The second is scheduling and caching overhead: the number of routing decisions, cache-read token volume, amortized inference time per decision after batching, and queue waiting time. The third is recovery capability: after tool timeouts, execution crashes, and duplicate message delivery, whether tasks can continue from snapshots and whether the duplicate execution rate remains controllable.

    These metrics involve tradeoffs. More aggressive direct paths can reduce latency but may increase misrouting risk. Larger batches can improve throughput but lengthen waits for interactive tasks. More frequent proactive inspection can find problems earlier but increases token consumption and noise. Therefore, experimental conclusions should be stated as “under specific workloads and simplified environments, system-level ownership of session scheduling is feasible,” rather than directly inferred as an online product capability.

    6. Engineering Implementation Recommendations

    First, define the state model. Layer session state, task state, long-term memory, and temporary context, and clarify read/write permissions and lifecycles. Without a clear state model, continuity and parallelism degrade into context confusion.

    Second, turn all external inputs into events and enforce idempotency. Event identifiers, deduplication tables, and state versions are all indispensable. Proactive behavior especially requires rate limits, permission limits, and auditability to prevent the agent from repeatedly operating without supervision.

    Third, decouple the control plane from the execution plane. Start execution environments on demand and persist state to independent storage. Deploy the watchdog independently to monitor heartbeats, timeouts, and queue backlog. Set compensation actions for critical tasks, such as requeueing, rolling back drafts, or issuing human confirmation.

    Fourth, start scheduling policies conservatively. First enable the direct path for low-risk events with clear intent, and enable batching for background tasks. Start with read-only caching, then gradually introduce state snapshot caching. All policies should support gradual rollout and rollback.

    Fifth, establish observability. Record event traces, routing decisions, cache hits, execution time, token consumption, and recovery counts. Only by quantifying both cost and stability can teams judge whether a super agent truly frees human attention from session switching.

    Overall, the key innovation of super agents is not single-point model capability but system-level ownership of session management and context synchronization: using a two-layer architecture to isolate control and execution, event-driven design to support asynchronous multi-task operation, multi-channel adaptation to unify entry points, storage-compute separation to ensure continuous online operation, and an external watchdog to achieve self-recovery. This path has shown feasibility in preliminary experiments, but it still needs continuous validation under real workloads, permission security, and cost constraints. For developers, the more valuable lesson is the architectural abstraction: design an agent as an online system that needs scheduling, caching, monitoring, and recovery, rather than as a longer chat session.