Always-On Super Agent Architecture: From Single Sessions to Continuous Execution
This article breaks down the architecture of an always-on Super Agent, a continuous execution model that keeps context across sessions, runs multiple tasks in parallel, and recovers from failures. It explains the structural limits of session-based agents, defines the core capabilities of the Super Agent, and presents a five-layer reference architecture covering decision-execution separation, event-driven triggering, asynchronous multi-channel interaction, storage-compute separation, and an external watchdog. It also covers Router optimizations such as subscription fast-path dispatch and batching, along with early experimental observations, trade-offs, and practical implementation recommendations.
1. Background: The Bottleneck Is Shifting From Model Capability to Human Attention
Over the past period, single-task agents such as AI coding tools have shown that a model combined with tool calls can independently complete fairly complex engineering tasks. The frequency of human intervention in low-level execution keeps dropping, and the human role is moving up to goal definition, solution selection, and result acceptance. At the same time, new forms that need to stay online for a long time and are triggered by events, such as personal assistants, are starting to emerge.
However, most agents today still use a single session as the unit of execution, which creates three structural limits:
- Parallelism is constrained by attention: a session advances only one task line at a time. Multitasking depends on people switching back and forth, and the switching cost falls on the human.
- Synchronous blocking: tool calls, retrieval, builds, and tests are often long-running operations. Waiting synchronously stalls the entire task line.
- Context confusion and stopping when a device goes offline: when multiple tasks share one context, they contaminate each other; the running entity is bound to a terminal device, so going offline means interruption.
As a result, the industry is starting to explore a new direction: bringing classic ideas from computer system design—scheduling, caching, storage-compute separation, and watchdogs—into the agent architecture layer to build an always-on Super Agent: a continuous entity that keeps context across sessions, advances multiple tasks in parallel without interference, and stays running.
2. Defining the Super Agent
It can be defined by four plain-language characteristics:
- Always online: the running entity is not bound to a specific terminal, and tasks are not lost after disconnection, going offline, or a restart.
- Doing many things at once: multiple task lines advance in parallel with isolated contexts.
- Proactively finding work: driven by events (messages, review and pipeline feedback from code hosting platforms, scheduled policies) rather than waiting for a human to start every round.
- Self-healing when something goes wrong: exceptions are caught by an external mechanism that triggers recovery, instead of letting the whole session hang.
The key point is that the output of this direction is not a specific new product, but an architectural approach—moving mechanisms proven in operating systems and distributed systems into the agent runtime.
3. A Five-Layer Reference Architecture
3.1 Two-Layer Architecture: Separating Decision From Execution
The upper layer is the human-facing interaction and decision layer, responsible for intent clarification, solution selection, and acceptance. The lower layer is the execution layer, responsible for session lifecycle, context synchronization, and tool scheduling. The two layers communicate through explicit contracts, and the upper layer does not directly manipulate lower-layer state.
┌─────────────────────────────┐│ Decision layer: intent / ││ solution / acceptance │└──────────────┬──────────────┘│ instructions + acceptance criteria┌──────────────▼──────────────┐│ Execution layer: session ││ management / context sync ││ tool scheduling / state ││ persistence / recovery │└─────────────────────────────┘
3.2 Event-Driven: From “Human-Pushed” to “Event-Pushed”
Tasks are no longer started round by round by a human. They enter as events: a message, a review comment, a pipeline failure, or a scheduled window. After an event enters a unified entry point, it is first normalized (deduplication, rate limiting, prioritization) and then delivered to the corresponding task line.
3.3 Asynchronous Multi-Channel Interaction
Long-running tool calls become asynchronous: a call returns a handle immediately, and the result is collected through a callback or polling. Multiple channels (conversation, code hosting feedback, logs and monitoring alerts) connect in parallel without blocking each other. In engineering practice, an idempotency key needs to be bound to each call to avoid duplicate side effects caused by retries.
3.4 Storage-Compute Separation
Session state, context, cache, and execution compute are decoupled: state is written to external storage (general-purpose capabilities such as object storage, message queues, and logging services), and execution nodes become stateless, so they can scale horizontally and be replaced at any time. The benefits are that a restart does not lose context and that multiple nodes share the same source of truth.
3.5 External Watchdog
The recovery logic is placed outside the running entity: an external process probes liveness periodically, and when it detects a timeout, a missing heartbeat, or an abnormal error rate, it restarts the execution node according to a policy and resumes from the persisted state. This avoids the deadlock of “an agent fixing itself.”
4. Router, Fast-Path Dispatch, and Batching
The scheduler (Router) decides which task line and which model tier handles an event. Two key optimizations:
- Subscription fast-path dispatch: under a stable subscription relationship, repeated routing decisions are skipped and the event is delivered directly, reducing the number of decisions and cache-read overhead.
- Batching: multiple decisions are combined for inference, significantly amortizing the inference latency allocated to a single decision, which helps absorb burst traffic.
Illustrative logic:
def route(event, ctx):if ctx.subscription_hit(event): # fast path: skip one decisionreturn dispatch(event, ctx.line)batch = ctx.batcher.collect(window=50ms)plan = model.decide(batch) # batching: amortize per-decision latencyreturn [dispatch(e, plan.line(e)) for e in batch]
5. Experimental Observations and Boundaries
In preliminary experiments with synthetic workloads and a simplified environment, an implementation based on this approach completed half of the tasks in about 12.4 minutes and about 95% of the tasks within 15.7 minutes, clearly outperforming the baseline of “single session + sub-agent tools.” After removing subscription fast-path dispatch, the number of routing decisions increased by about 30%, and cache-read tokens rose from about 23.23 million to about 31.77 million. With batching enabled, the inference time amortized per decision dropped from about 6.4 seconds to about 1.6 seconds.
The boundary must be emphasized: this is a trade-off of spending more tokens in exchange for time and stability, and the experimental conditions were simplified, so it can only serve as a feasibility reference and does not constitute a product conclusion.
6. Implementation Recommendations
- First make the system stateless by externalizing sessions and context, then talk about parallelism.
- Idempotency keys and deduplication must be designed up front; otherwise asynchronous retries will amplify failures.
- Deploy the watchdog and liveness probes independently of the execution nodes, and make the recovery strategy support gradual rollout.
- Look at “total cost per task” rather than the cost of a single call, and make monitoring cover three types of metrics: tokens, latency, and recovery counts.
- If using general-purpose cloud capabilities (container platforms, message queues, object storage, logging services, monitoring and alerting), prefer replaceable standard interfaces to avoid tightly coupling the architecture to a single implementation.
