Super-Agent Architecture: Running Multiple Agent Tasks in Parallel

    This article explains super-agent architecture, a design for running multiple AI agent tasks in parallel. It covers the limits of single-session agents, four core design goals (continuity, parallelism, proactivity, and resilience), five core modules including the Router-Worker split, event-driven design, and an external watchdog, along with prototype results and practical steps for building a similar system.

    1. Background: The Ceiling of Single-Session Agents

    Over the past year, single-task agents, such as intelligent coding tools, have shown that large models can solve complex problems on their own by calling tools. Humans need to intervene less and less, and their role has shifted from step-by-step operation to decision-making and review.

    But as agents move from completing one task to acting as always-on assistants, existing architectures show clear bottlenecks:

    • Session silos: Most agents use a single session as the basic unit. Context is fragmented across tasks, so users must remember which session holds which piece of information.
    • Synchronous blocking: A session can only handle one thing at a time. While waiting, the user cannot issue new instructions in parallel.
    • Passive response: Agents act only when mentioned or asked. They do not proactively find work to do.
    • Fragility: If a device goes offline or a process fails, the task is interrupted, and the system has no self-recovery.

    The core problem is that models now need fewer human interventions for a single task, so the bottleneck has shifted to human attention. No one can monitor ten sessions at once. To raise the agent’s capability ceiling above the limit of human attention, the system architecture itself must be redesigned.

    2. What Is a Super-Agent?

    A super-agent is, in simple terms, an agent that stays online all the time, handles multiple tasks at once, looks for work proactively, and recovers on its own when something goes wrong. It has four core design goals:

    1. Continuity: Users interact with it through familiar interfaces, such as instant messaging or code review pages. It feels like one persistent agent, and users do not need to think about session boundaries.
    2. Parallelism: Multiple tasks progress at the same time without interfering with each other. Context is strictly isolated between tasks but can be linked when necessary.
    3. Proactivity: It continuously monitors event streams, such as public group chat messages or code repository changes. Without being assigned, it identifies problems and starts handling them, for example by automatically submitting a fix after finding a defect.
    4. Resilience: With an external supervision mechanism, task state is not lost when a process crashes or a device goes offline. Tasks can resume automatically.

    This approach does not invent a new algorithm. Instead, it brings classic computer systems ideas, including scheduling, caching, separation of compute and storage, and watchdogs, into agent architecture. It is essentially a systems engineering problem rather than a model capability problem.

    3. Five Core Modules

    3.1 Two-Layer Architecture: Separating Router and Worker

    The system has two layers. The upper layer, the Router, receives all events and decides whether to handle them and which worker should handle them. The lower layer, the Worker, carries out the reasoning and tool calls for specific tasks.

    The Router has two key optimizations:

    • Subscription Passthrough: For subscribed event sources, messages that match a rule are routed directly to the corresponding task, skipping model-based judgment and significantly reducing overhead. Experimental data shows that without passthrough, the number of decisions the Router must make rises by about 30%, and cache-read token consumption increases from about 23.23 million to 31.77 million. This shows that passthrough filters out many unnecessary inferences at a very low rule-based cost.
    • Decision batching: Events that arrive within a short window are merged into one batch and sent to the model for routing in a single pass. This reduces the inference time per decision from 6.4 seconds to 1.6 seconds. The idea matches interrupt coalescing in operating systems and batch writes in databases: accept a slight delay in exchange for higher throughput.

    3.2 Event-Driven Design: From Request-Response to Subscribe-Trigger

    Traditional agents use synchronous request-response. A super-agent treats every external stimulus as an event. New messages, new comments, timer expirations, and task status changes all enter a unified event queue. The agent’s main loop becomes: take an event, make a routing decision, dispatch execution, and write back state. This closely matches the Reactor pattern used in high-performance servers.

    The direct benefit of event-driven design is proactivity. The agent can keep watching public channels and identify, without being mentioned, that a defect needs fixing. It can then start a fix workflow on its own.

    3.3 Asynchronous Multi-Channel Interaction

    Users may interact with an agent through group chat, private chat, and code review pages at the same time. The architecture decouples channels from tasks. The same task can receive background information in a group chat and submit results in a code review. Users perceive one continuous entity through any channel, rather than a set of unrelated session instances.

    3.4 Separating Compute and Storage: Context Is State, Not Memory

    Session context is no longer bound to the memory of the execution process. It is persisted in external storage, and workers load it on demand. This brings three benefits:

    • If a worker crashes, its context is preserved, and the task can resume on another machine.
    • When multiple tasks run in parallel, each task’s context is stored and retrieved independently, which avoids interference.
    • Long-running tasks, which may span days or weeks, can accumulate context over time without being limited by the length of a single session.

    In practice, full history can be stored in object storage, and hot context can be kept in a cache layer. This matches the separation of compute and storage common in cloud-native applications.

    3.5 External Watchdog

    The watchdog is a supervisor that runs independently of the agent process. It periodically checks task heartbeats and worker health. When it detects a hang, a crash, or resource exhaustion, it restarts or migrates the task.

    The watchdog must run outside the agent process. Self-healing logic inside a process stops when that process dies. This is a basic principle of distributed system design.

    4. What the Experimental Data Shows

    A prototype built on this architecture achieved initial results under synthetic workloads. Half of the tasks finished within 12.4 minutes, and 95% finished within 15.7 minutes. This clearly outperformed a control approach that used a single session with sub-agent tool calls.

    The results should be read with caution:

    • The benefits are real: Multiple tasks finish faster and more reliably. The Router saves overhead through passthrough and absorbs traffic bursts through batching. The feasibility of handling session scheduling at the system layer has been validated.
    • The costs are real too: The design trades more tokens for time and stability. Parallel execution, proactive monitoring, and redundant recovery all increase inference consumption.
    • The conclusions are still preliminary: The experiments used synthetic workloads and simplified environments. They serve only as a reference for the architectural direction and cannot be directly extrapolated to production conclusions.

    5. Practical Implementation Guide

    Teams that want to build similar capabilities can follow this path:

    1. Externalize state first: Move session context from process memory to persistent storage. This is a prerequisite for parallelism and fault tolerance.
    2. Introduce an event bus: Use a general-purpose message queue service to carry the event stream and connect various channels in a unified way.
    3. Build a lightweight Router: Start with rules and a small model for routing, then gradually add batching and passthrough optimizations.
    4. Add a watchdog and monitoring alerts: Use the health checks of your container platform and a general-purpose monitoring and alerting service to build a minimum viable self-healing loop.
    5. Measure costs: Continuously track token consumption per task and end-to-end latency to avoid parallelizing for its own sake.

    6. Conclusion

    The main lesson of super-agent architecture is that once models are strong enough, the competitive focus of agent applications shifts from whether the model can do the task to whether the system can manage it well. Classic system ideas such as scheduling, caching, separation of compute and storage, and watchdogs have been in use for decades, and they are finding new relevance in the agent era. For developers, it is more useful to strengthen system architecture skills than to wait for a stronger model.