Super Agent Architecture: Enabling Continuously Online, Parallel Multi-Task Processing

    As single-task AI agents mature, the operational bottleneck shifts from execution to attention management. This article explores the "Super Agent" architecture, designed to stay continuously online and process multiple tasks in parallel. By borrowing classical operating system concepts—such as separating control and execution planes, event-driven processing, and externalized state management—this architecture solves common issues like synchronous blocking and context contamination. We also discuss implementation details, experimental metrics, trade-offs between latency, stability, and cost, and practical steps for deployment.

    1. Background: The Bottleneck Shifts from Execution to Attention

    Over the past couple of years, single-task agents like coding assistants and automated testing agents have matured. Models can now call tools to modify code, troubleshoot issues, and organize documentation, shifting the human role from an executor to a decision-maker and reviewer.

    However, this shift exposes a new bottleneck. Most existing agents operate based on a single session, typically tracking only one task line. If users want to advance multiple tasks simultaneously, they must switch between sessions and manually remember the context of each. Common issues include:

    • Synchronous blocking: When a long task runs, the same session cannot accept new instructions.
    • Context contamination: Multiple tasks share a history record, leading to irrelevant information interfering with each other, causing the model to reference incorrect content.
    • Offline termination: If the environment disconnects, the task is interrupted, and recovery requires manual re-description of the background.

    Therefore, the problem is not a lack of individual model capability, but rather that the session organization method cannot support continuous, multi-line parallel work.

    2. What is a Super Agent?

    A Super Agent refers to a continuously online agent form. Its goal is to make the user feel like they are always interacting with the same agent, rather than managing many isolated sessions. Generally, such a system should possess the following characteristics:

    1. Continuity: Users can interact directly in familiar interfaces like IM groups or code review areas, and the agent can remember the progress of the same task across channels.
    2. Parallelism: Multiple tasks advance simultaneously with isolated contexts; the waiting of one task does not block others.
    3. Proactiveness: The agent can listen to events—such as group chat messages, repository commits, or build failures—and proactively initiate processing at the right time, rather than just passively waiting for instructions.
    4. Recoverability: After a process, device, or network failure, the system can resume from the latest checkpoint without the user needing to re-explain the background.

    These four characteristics point to one conclusion: the core of a Super Agent is system engineering, rather than simply improving the model’s reasoning capabilities.

    3. Borrowing Design Principles from Operating Systems

    Operating systems have been solving “multi-tasking, resource sharing, and fault isolation” problems for years. The design of a Super Agent can borrow several classic ideas from them.

    3.1 Dual-Layer Architecture: Separating Control and Execution Planes

    The control plane is responsible for task registration, scheduling, routing, and state recording, without directly executing time-consuming operations. The execution plane handles model invocations, tool executions, and result write-backs. The two layers communicate through clear interfaces. Even if the control plane is briefly busy, it will not lose overall responsiveness due to a stuck tool call.

    3.2 Event-Driven: Shifting from Polling to Reactive

    The system should not have the agent repeatedly asking, “Are there any new tasks?” A more reasonable approach is to abstract messages, comments, code merge requests, and build results into events, put them into a queue, and then have the scheduler dispatch them to corresponding tasks. This way, the agent only consumes computing resources when there are actual events, bringing idle costs close to zero.

    3.3 Asynchronous Multi-Channel Interaction

    Different channels have varied input and output formats. The system should unify messages from all channels into an internal event structure at the entry point, and write back results in the channel-specific format at the exit point. The internal logic only processes the unified structure, meaning new channels only require adding an adapter layer.

    3.4 Disaggregated Compute and Storage: Externalized State

    Session state—including task goals, historical decisions, intermediate artifacts, and checkpoints—should be saved in independent persistent storage. Compute nodes should be as stateless as possible, allowing them to be replaced or migrated at any time. This design directly supports recoverability: after a node failure, a new node only needs to read the latest checkpoint to resume work.

    3.5 External Watchdog: Independent Monitoring

    The watchdog is a monitoring component running independently of the agent process. It periodically checks the heartbeat signals of each execution unit, executes restarts or rollbacks upon detecting timeouts, and logs event records. The key is that the watchdog itself must be deployed independently; otherwise, if the agent crashes, the monitoring will fail alongside it.

    4. Illustrative Implementation: Event Loop, Batch Processing, and Watchdog

    The code below is only to illustrate the concept and does not correspond to any specific product interface. Actual implementations need to be adjusted according to the framework and infrastructure used.

    Here is an example of the event loop. The scheduler takes out events in batches, reads the context in bulk to make routing decisions, and finally saves checkpoints and dispatches:

    1. # Illustrative: Process events in batches and make routing decisions
    2. def route_loop(queue, model, store, batch_size=8):
    3. while True:
    4. events = queue.take_batch(batch_size)
    5. if not events:
    6. continue
    7. contexts = [store.load_context(e.task_id) for e in events]
    8. decisions = model.route_batch(events, contexts)
    9. for event, decision in zip(events, decisions):
    10. store.save_checkpoint(event.task_id, decision)
    11. dispatch(decision)

    Here is an example of the watchdog. It checks the heartbeats of execution units and recovers timed-out units from the latest checkpoint:

    1. # Illustrative: Timeout detection and recovery from checkpoint
    2. def watchdog(agents, store, timeout_s=30):
    3. for agent in agents:
    4. if now() - agent.last_heartbeat > timeout_s:
    5. checkpoint = store.latest_checkpoint(agent.task_id)
    6. agent.restart(from_checkpoint=checkpoint)

    These two snippets highlight three key points: batch processing amortizes the fixed overhead of a single call, checkpoints ensure state recoverability, and the watchdog is decoupled from the execution units.

    5. Key Metrics and Experimental Reference

    A team once published a set of preliminary experiments on a Super Agent. The workload was synthetic data, and the environment was simplified. The results are for reference only and do not represent formal product performance. The main figures are as follows:

    • Half of the tasks completed in about 12.4 minutes, and 95% completed in about 15.7 minutes. Compared to solutions that use sub-agent tools but still share a single session, the completion time was significantly shorter.
    • After removing the subscription direct path, the number of routing decisions increased by about 30%, and read cache tokens increased from about 23.23 million to 31.77 million.
    • With batch processing at the routing layer, the inference time for a single decision dropped from about 6.4 seconds to 1.6 seconds.

    This data illustrates two things. First, system-level unified session scheduling does improve the speed and stability of multi-task completion. Second, this improvement requires consuming more tokens. The direct path reduces unnecessary model calls, while batch processing reduces queuing delays under burst loads. Both trade resources for time, and the design needs a clear trade-off strategy.

    6. Trade-offs: Time, Stability, and Cost

    When implementing a Super Agent, it is recommended to evaluate the solution from at least the following three dimensions:

    • Latency: Batch processing improves throughput but increases the waiting time for individual events. For scenarios requiring high real-time performance, upper limits for batch size and waiting windows need to be set.
    • Stability: More frequent checkpoints mean faster recovery, but also higher storage write and I/O overhead. The granularity of checkpoints should match the single-step execution time of the task.
    • Cost: The more parallel tasks, the higher the token consumption for model calls and cache reads. A budget limit should be set for each task, and abnormal growth should be monitored.

    There is no universally optimal configuration. The criteria should come from business goals: if the task value is high and the cost of failure is severe, higher costs can be accepted for stability; if tasks are simple and massive, controlling token consumption should be the priority.

    7. Implementation Suggestions

    To introduce a Super Agent in actual projects, you can proceed in the following order:

    1. First, categorize task types, distinguishing which tasks are suitable for parallel execution and which must be serial.
    2. Establish a unified event model to convert inputs from various channels into an internal structure.
    3. Migrate session state to persistent storage to ensure compute nodes are stateless.
    4. Deploy an independent watchdog for execution units and set reasonable timeout thresholds.
    5. Before going live, test with near-real-world loads, focusing on tail latency, recovery time, and token usage.

    A Super Agent does not replace developers; rather, it hands off repetitive session management and fault handling to the system, allowing humans to focus on goal setting and result verification.