# Mira Runs 52 Models Behind One Chat Window. The Router Is the Product. *Token telemetry from Telegram's Mira reveals something the "GPT wrapper" era got backwards: the model isn't the interesting part. The policy is.* --- ## Cold open There's a number in Mira's public OpenRouter telemetry that should stop you mid-scroll. **Claude Opus 5.5 — a frontier reasoning model — accounts for roughly half of one percent of Mira's top-10 token volume.** Meanwhile `MiniMax M3.1 Flash` is swallowing **~558 billion tokens a month.** Eighty percent of the leaderboard. Alone. If you read that as "Mira users prefer cheap models," you've misread the data completely. And that misreading is exactly the mistake most teams make when they architect agent systems. Let me show you what the numbers actually say. --- > **Epistemics box — read this first.** > Everything below splits into two tiers, and I'll keep them separate: > **[OBS]** = publicly observable (OpenRouter app telemetry, Mira's own docs/blog, TOP's launch statements). > **[INF]** = my engineering inference about what a system exhibiting those observables *must* be doing internally. > I don't have Mira's source. I'm reverse-reasoning from public surface area. Where I'm guessing, I say so. That's the whole point of doing this in public. --- ## 1. The leaderboard is not a popularity contest. It's a labor map. **[OBS]** Snapshot of Mira's top models by monthly token consumption on OpenRouter (rolling window — check the live page, it moves): | # | Model | Provider | Tokens | |---|-------|----------|--------| | 1 | MiniMax M3.1 Flash | minimax | ~558B | | 2 | Jev 1.14 | typesafe | ~43B | | 3 | Qwen3.7 Flash | qwen | ~42.3B | | 4 | GLM 5.3 | z-ai | ~13.5B | | 5 | DeepSeek V4.1 Flash | deepseek | ~10B | | 6 | DeepSeek V4.1 Flash `1017` | deepseek | ~8.14B | | 7 | DeepSeek V4 Flash `0423` | deepseek | ~5.99B | | 8 | Qwen3.7 Plus | qwen | ~5.1B | | 9 | Claude Opus 5.5 | anthropic | ~3.82B | | 10 | Gemini 3.1 Flash Lite | google | ~3.47B | **[OBS]** Total model count on the app: **52**. Now do the arithmetic nobody bothers to do. Top-10 sum ≈ **693B tokens**. - "Flash"-class models (MiniMax + Qwen Flash + all three DeepSeek Flash variants + Gemini Flash Lite): **~628B → ~91%** - Frontier reasoning (Opus 5.5): **~0.55%** - DeepSeek family combined: **~24B → ~3.5%**, spread across *three separate pinned snapshots* **[OBS]** And here's the tension that makes this worth writing about: Mira's own documentation describes normal-mode chat as running on OpenAI's GPT models. Yet GPT doesn't appear anywhere in the token top-10. Contradiction? No. **You're measuring the wrong thing.** **[INF]** Tokens measure *work*, not *conversations*. A single user-visible reply might be 300 tokens. The machinery that produced it — group-chat triage, memory consolidation, retrieval reranking, tool-plan drafting, summarization of a 4,000-message thread — might burn 80,000 tokens that the user never sees. So the leaderboard isn't ranking chat models. **It's ranking the invisible labor.** USER-VISIBLE SURFACE BACKGROUND LABOR ──────────────────── ──────────────── ~few % of tokens ~90%+ of tokens frontier / GPT-class Flash-class latency-tolerant throughput-optimized quality-critical cost-critical "the answer" "the work that makes the answer possible" **Design consequence:** if you budget your LLM spend by counting *user messages*, you will be off by an order of magnitude. Budget by **token lanes**, not by conversations. --- ## 2. Three pinned DeepSeek snapshots are a confession Look at rows 5, 6, 7 again: DeepSeek V4.1 Flash ← rolling alias
DeepSeek V4.1 Flash 1017 ← pinned snapshot
DeepSeek V4 Flash 0423 ← older pinned snapshot
**[OBS]** Mira is simultaneously routing to a floating alias *and* two dated snapshots of the same family. **[INF]** That is not sloppiness. That is a team that has been burned by silent provider updates and now runs **version pinning with canary lanes**. The alias gets shadow traffic; the pinned snapshot serves production; the older pin is a rollback target that hasn't been decommissioned yet. This is dependency management. Applied to cognition. Which means the abstraction you actually need isn't a `model` string in your config. It's a **model lockfile**:
yaml
model.lock — treat cognition like a supply chain
routes:
summarization.bulk:
primary: minimax/m3.1-flash@2026-10-17 # pinned
canary: minimax/m3.1-flash # alias, 2% shadow
rollback: minimax/m3.1-flash@2026-08-02
promote_if: eval.summarization.faithfulness >= 0.94
block_if: p95_latency_ms > 1800
reasoning.escalation:
primary: anthropic/claude-opus-5.5
gate: difficulty_score >= 0.7 OR cheap_attempt_failed
budget_share: 0.04 # hard cap on spend fraction
**The rule:** an unpinned model alias in production is an unversioned dependency that your vendor can rewrite overnight without telling you. You would never ship `npm install some-lib@latest` to prod. Stop doing it with your reasoner. --- ## 3. Telegram is not a UI. It's a transport with opinions. This is the part every "I built a Telegram AI bot in 20 minutes" tutorial skips, and it's where messenger-native architecture gets genuinely hard. **[OBS]** Documented Bot API constraints (verify current values — they change): | Constraint | Approximate limit | Architectural consequence | |---|---|---| | Message length | 4,096 chars | Long outputs must be **chunked or paginated**, not streamed as one blob | | Bulk send rate | ~30 msg/sec | Global fan-out ceiling → you need a **scheduler**, not a loop | | Per-chat rate | ~1 msg/sec | Token streaming via `editMessageText` is **rate-limited**, not free | | Group rate | ~20 msg/min | Group agents must **batch and debounce**, or get throttled into silence | | Inline mode | fast answer expected | Inline queries need a **separate low-latency lane** | **[INF]** Read that table as a set of forcing functions: 1. **You cannot stream tokens naively.** The obvious UX — edit the message as tokens arrive — collides with per-chat rate limits. So you buffer into semantic chunks and edit on a timer, not on every token. 2. **Group chats demand a triage model.** At 20 msg/min, an agent in a busy group *cannot* respond to everything. Something cheap must decide "is this addressed to me / worth acting on?" for every message. **That is a plausible identity for the 558B-token MiniMax lane.** 3. **Inline mode is a different product.** Inline means someone typing `@mira ...` mid-conversation and expecting instant results. You cannot route that through a frontier reasoner. Separate lane, separate SLA. **Constraints aren't obstacles here. They're the reason the architecture is good.** A web chat UI lets you be lazy about latency. Telegram doesn't. --- ## 4. Routing is a control problem, and its worst failure is silent The naive mental model:
plaintext
input → model → output
The real shape:
plaintext
┌──────────────────────────────┐
input ──────► │ triage: addressed? actionable?│ cheap, high-throughput
└──────────────┬───────────────┘
▼
┌──────────────────────────────┐
│ difficulty + risk estimation │
└──────────────┬───────────────┘
┌───────────┼───────────┐
▼ ▼ ▼
flash lane plus lane frontier lane
│ │ │
└─────┬─────┴───────────┘
▼
┌──────────────────────────────┐
│ verifier / confidence gate │──fail──► escalate ▲
└──────────────┬───────────────┘
▼
response
Here's the failure mode that should keep you up at night, and it has a name worth adopting: > **Silent Downgrade** — the router misclassifies a hard query as easy, the cheap model returns something fluent and wrong, no exception is thrown, no metric turns red, and the user trusts it. A 500 error is honest. A confident hallucination from a mis-routed flash model is not. **Your router's failure mode is a quality regression disguised as a success.** **[INF]** The only structural defense is *cheap-first, verify, escalate* — spend a few tokens checking the answer rather than trusting the routing decision:
ts
async function answer(q: Query, ctx: ScopedContext) {
const difficulty = estimateDifficulty(q); // cheap classifier
const lane = difficulty < 0.7 ? FLASH : FRONTIER;
const draft = await route(lane).generate(q, ctx);
// The gate is the product. Routing without verification is a coin flip.
const check = await route(FLASH).verify({
question: q,
answer: draft,
rubric: ["grounded_in_context", "no_unsupported_claims", "complete"],
});
if (!check.pass && lane === FLASH) {
metrics.increment("silent_downgrade.caught"); // ← the metric that matters
return escalate(q, ctx, { reason: check.failures });
}
return draft;
}
Note the metric name. `silent_downgrade.caught` is the single most informative number in a multi-model system, and almost nobody instruments it. If it's climbing, your difficulty estimator has drifted — probably because a provider quietly updated an alias. See §2. **Bonus [OBS]:** `Jev 1.14` from `typesafe` sitting at **#2** — above Qwen, above GLM, above DeepSeek — is a tell. A model from outside the household-name labs holding the second slot suggests routing decisions are driven by **measured price/performance on their own evals**, not by brand prestige. That's maturity. --- ## 5. Memory: the hard part isn't remembering. It's governing. **[OBS]** Mira maintains persistent context across weeks, operates in group chats, and its "Connect" layer pulls live data from calendars, inboxes, and productivity tools on top of that memory substrate. Everyone nods at "persistent memory." Almost nobody confronts the two problems that make it dangerous. ### Problem A: Context Bleed You discuss a confidential acquisition in a private group. Two days later, in a DM, the agent helpfully references it — to someone who wasn't in that group. **Nothing was hacked.** The memory system did exactly what it was designed to do: recall relevant context. The bug is that *relevance* and *authorization* are different axes, and a vector store only indexes one of them. **Memory must be scoped at write time and filtered at read time. Non-negotiable.**
ts
type MemoryScope =
| { kind: "dm"; userId: string }
| { kind: "group"; chatId: string; memberSnapshot: string[] };
// Retrieval is an ACL operation FIRST, a similarity operation SECOND.
function recall(query: string, actor: Actor, scopes: MemoryScope[]) {
const readable = scopes.filter(s =>
s.kind === "dm"
? s.userId === actor.userId
: s.chatId && actor.isCurrentMemberOf(s.chatId) // re-check, don't trust cache
);
return vectorSearch(query, { filter: { scope: { $in: readable } }, k: 12 });
}
If your retrieval layer can't express that filter, you don't have a memory system. You have a leak with a search bar. ### Problem B: Memory Poisoning Retrieved memory enters the prompt as *trusted context*. But memory was written from **untrusted input** — chat messages, web pages, tool outputs. So an attacker in a group chat writes something crafted. Weeks later it gets retrieved into a privileged DM session where the agent has tool access. The payload didn't attack the model. **It waited in the database until the model came to it.** This is second-order prompt injection with a time delay, and persistent memory is precisely what makes it possible. **Mitigation [INF]:** memories must carry provenance and be typed. `observed_fact` is retrievable as data. `instruction_like_text` from a non-owner source is either quarantined or rendered inert — never promoted into the system frame.
plaintext
memory := { content, scope, source_trust, type, asserted_at, expires_at }
▲
facts expire. "the deadline is Friday"
is not true forever.
That last field is the one everyone forgets. A memory system without **temporal invalidation** slowly becomes a confident liar. --- ## 6. 1,000 tools do not fit in a context window. Do the math. **[OBS]** Mira advertises integrations in the hundreds-to-1,000+ range (Notion, GitHub, calendars, inboxes, TON wallet tracking, and more). **[INF]** Now the arithmetic that kills naive tool-calling:
plaintext
1,000 tools × ~250 tokens per JSON schema ≈ 250,000 tokens
Per request. Before the user says anything. You have not just a cost problem — you have a **needle-in-a-haystack attention problem**, because tool selection accuracy degrades as the schema list grows. So a 1,000-tool agent *cannot* be doing flat schema injection. It must be doing some combination of: 1. **Tool retrieval** — embed tool descriptions, retrieve top-k by intent. RAG, but the corpus is your API surface. 2. **Hierarchical namespaces** — `github.issues.create` means you load the `github` namespace, then the `issues` sub-namespace. Progressive disclosure. 3. **Lazy schema loading** — ship names + one-line summaries; fetch the full schema only after selection. And then the part that separates demos from systems: **write actions are distributed transactions.** An agent that creates a GitHub issue, posts a Slack summary, and updates a Notion page can fail on step 3. Now what? You need: - **Idempotency keys** — because retries are inevitable and duplicate issues are user-visible - **Compensation / saga logic** — because there's no `ROLLBACK` across three SaaS APIs - **Dry-run + confirmation gates** — irreversible actions get a human checkpoint - **Scoped OAuth** — the agent's blast radius should be a policy decision, not an accident **Read-only agents are easy. Write-capable agents are distributed systems engineering wearing a chat interface.** --- ## 7. Private Mode, honestly: you are buying verifiability with capability **[OBS]** Mira's Private Mode routes away from commercial APIs to **Cocoon**, a decentralized GPU network tied to Telegram/TON. Requests execute inside a **Trusted Execution Environment**; the stated model is **Qwen3-32B**, open-weight; nothing is retained. This is a genuinely interesting design, and it deserves a rigorous teardown rather than applause. **What a TEE actually gives you:** - Hardware-level confidentiality: the host/node operator can't read the payload - **Attestation**: cryptographic evidence about *what code and model* are running **What it does not give you:** - **Attestation is worthless if nobody verifies it.** If the client doesn't check the measurement against an expected hash, you have expensive theater. - **You still trust the silicon vendor's root of trust.** TEE shifts trust; it doesn't eliminate it. - **Side channels remain an active research area.** "Isolated" is a strong claim, not a theorem. - **The output is still the output.** A TEE protects your prompt from the operator. It does not protect you from the model putting sensitive content into its response. - **"Nothing stored" is a claim about the enclave** — not about transport metadata, client-side history, or Telegram's own message storage. Your chat is still a chat. And the tradeoff nobody states plainly: > **Private Mode runs a 32B open-weight model instead of a frontier reasoner. You are consciously purchasing verifiability with capability.** That's not a criticism — it's the *correct* trade for a confidential payload, and naming it honestly is more useful than pretending privacy is free. The generalizable pattern:
plaintext
general work → commercial routing (max capability, contractual privacy)
sensitive work → attested TEE + open weights (verifiable privacy, bounded capability)
**Privacy as an architectural property, not a paragraph in a policy page.** For anyone building in regulated domains, this two-lane split is the single most transferable idea in Mira's design. --- ## 8. The economics: half a percent of your tokens can be a third of your bill Let's make the cost consequence of §1 concrete. **Illustrative arithmetic — assumed price ratio, not Mira's actual pricing.** Suppose frontier tokens cost **100×** flash tokens: | Lane | Token share | Relative price | Cost contribution | |---|---|---|---| | Flash-class | 90.6% | 1× | 0.906 | | Frontier (Opus) | 0.55% | 100× | 0.550 | | Everything else | ~8.9% | ~5× | 0.445 | Frontier share of spend ≈ `0.550 / 1.901` ≈ **29%**. **Half of one percent of token volume. Roughly a third of the bill.** Two conclusions, and they pull in opposite directions: 1. **Escalation must be budget-governed**, not just quality-governed. A difficulty estimator that drifts 2% toward "hard" doesn't cost you 2% more. It costs you a lot more. 2. **The cheap lane is where volume optimization pays.** Shaving 20% off summarization tokens beats shaving 20% off frontier calls, because that's where 90% of the mass lives. Which is why `budget_share: 0.04` in the lockfile isn't a nicety. It's a **circuit breaker on your reasoning spend.** --- ## 9. What to steal Concrete, opinionated, in priority order: - [ ] **Split your lanes by work type, not by user request.** Background labor is your real token budget. Instrument it separately. - [ ] **Pin your models. Shadow-test aliases. Gate promotion on evals.** A model is a dependency; give it a lockfile and CI. - [ ] **Instrument `silent_downgrade.caught`.** Router quality regressions don't throw exceptions. This metric is your smoke detector. - [ ] **Verify cheap answers before trusting cheap routing.** The gate is the product. - [ ] **Scope memory at write time; enforce ACL at read time.** Similarity search is not authorization. - [ ] **Type and timestamp every memory.** Facts expire. Untrusted text never gets promoted to instructions. - [ ] **Retrieve tools; don't enumerate them.** 1,000 schemas is a quarter-million tokens of noise. - [ ] **Treat write-capable tool chains as sagas.** Idempotency keys, compensation, confirmation gates. - [ ] **Verify TEE attestation client-side, or don't claim TEE privacy.** - [ ] **Cap escalation spend explicitly.** 0.5% of tokens can be 30% of cost. - [ ] **Respect the transport.** Telegram's rate limits are a design input, not an error to retry through. --- ## The thesis Mira's models are rented. Every one of them is available to you, today, at the same price. MiniMax, Qwen, DeepSeek, Claude, Gemini — none of it is proprietary. **So what's actually defensible?** The routing policy. The memory governance. The eval harness that knows when a cheap answer is good enough. The version discipline that survives a provider's silent update. The verification gate that catches a downgrade before a user does. That's the moat, and it's made of **policy, not weights.** Which reframes the entire "GPT wrapper" discourse. The wrapper critique was always aimed at the wrong layer. A thin UI over one model is a wrapper. **A cost-governed, eval-gated, memory-scoped, attestation-verified dispatcher over 52 models is infrastructure** — and the chat window is just the least interesting thing about it. The model is a commodity. **The router is the product.** --- **Your turn:** if you run multi-model routing in production — what's your escalation gate? Confidence score, LLM-as-verifier, or a trained difficulty classifier? And has anyone actually caught a provider silently degrading a pinned alias? I want the war story. --- ### Sources & live data - Mira's public model telemetry: `openrouter.ai/apps/mira` *(rolling window — the numbers above are a snapshot)* - Mira docs & blog: `mira.tg` - Telegram Bot API limits: `core.telegram.org/bots/faq` *(verify current values)* *Disclosure: independent analysis of public data. Not affiliated with Mira or The Open Platform. Architectural internals are inferred and labeled as such.* Author: Seyed Alireza Alhosseini Almodarresieh