The Engineering Logic Behind an AI Coding Tool Reaching 1 Million Daily Active Users

    This article breaks down what a jump to roughly 1.54 million daily active users and about 92 trillion daily tokens means for engineering teams. It covers how to define and document activity and token metrics, a four-layer architecture that scales access, scheduling, inference, and extension execution independently, cost-control techniques such as context budgets and prefix caching, plugin ecosystem governance, and token-oriented SLOs. Readers will find configuration examples, a context-budget function, and a practical checklist for keeping response quality and cost predictable when users and throughput spike at the same time.

    1. What a One-Month Jump to a Million DAU Actually Signals

    An AI coding tool recently published its first set of operating numbers: counting only users who call the official API, it recorded roughly 1.54 million daily active users and about 92 trillion tokens consumed per day. Roughly a month earlier, its seven-day average of daily active users was only 271,000, and within two weeks it crossed both 429,000 and 1.54 million. Over the same period, third-party plugins grew to about 35,000, and around 60% of active users had installed or built at least one plugin.

    Setting the specific product aside, three trend lines matter to an engineering team, and all of them are rising steeply at once: user count, token throughput, and the number of extensions. They are not linearly related; they amplify each other. More users mean more requests, more requests magnify context length and the number of tool-call rounds, and more plugins push up the average token consumption per session even further. Capacity planning therefore cannot rely on “DAU × requests per user” alone. Average tokens per request has to be modeled as an independent variable.

    A rough formula that is easy to communicate (the numbers are illustrative only and are not metrics from any product):

    1. daily tokens ≈ DAU × sessions per user × rounds per session × average tokens per round
    2. 92e12 ≈ 1.54e6 × 4 × 6 × 2.5e3

    Double any one of the four factors and backend load doubles. That is why “users grow 5x, compute grows by more than 10x” is the norm rather than an anomaly.

    2. Define the Metrics First: Making DAU and Token Counts Credible

    Once growth figures are made public, the definitions behind them become a matter of technical credibility. At minimum, three things need to be fixed in advance:

    • Activity definition: whether it means “issued at least one valid request” or a “seven-day deduplicated average.” During rapid growth the two can differ by several times, so the choice must be stated explicitly.
    • Deduplication subject: deduplicating by account, by organization, or by API key produces entirely different conclusions. For enterprise scenarios, report both account and organization dimensions.
    • Token attribution: whether input, output, cache hits, and intermediate tool-call results are counted must use the same definition in dashboards and in billing.

    The recommendation is to fix these definitions as configuration so that teams do not each maintain their own version:

    1. METRICS_SPEC = {
    2. "dau_window": "1d",
    3. "dau_dedup_key": "account_id", # alternatives: org_id / api_key
    4. "dau_smoothing": "7d_avg", # use when reporting long-term trends
    5. "token_scope": ["input", "output", "tool_result"],
    6. "cache_hit_counted": False,
    7. }

    3. Capacity and Architecture: Split the Inference Path into Independently Scalable Layers

    Under a steep traffic increase, a monolithic gateway inevitably becomes the bottleneck. A more reliable approach in the industry is to separate four layers:

    1. Access layer: handles authentication, rate limiting, quotas, and request normalization, with token buckets applied per tenant so that a single large customer cannot crowd out global resources.
    2. Scheduling layer: classifies requests into queues by context length, cache hit status, and model size. Long-context requests go to a separate queue so that long requests do not block short ones.
    3. Inference layer: scales elastically using batching and GPU memory utilization as core metrics, with prefix caching to reuse system prompts and repository context.
    4. Extension execution layer: plugins and tool calls run in isolated sandboxes with limits on filesystem access, network egress, and execution time.

    Example rate-limit configuration:

    1. rate_limit:
    2. per_account: 60r/m
    3. per_org: 600r/m
    4. burst: 1.5x
    5. long_context_queue: separate # queue >32k tokens separately
    6. on_exceed: 429_with_retry_after

    The key principle is that degradation paths must be designed in advance: when utilization on the inference layer runs high, disable non-core capabilities first (such as automated refactoring and batch completion) while keeping chat and single-file editing available, rather than going fully unavailable.

    4. Cost Structure: Engineering Predictable Token Bills

    At a scale of tens of trillions of tokens per day, cost volatility comes mainly from three sources: context bloat, failed retries, and extra calls from plugins. The levers available are:

    • Context budget: set a token ceiling per conversation round, and when it is exceeded, compress with a summary rather than truncating outright, preserving key symbols and dependency relationships.
    • Cache first: keep system prompts, project conventions, and long documents hitting the prefix cache, which can substantially cut repeated input cost.
    • Retry convergence: use exponential backoff with a maximum retry count, and do not bill or charge quota for requests the user actively cancels.
    • Cost observability: put cost metrics on the same dashboard as business metrics, with drill-down by tenant, feature, and model size.
    1. def build_context(items, budget=8000):
    2. items = sorted(items, key=lambda x: x["priority"], reverse=True)
    3. used, out = 0, []
    4. for it in items:
    5. cost = estimate_tokens(it["text"])
    6. if used + cost > budget:
    7. out.append({"type": "summary", "text": summarize(it["text"])})
    8. continue
    9. used += cost
    10. out.append(it)
    11. return out

    5. Plugin Ecosystem: From Growth in Numbers to Quality Governance

    About 35,000 extensions with 60% user participation shows the ecosystem has moved from “optional enhancement” to a “dependency on the main path.” That introduces three categories of risk: permission overreach, version incompatibility, and malicious or inefficient components dragging down the overall experience. Governance priorities:

    • Capability declarations and least privilege: plugins must explicitly declare the permissions they need, with filesystem writes and external network access denied by default.
    • Sandboxing and resource quotas: cap CPU time, memory, and output size per execution, terminating and reclaiming resources on timeout.
    • Signing and a version compatibility matrix: apply semantic versioning to interfaces, and keep a transition period for breaking changes.
    • Quality tiers: grade plugins by success rate, average latency, and crash rate, and down-weight low-scoring components in retrieval ranking.

    6. Observability and Stability: Token-Oriented SLOs

    Traditional QPS and latency metrics are not enough to describe the experience of an AI service. Add:

    • Time to first token (P50/P95) and total completion time;
    • Average rounds per session, context hit rate, and truncation rate;
    • Tool-call success rate and average retry count;
    • Unit token cost over time and per tenant.

    For alerting, use dual triggers based on both trend and threshold: watch instantaneous error rates, but also watch for slope anomalies in the seven-day daily average, so capacity can be added ahead of demand during growth phases.

    7. Implementation Checklist

    1. Unify the definitions of activity and tokens before drawing any growth conclusions;
    2. Split access, scheduling, inference, and extension execution into the four layers, each scaling independently;
    3. Give long contexts a dedicated queue and a context budget;
    4. Build a cost dashboard with tenant-level quotas and an explicit degradation order;
    5. Enforce least privilege, sandbox isolation, and quality tiers across the plugin ecosystem;
    6. Replace single-metric QPS monitoring with token-oriented SLOs, and rehearse scaling and rate-limiting drills.

    Completing these steps in the order above is what allows response quality to hold and the cost curve to stay predictable when users and throughput rise steeply at the same time.