Always-On Super-Agent Architecture: How OS Scheduling Principles Solve the Agent Bottleneck
This article breaks down the architecture of an always-on super-agent prototype designed to address the shift in AI agent bottlenecks from model capability to human attention. It explains a dual-layer design that separates control and execution planes, event-driven wakeups, asynchronous multi-channel interaction, storage-compute separation, and an external watchdog for self-healing. The article also reviews initial experimental results on task completion time, passthrough optimization, and decision batching, and outlines practical recommendations for building similar systems. Readers will gain a clear understanding of how classic operating system engineering ideas are applied to continuous, parallel, and resilient agent execution.
1. The Bottleneck Is Shifting from Model Capability to Human Attention
Recent progress in single-task agents, such as AI coding tools, has shown that models combined with tool chains can handle fairly complex engineering work. Human involvement in low-level execution has dropped noticeably, and the human role has moved up to defining goals, making design decisions, and validating results. At the same time, a new form of agent is emerging: the personal assistant that needs to stay online continuously and is triggered by events.
However, most agents today still use a single session as the basic execution unit. This creates three structural limitations:
- Synchronous blocking: while a session waits for a tool response or human confirmation, overall progress stalls;
- Context pollution: information from multiple tasks is crammed into the same context and contaminates one another;
- Offline means stopped: once the device or process hosting the session goes offline, the task stops immediately.
This leads to a natural abstraction: can an agent become a continuous entity that keeps context across sessions, runs multiple tasks in parallel without interference, and stays active over time? The industry often describes this in plain terms as an agent that is always online, can work on many things at once, proactively finds work, and recovers on its own when something goes wrong. This design approach is commonly referred to as a “super-agent” prototype. Its core is not a new model, but bringing classic engineering ideas from computer systems into the agent architecture.
2. Core Idea: Applying Operating System Scheduling Experience to the Agent Layer
The key judgment behind this approach is that once the model reduces human intervention on single tasks, the system bottleneck moves to human attention bandwidth. The architectural goal is therefore not to make the model “smarter,” but to have the underlying system take over session management and context synchronization, moving humans from “watching progress” to “making decisions and validating results.”
It is worth emphasizing that this kind of work is closer to an architectural approach and prototype validation than a mature product conclusion.
1. Dual-Layer Architecture: Separating the Control Plane from the Execution Plane
The dual-layer architecture splits the system into a decision layer and an execution layer:
- The decision layer (Router) handles task dispatch, priority decisions, batching, and passthrough optimization;
- The execution layer handles specific tool calls, context reads and writes, and state persistence.
Illustrative pseudocode:
# Control plane: only dispatch and merge, no long contextdecision = router.decide(event)if decision.mode == "passthrough":return executor.run(decision.task) # passthrough, skip one inferencebatch = router.batch(pending_events) # merge inference for burst trafficfor t in batch:executor.submit(t)
The benefit of this separation is that inference overhead is concentrated on a small number of decisions, while execution can scale out in parallel.
2. Event-Driven: From Polling to Being Woken Up
The traditional approach periodically polls task status, which wastes compute and adds latency. An event-driven model treats task state changes (tool completion, code review comments, group chat mentions, scheduled triggers) as first-class citizens. The agent consumes inference resources only after being woken by an event, which naturally supports proactively finding work.
3. Asynchronous Multi-Channel Interaction: One Entity, Multiple Entry Points
Users can interact with the same agent through different entry points, such as instant messaging group chats or review comments on a code hosting platform. From the user’s perspective, there is always only one agent, with no need to worry about whether a piece of information exists in a particular session. This requires:
- a unified identity and a unified context view;
- normalizing messages from each channel into internal events;
- routing replies back to the original channel to maintain conversational continuity.
4. Storage-Compute Separation: Decoupling Context from Computation
Session state and context caches are placed in a separate storage layer, while compute nodes are made stateless and can be scaled or migrated at any time. Tasks are not interrupted when a device goes offline, and execution resumes from the storage layer after recovery. This is the foundation for “recovering on its own when something goes wrong.”
5. External Watchdog: A Fallback for Fault Self-Healing
Borrowing from system monitoring practices, a separate process monitors the heartbeat of execution nodes and task timeouts. On anomalies, it triggers rescheduling, retries, or rollbacks, preventing a single stuck point from dragging down overall throughput.
3. Experimental Observations and Data Interpretation
In initial experiments, a prototype based on this approach performed as follows under synthetic workloads and a simplified environment:
- About half of the tasks completed within 12.4 minutes, and 95% of tasks completed within 15.7 minutes, clearly outperforming a single-session approach with sub-agent tools;
- After removing subscription passthrough, the number of decisions increased by about 30%, and cached read tokens rose from 23.23 million to 31.77 million;
- After introducing decision batching, the inference time amortized per decision dropped from 6.4 seconds to 1.6 seconds.
This set of data shows that having the system layer take over session scheduling is feasible: passthrough saves overhead, batching absorbs bursts, and multi-task completion is faster and more stable. However, its boundary must be noted: it trades more tokens for time and stability, and the experimental conditions were simplified, so the results cannot be directly extrapolated into production conclusions.
4. Implementation Recommendations
To apply this approach in your own system, it is recommended to prioritize three things: a unified event bus, stateless compute with external state storage, and an independent watchdog. You can combine container platforms for elastic scaling, use a message queue to carry events, and use object storage or log services to persist context and audit trails, while closing the loop on anomalies through monitoring and alerting. Baidu AI Cloud offers corresponding product categories for these general capabilities to choose from.
