The Engineering Logic Behind an AI Agent Framework Reaching 1 Million Daily Active Users
This article breaks down the engineering pressure revealed by an AI agent runtime framework reaching 1.54 million daily active users and roughly 92 trillion daily tokens. It explains why a single-session model cannot scale, then walks through the core design choices that make large-scale, multi-task agents viable: a two-layer control and execution plane split, event-driven state machines, asynchronous multi-channel interaction, storage-compute separation, and an external watchdog. A practical engineering checklist covers quotas, sandboxing, observability, gradual rollout, and human acceptance workflows.
1. Reading the Numbers: The Real Engineering Pressure Behind a Million DAU
An AI agent runtime framework from a Chinese large-model vendor disclosed its operating data for the first time. Measured by official API call users, it reached 1.54 million daily active users and consumed roughly 92 trillion tokens per day. About a month earlier, the 7-day average of the same metric was only 271,000; it climbed to 429,000 in early October, a net gain of more than a million within a month. Over the same period, third-party plugins grew to roughly 35,000, and about 60% of active users had installed or created at least one plugin. The team is also preparing a support program for plugin authors.
For developers, the value of these numbers is not the growth story but the load profile it exposes. Traditional conversational applications follow a short-lived “request-response” concurrency model, whereas an agent framework carries long-lived, state-heavy, and complex fan-out workloads. Three shifts stand out:
- Context expansion: A single task may span dozens of tool calls, and context length plus cache-hit strategy directly determine the cost curve. Daily token consumption at the 92-trillion level means inference throughput and cache reuse must be pushed to the limit.
- Long-tail uncertainty from plugins: 35,000 third-party plugins make the input space nearly impossible to enumerate. Sandbox isolation, least-privilege permissions, and timeout circuit-breaking become mandatory rather than optional optimizations.
- A changing user base: With 60% of users actively extending capabilities, the platform has shifted from “consuming model capability” to “ecosystem collaboration,” raising the importance of version compatibility and gradual rollout strategies.
2. The Core Constraint: Why a Single-Session Model Cannot Scale
Better model capabilities have driven a surge of personal-assistant applications, yet mainstream agent designs still bind an agent to a single manual session. As a result, the real ceiling on concurrent tasks is human attention: tasks do not advance unless the user starts them, and they queue serially unless the user switches between them.
Breaking this limit requires turning an agent from a “function inside a session” into a “continuous entity that survives across sessions,” one that can advance multiple complex tasks simultaneously without interference. The industry abstracts this form and its system architecture as a Super-agent. Its technical challenges fall into four areas:
- State ownership: Context belongs to the user and the task, not to a particular connection.
- Scheduling fairness: Under concurrency, long tasks must not starve short ones.
- Fault isolation: A single task or plugin crash must not affect the whole system.
- Verifiability: Humans need to move up from execution details to decision-making and acceptance.
3. Key Design Breakdown
1. Two-Layer Architecture: Separating the Control Plane from the Execution Plane
The control plane handles identity, quotas, task orchestration, and state metadata; the execution plane handles inference calls, tool execution, and streaming output. The two layers communicate through explicit contracts. The control plane can scale and release independently, while the execution plane scales horizontally with load.
Control plane (scheduling/quota/metadata) <--contract--> Execution plane (inference/tools/streaming)| |Task state store Plugin sandbox pool
2. Event-Driven: Replacing “Polling and Waiting” with “State Transitions”
Tasks are modeled as state machines (pending, running, waiting on external input, awaiting acceptance, terminated), and every step emits an event that is persisted. The benefits are low recovery cost, replayability, and easy auditing. After a process restart, work resumes from the event log rather than depending on any single long-lived connection staying alive.
3. Asynchronous Multi-Channel Interaction: Decoupling Human and Machine Rhythms
Conversation, files, callbacks, and notifications are abstracted into a unified message channel that the agent consumes by priority. Tasks keep running while the user is offline, and when the user returns they verify results through summaries and diff views instead of being forced to reread the entire process.
4. Storage-Compute Separation: Trading Externalized State for Elasticity
Session context, vector indexes, and task artifacts are stored separately in general-purpose services (such as object storage, log services, message queues, caches, and container platforms), leaving compute nodes stateless. This yields two direct benefits: nodes can be replaced at any time, and the cache and retrieval layers can scale independently to support high token throughput.
5. External Watchdog: A Fallback, Not a Dependency
The watchdog runs independently of the execution plane and handles timeout termination, resource-limit reclamation, infinite-loop detection, and alerting. It must not share the same fault domain as the process it monitors; otherwise “the monitor goes down with the monitored” is one of the most common architectural failures.
4. Engineering Implementation Checklist
- Quotas and cost: Set token and duration budgets at three levels (user, task, plugin), degrading to summary mode when limits are exceeded.
- Sandbox and permissions: Plugins have no network access and no file-write permission by default; access is requested on demand and can be revoked.
- Observability: Use the task ID to thread together tracing, logs, and metrics, focusing on time-to-first-token, task completion rate, and plugin failure rate.
- Gradual rollout and compatibility: The plugin ecosystem needs version declarations and capability negotiation to prevent old plugins from silently failing on a new runtime.
- Acceptance experience: Produce a structured acceptance report (what was done, which files changed, remaining risks) to keep human review costs manageable.
5. Conclusion
The curve from 271,000 to 1.54 million DAU is essentially a validation of an architectural paradigm: only when an agent is unbound from a single session and becomes a continuous entity that survives across sessions does scale growth gain an engineering foundation. The takeaway for developers is clear: build the three foundations of externalized state, event-driven design, and fault isolation first, then move on to the plugin ecosystem and multi-task parallelism. Publishing the approach and letting more people validate it is also an effective way to accelerate technical convergence.
