@alexeiled/claude-router 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "router",
3
3
  "displayName": "Router",
4
- "version": "1.13.0",
4
+ "version": "1.14.0",
5
5
  "description": "Model and effort routing for the main conversation by task difficulty and activity, advised by a prompt classifier (Jev, Clef, Clef Flash, OpenAI or local Ollama). Subagents get one model at spawn: every agent that does not pin one.",
6
6
  "author": {
7
7
  "name": "Alexei Ledenev",
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.14.0 (2026-10-14)
4
+
5
+ Subagents now show which model each agent ran on, who picked it, and for which period. See [Understand usage and estimates](docs/user-guide.md#understand-usage-and-estimates).
6
+
7
+ ### Changed
8
+
9
+ - **SUBAGENTS** on the Usage tab follows the period row instead of summing every session since the last reset, and says its scope: `this session`, or `all projects` and the dates. Each agent is a square colored by the model it ran on, filled when the router moved it off Claude Code's pick. The routed types and the pass-throughs are one row each with agents, cost and the difference against Claude Code's pick, so a row no longer wraps; a row opens to its models. Each pass-through says why Claude Code picked the model.
10
+ - The band in a subagent's transcript names the agent's model and who picked it: `■ Haiku 5.5 · moved down by the router · Claude Code: Opus 5.5`, or `□ Opus 5.5 · Claude Code’s pick: the workflow sets it`.
11
+ - The Usage tab's scope line says `all projects` instead of `all sessions`: the records cover every project that uses this router install.
12
+ - Subagent records are kept by day and by model, version 2 under the same `subagents:v1:<session id>` keys. Records from before this version have no date or model: Session and All add them as one line.
13
+
14
+ ### Added
15
+
16
+ - **SUBAGENTS** on the Now tab, once this session started a subagent: how many run now, the squares, and what routing saved on them.
17
+
3
18
  ## 1.13.0 (2026-10-13)
4
19
 
5
20
  The Now tab shows this session and today instead of the last 30 replies, a window that matched no session, hour or day. See [Open the router pane](docs/user-guide.md#open-the-router-pane).
@@ -131,7 +131,7 @@ A subagent's model is chosen once, in the `agent.spawn` hook, before its cache e
131
131
 
132
132
  `spawnAgent` in `hooks/native-router.mjs` passes the spawn through unchanged for a fork, a workflow agent (before the explicit check, since a workflow `agent({ model })` has `e.model` set), an explicit `e.model`, or a teammate (`passReason` in `lib/subagents.mjs`). Then `typeRoute` decides. A `subagents.types` entry wins; a key without a colon matches only the engine's built-in of that name. An unlisted built-in passes (`unlisted`), since its definition is not on disk. Any other agent is routed by its definition. `agentDefinition` finds the file once per provider and type in a session; a read that fails is tried again at the next spawn of the type. A plugin agent's `provider.plugin` is `plugin@marketplace`, the key of `<profile>/plugins/installed_plugins.json`, whose `installPath` entries hold `agents/*.md`. Other agents are looked up under the session's `.claude/agents`, then `<profile>/agents`. `agentFrontmatter` reads `name`, `model` and `modelRouting` from YAML or a one-line JSON object. No model, `inherit`, or `modelRouting: auto` is routed; any other model passes (`pinned`); a file not found, unreadable, or matches that disagree pass (`unknown`). A routed agent's type uses its models key, or for `classify` the active classifier is asked with the description and prompt alone, clipped to `context.maxTextChars`, with no history and no tool results. The answer maps to `subagents.heavy` when `P(high) ≥ heavyMass`, to `light` for an `explore` activity above `activityMass` or tier `micro`, else to `standard`. The spawn path has its own classifier client per classifier: its own failure count and pause, and no in-flight slot, so parallel spawns each get an answer and spawn failures never pause main-turn routing. Its deadline is the classifier's, capped at 3 seconds. That bounds how long a subagent waits to start. No advice, a missing key, a model `availableModels` blocks, or settings that cannot be read keep core's model. The router sends the configured full id, never an alias, because a family alias resolves to the parent's exact model when the families match. A `.catch` runs `next(e)`, so a failing hook spawns the agent as Claude Code would. Routing off (`/router off`, `/model`) or unavailable passes every spawn through and records nothing.
133
133
 
134
- Every spawn in `on` gets a record keyed by `agentId`, from `next(e)`'s answer. Its replies are priced in `turn.step` (`addAgentReply`), on the model they ran on and on core's model as `coreModelOf` estimates it (the definition's own model, else `CLAUDE_CODE_SUBAGENT_MODEL` except for Explore and Plan without `CLAUDE_CODE_SUBAGENT_MODEL_FORCE`, else `parentModel`). Cache writes are priced at the subagent lifetime (`subagentCacheTtl`). The record's counts go to this session's `$.store` key `subagents:v1:<session id>` at each of the agent's `turn.complete`s, and at session end for agents still running. They are counted per type and per pass-through reason, with respawns: a spawn of the type its parent loop finished one of in the last 10 minutes. The records follow the usage records: one writer per key, the readout `subagentStore` in the view is the sum, and the same reset marker applies. **Delete history** clears them too.
134
+ Every spawn in `on` gets a record keyed by `agentId`, from `next(e)`'s answer. Its replies are priced in `turn.step` (`addAgentReply`), on the model they ran on and on core's model as `coreModelOf` estimates it (the definition's own model, else `CLAUDE_CODE_SUBAGENT_MODEL` except for Explore and Plan without `CLAUDE_CODE_SUBAGENT_MODEL_FORCE`, else `parentModel`). Cache writes are priced at the subagent lifetime (`subagentCacheTtl`). The spawn record also keeps `move` (`moveOf`): `up` or `down` when the routed model's output price is above or below core's, `moved` when either has no price, null for the same model. The record's counts go to this session's `$.store` key `subagents:v1:<session id>` at each of the agent's `turn.complete`s, and at session end for agents still running. Since 1.14.0 the value is version 2, by local calendar day like the usage records, and days past 400 leave it when it is written: per day, per type and per pass-through reason, the agents, requests, priced requests, respawns (a spawn of the type its parent loop finished one of in the last 10 minutes) and classifier failures, and per model id the agents ran on, the agents, the agents moved, up and down, the routed cost and core's. An agent counts on the day of its first flush; its later requests and cost on the day of each flush. A version 1 value has no days or models: it reads as `undated` agents and cost, which only the Session and All periods add. The records follow the usage records: one writer per key, the view's `subagentStore` is every session's sum and `subagentSession` this session's, and the same reset marker applies. **Delete history** clears them too. The view's `subagentsRunning` counts the agents with a record between a spawn or a step and their turn's end; it is in memory, so a reload starts it over. The band in a subagent's transcript reads the agent's record from memory too.
135
135
 
136
136
  ## Classifier deadline and failure handling
137
137
 
@@ -136,27 +136,28 @@ Limits:
136
136
 
137
137
  ## Subagent routing
138
138
 
139
- Subagent routing has no measured result over time yet. It is `on` by default since 1.9. The Usage tab's **SUBAGENTS** section shows the counts kept across sessions since the last reset:
139
+ Subagent routing has no measured result over time yet. It is `on` by default since 1.9. The Usage tab's **SUBAGENTS** section shows the counts for the chosen period:
140
140
 
141
- - Per routed type: agents; **moved**, the agents whose decided model differs from the one they ran on; requests per agent; respawns; the choices by model; classifier failures; and `core → routed`, the list price of the agents' tokens on core's model against the decided one.
142
- - **Not routed**, the spawns that passed through, by reason (`fork`, `workflow`, `explicit`, `teammate`, `unlisted`, `pinned`, `unknown`), priced on the model they ran on. This is the share of subagent spend that routing cannot reach.
141
+ - Every agent by the model it ran on, filled when the router moved it off core's model, and what routing saved or cost on the routed agents.
142
+ - **ROUTED**, per type: agents, routed cost, and **vs CC**, the same tokens on core's model. Open, per model: the agents the router kept, moved up or moved down by output price, and their cost; requests per agent, respawns and classifier failures.
143
+ - **NOT ROUTED**, the spawns that passed through, by reason (`fork`, `workflow agent`, `explicit model`, `teammate`, `type not routed`, `pinned model`, `no definition`), priced on the model they ran on. This is the share of subagent spend that routing cannot reach.
143
144
 
144
145
  Method:
145
146
 
146
- - `routed` is the reply on the routed model and `core` the same tokens on core's model as the router estimates it: `CLAUDE_CODE_SUBAGENT_MODEL`, except for Explore and Plan without `CLAUDE_CODE_SUBAGENT_MODEL_FORCE`, else the parent's model. A subagent starts with a cold cache on one model and keeps it, so its own token counts on another model are a fair counterfactual. `ratesAt` applies Haiku 5.5's 5x rate above 100,000 prompt tokens. Explore agents often pass that, so Haiku can cost more than its base price suggests.
147
+ - The routed cost is the reply on the routed model and **vs CC** the same tokens on core's model as the router estimates it: `CLAUDE_CODE_SUBAGENT_MODEL`, except for Explore and Plan without `CLAUDE_CODE_SUBAGENT_MODEL_FORCE`, else the parent's model. A subagent starts with a cold cache on one model and keeps it, so its own token counts on another model are a fair counterfactual. `ratesAt` applies Haiku 5.5's 5x rate above 100,000 prompt tokens. Explore agents often pass that, so Haiku can cost more than its base price suggests.
147
148
  - Cache writes are priced at the subagent lifetime: five minutes unless `FORCE_PROMPT_CACHING_5M`, `CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL`, `subagentPromptCacheTtl` or `ENABLE_PROMPT_CACHING_1H` say otherwise, on a subscription too.
148
149
  - The counts cannot see quality. Two proxies stand in for it: requests per agent, and **respawns**, a spawn of the same type by the same parent within 10 minutes after one finished.
149
150
 
150
151
  Checks:
151
152
 
152
- - `test/subagents.test.mjs` covers each pass reason, the pin rule, the classify mapping, core's model estimate, the subagent lifetime, Haiku's long-context price, and the store's merge, reset and bad values. `test/hook-subagents.test.mjs` covers `on` (the routed model), a fork, an explicit model, a teammate, a workflow agent and a pinned project agent (each passes), a classifier failure (core's model), parallel spawns, a spawn-path pause that leaves main routing alone, respawns, session end, Delete history and the Usage tab.
153
+ - `test/subagents.test.mjs` covers each pass reason, the pin rule, the classify mapping, core's model estimate, the router's move, the subagent lifetime, Haiku's long-context price, and the store's days, merge, reset, bad values and records from before 1.14.0. `test/hook-subagents.test.mjs` covers `on` (the routed model), a fork, an explicit model, a teammate, a workflow agent and a pinned project agent (each passes), a classifier failure (core's model), parallel spawns, a spawn-path pause that leaves main routing alone, respawns, session end, Delete history, and the Usage and Now tabs. `test/usage-view.test.mjs` covers the block by period, an open row, a narrow pane and undated records; `test/hook-band.test.mjs` the band in a subagent's transcript.
153
154
  - `experiments/mod-router/results/agent-spawn-probe.json` records what Claude Code 2.1.296 does with a spawn's model, frontmatter and workflow agents.
154
155
  - `experiments/mod-router/results/subagent-routing-live.json` is a live `on` run on 2026-10-10 with Sonnet as the parent. Explore was sent Haiku and ran on it. general-purpose was classified `standard`. A pinned project agent and an explicit `opus` call passed through. The store counted each one.
155
156
 
156
157
  When to turn it `on`:
157
158
 
158
- - `routed` is below `core` for the routed types, by enough to matter;
159
- - the choices look right for the tasks: `light` for searches and reads, `heavy` rarely;
159
+ - **vs CC** is below zero for the routed types, by enough to matter;
160
+ - the models look right for the tasks: Haiku for searches and reads, Opus rarely;
160
161
  - **Not routed** leaves enough routable spend to bother.
161
162
 
162
163
  Keep it if requests per agent and respawns per type stay no higher than before you turned it on. Otherwise change `types` or `heavyMass`, exclude a type with `null`, or set `subagentRouting` to `off`.
@@ -29,7 +29,7 @@ Mode belongs to a Claude Code session. Clear starts a new session with routing o
29
29
 
30
30
  ## Router pane
31
31
 
32
- The status band is one line above the prompt: a tier meter, the activity, the route, a short reason, classifier support, and context and cache use. Segments drop by priority when the band is narrow: classifier support first, then context and cache, then the activity, then the reason. Hovering reveals pins, **Turn off**, and a two-row view; while routing is off, **Turn on** sits on the band itself, so the band carries one routing control at a time. A fresh session that starts with routing off because of its model shows `<model> is not a routing tier` on the band until the mode changes. The band yields to surveys. In a subagent's transcript it reads `subagent model chosen at spawn`, or `subagents keep their own model` with subagent routing off. A model change between turns raises a toast. A pin, or a step that changes only the effort, such as `medium` to `high` on the defaults, raises none. While the classifier runs, the turn's spinner says `Choosing model`. In Manual mode or when routing is unavailable, the prompt footer carries `routing off` or `routing unavailable`. The **Router** button opens the pane. The pane has five tabs, Now, Routes, Policy, Classifier, and Usage, under one line with the routing on/off pair and the classifier state. The [user guide](user-guide.md#open-the-router-pane) describes each tab.
32
+ The status band is one line above the prompt: a tier meter, the activity, the route, a short reason, classifier support, and context and cache use. Segments drop by priority when the band is narrow: classifier support first, then context and cache, then the activity, then the reason. Hovering reveals pins, **Turn off**, and a two-row view; while routing is off, **Turn on** sits on the band itself, so the band carries one routing control at a time. A fresh session that starts with routing off because of its model shows `<model> is not a routing tier` on the band until the mode changes. The band yields to surveys. In a subagent's transcript it names the agent's model and who picked it, such as `■ Haiku 5.5 · moved down by the router · Claude Code: Opus 5.5`; without a record of the agent it reads `subagent model chosen at spawn`, or `subagents keep their own model` with subagent routing off. A model change between turns raises a toast. A pin, or a step that changes only the effort, such as `medium` to `high` on the defaults, raises none. While the classifier runs, the turn's spinner says `Choosing model`. In Manual mode or when routing is unavailable, the prompt footer carries `routing off` or `routing unavailable`. The **Router** button opens the pane. The pane has five tabs, Now, Routes, Policy, Classifier, and Usage, under one line with the routing on/off pair and the classifier state. The [user guide](user-guide.md#open-the-router-pane) describes each tab.
33
33
 
34
34
  | Reading | Meaning and limits |
35
35
  | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 665 515" role="img" aria-labelledby="title desc">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 665 610" role="img" aria-labelledby="title desc">
2
2
  <title id="title">Router pane, Now tab</title>
3
- <desc id="desc">What runs next turn: tier, model and activity, with the reason and the classifier support it weighed; one pin button per tier with its support; this session since its first reply, as a strip of every reply colored by tier, with the replies per tier and per activity, the last route switch and what routing saved against your model; today across sessions; today’s first finding worth a look with a link to Routes; and context, cache and cost.</desc>
3
+ <desc id="desc">What runs next turn: tier, model and activity, with the reason and the classifier support it weighed; one pin button per tier with its support; this session since its first reply, as a strip of every reply colored by tier, with the replies per tier and per activity, the last route switch and what routing saved against your model; today across sessions; this session’s subagents as squares by model, one running, with what routing saved on them; today’s first finding worth a look with a link to Routes; and context, cache and cost.</desc>
4
4
  <style>
5
5
  text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; }
6
6
  .cap { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 12px; fill: #9a988f; }
7
7
  </style>
8
- <rect width="665" height="515" rx="8" fill="#1c1c1c"/>
9
- <rect x="10" y="10" width="645" height="495" rx="6" fill="none" stroke="#3f5f8f"/>
8
+ <rect width="665" height="610" rx="8" fill="#1c1c1c"/>
9
+ <rect x="10" y="10" width="645" height="590" rx="6" fill="none" stroke="#3f5f8f"/>
10
10
  <text x="24.0" y="34" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTING</text>
11
11
  <rect x="94.2" y="20" width="62.4" height="18" rx="4" fill="#87afff"/>
12
12
  <text x="94.2" y="34" fill="#0d1016" font-weight="700" xml:space="preserve">[ ◉ on ]</text>
@@ -124,23 +124,44 @@
124
124
  <text x="343.8" y="357" fill="#7c7c7c" xml:space="preserve"> · switch writes $0.23</text>
125
125
  <rect x="531.0" y="343" width="70.2" height="18" rx="4" fill="#2e3340"/>
126
126
  <text x="531.0" y="357" fill="#d0d0d0" xml:space="preserve">[ Usage ]</text>
127
- <text x="24.0" y="395" fill="#5fafd7" font-weight="700" xml:space="preserve">WORTH A LOOK</text>
128
- <text x="117.6" y="395" fill="#7c7c7c" xml:space="preserve"> · today</text>
129
- <text x="39.6" y="414" fill="#d7875f" font-style="italic" xml:space="preserve">coding</text>
130
- <text x="86.4" y="414" fill="#7c7c7c" xml:space="preserve"> · </text>
131
- <text x="109.8" y="414" fill="#e0708a" font-weight="700" xml:space="preserve">high</text>
132
- <text x="141.0" y="414" fill="#d0d0d0" xml:space="preserve"> carried 61% of the cost</text>
133
- <text x="328.2" y="414" fill="#7c7c7c" xml:space="preserve"> · mostly Opus 5.5 · xhigh</text>
134
- <rect x="546.6" y="400" width="78.0" height="18" rx="4" fill="#2e3340"/>
135
- <text x="546.6" y="414" fill="#d0d0d0" xml:space="preserve">[ Routes ]</text>
136
- <text x="24.0" y="452" fill="#87d787" xml:space="preserve">Context ██████░░░░░░░░░░ 40% ~402.9K / 1.00M</text>
137
- <text x="24.0" y="471" fill="#87d787" xml:space="preserve">Cache </text>
138
- <text x="94.2" y="471" fill="#87d787" xml:space="preserve">100% reused on the last reply</text>
139
- <text x="320.4" y="471" fill="#7c7c7c" xml:space="preserve"> · </text>
140
- <text x="359.4" y="471" fill="#d0d0d0" xml:space="preserve">cost $18.003 </text>
141
- <text x="460.8" y="471" fill="#7c7c7c" xml:space="preserve">by Claude </text>
142
- <rect x="546.6" y="457" width="85.8" height="18" rx="4" fill="#2e3340"/>
143
- <text x="546.6" y="471" fill="#d0d0d0" xml:space="preserve">[ details ]</text>
144
- <rect x="24.0" y="476" width="70.2" height="18" rx="4" fill="#2e3340"/>
145
- <text x="24.0" y="490" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
127
+ <text x="24.0" y="395" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS</text>
128
+ <text x="94.2" y="395" fill="#7c7c7c" xml:space="preserve"> · this session</text>
129
+ <text x="211.2" y="395" fill="#d7af5f" xml:space="preserve"> · ● 1 running</text>
130
+ <rect x="336.0" y="381" width="70.2" height="18" rx="4" fill="#2e3340"/>
131
+ <text x="336.0" y="395" fill="#d0d0d0" xml:space="preserve">[ Usage ]</text>
132
+ <text x="39.6" y="414" fill="#c3e88d" xml:space="preserve">■■</text>
133
+ <text x="55.2" y="414" fill="#c792ea" xml:space="preserve">■</text>
134
+ <text x="63.0" y="414" fill="#c792ea" xml:space="preserve">□□□</text>
135
+ <text x="102.0" y="414" fill="#c3e88d" xml:space="preserve">Haiku 5.5 2</text>
136
+ <text x="187.8" y="414" fill="#7c7c7c" xml:space="preserve"> · </text>
137
+ <text x="211.2" y="414" fill="#c792ea" xml:space="preserve">Opus 5.5 4</text>
138
+ <text x="24.0" y="433" fill="#d0d0d0" xml:space="preserve"> 6 agents</text>
139
+ <text x="102.0" y="433" fill="#7c7c7c" xml:space="preserve"> · </text>
140
+ <text x="125.4" y="433" fill="#d0d0d0" xml:space="preserve">■ 3 moved by the router</text>
141
+ <text x="304.8" y="433" fill="#7c7c7c" xml:space="preserve"> · </text>
142
+ <text x="328.2" y="433" fill="#d0d0d0" xml:space="preserve">□ 3 on Claude Code’s pick</text>
143
+ <text x="24.0" y="452" fill="#d0d0d0" xml:space="preserve"> Routing cost </text>
144
+ <text x="141.0" y="452" fill="#f0b429" xml:space="preserve">$0.08</text>
145
+ <text x="180.0" y="452" fill="#d0d0d0" xml:space="preserve"> more</text>
146
+ <text x="219.0" y="452" fill="#d0d0d0" xml:space="preserve"> (7%)</text>
147
+ <text x="258.0" y="452" fill="#7c7c7c" xml:space="preserve"> on 3 routed agents</text>
148
+ <text x="24.0" y="490" fill="#5fafd7" font-weight="700" xml:space="preserve">WORTH A LOOK</text>
149
+ <text x="117.6" y="490" fill="#7c7c7c" xml:space="preserve"> · today</text>
150
+ <text x="39.6" y="509" fill="#d7875f" font-style="italic" xml:space="preserve">coding</text>
151
+ <text x="86.4" y="509" fill="#7c7c7c" xml:space="preserve"> · </text>
152
+ <text x="109.8" y="509" fill="#e0708a" font-weight="700" xml:space="preserve">high</text>
153
+ <text x="141.0" y="509" fill="#d0d0d0" xml:space="preserve"> carried 61% of the cost</text>
154
+ <text x="328.2" y="509" fill="#7c7c7c" xml:space="preserve"> · mostly Opus 5.5 · xhigh</text>
155
+ <rect x="546.6" y="495" width="78.0" height="18" rx="4" fill="#2e3340"/>
156
+ <text x="546.6" y="509" fill="#d0d0d0" xml:space="preserve">[ Routes ]</text>
157
+ <text x="24.0" y="547" fill="#87d787" xml:space="preserve">Context ██████░░░░░░░░░░ 40% ~402.9K / 1.00M</text>
158
+ <text x="24.0" y="566" fill="#87d787" xml:space="preserve">Cache </text>
159
+ <text x="94.2" y="566" fill="#87d787" xml:space="preserve">100% reused on the last reply</text>
160
+ <text x="320.4" y="566" fill="#7c7c7c" xml:space="preserve"> · </text>
161
+ <text x="359.4" y="566" fill="#d0d0d0" xml:space="preserve">cost $18.003 </text>
162
+ <text x="460.8" y="566" fill="#7c7c7c" xml:space="preserve">by Claude </text>
163
+ <rect x="546.6" y="552" width="85.8" height="18" rx="4" fill="#2e3340"/>
164
+ <text x="546.6" y="566" fill="#d0d0d0" xml:space="preserve">[ details ]</text>
165
+ <rect x="24.0" y="571" width="70.2" height="18" rx="4" fill="#2e3340"/>
166
+ <text x="24.0" y="585" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
146
167
  </svg>
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 649 800" role="img" aria-labelledby="title desc">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 649 1104" role="img" aria-labelledby="title desc">
2
2
  <title id="title">Router pane, Usage tab, What if</title>
3
3
  <desc id="desc">This session by tier, with What if: the same tokens on Haiku 5.5, Sonnet 5.5 and Opus 5.5 alone against what routing spent.</desc>
4
4
  <style>
5
5
  text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; }
6
6
  .cap { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 12px; fill: #9a988f; }
7
7
  </style>
8
- <rect width="649" height="800" rx="8" fill="#1c1c1c"/>
9
- <rect x="10" y="10" width="629" height="780" rx="6" fill="none" stroke="#3f5f8f"/>
8
+ <rect width="649" height="1104" rx="8" fill="#1c1c1c"/>
9
+ <rect x="10" y="10" width="629" height="1084" rx="6" fill="none" stroke="#3f5f8f"/>
10
10
  <text x="24.0" y="34" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTING</text>
11
11
  <rect x="94.2" y="20" width="62.4" height="18" rx="4" fill="#87afff"/>
12
12
  <text x="94.2" y="34" fill="#0d1016" font-weight="700" xml:space="preserve">[ ◉ on ]</text>
@@ -116,13 +116,76 @@
116
116
  <text x="328.2" y="604" fill="#7c7c7c" xml:space="preserve"> · mostly Opus 5.5 · xhigh</text>
117
117
  <rect x="546.6" y="590" width="78.0" height="18" rx="4" fill="#2e3340"/>
118
118
  <text x="546.6" y="604" fill="#d0d0d0" xml:space="preserve">[ Routes ]</text>
119
- <text x="24.0" y="642" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS · across sessions</text>
120
- <text x="234.6" y="642" fill="#7c7c7c" xml:space="preserve"> subagent routing on</text>
121
- <text x="24.0" y="661" fill="#7c7c7c" xml:space="preserve"> no subagents yet</text>
122
- <text x="24.0" y="699" fill="#7c7c7c" xml:space="preserve"> API list prices · same tokens and output length · not a bill;</text>
123
- <text x="24.0" y="718" fill="#7c7c7c" xml:space="preserve"> on a Claude plan it stands for quota · answer quality not measured</text>
124
- <rect x="24.0" y="742" width="140.4" height="18" rx="4" fill="#2e3340"/>
125
- <text x="24.0" y="756" fill="#7c7c7c" xml:space="preserve">[ Delete history ]</text>
126
- <rect x="24.0" y="761" width="70.2" height="18" rx="4" fill="#2e3340"/>
127
- <text x="24.0" y="775" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
119
+ <text x="24.0" y="642" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS</text>
120
+ <text x="94.2" y="642" fill="#7c7c7c" xml:space="preserve"> · this session subagent routing on</text>
121
+ <text x="39.6" y="661" fill="#c3e88d" xml:space="preserve">■■■■■</text>
122
+ <text x="78.6" y="661" fill="#f78c6c" xml:space="preserve">■</text>
123
+ <text x="86.4" y="661" fill="#f78c6c" xml:space="preserve">□□</text>
124
+ <text x="102.0" y="661" fill="#c792ea" xml:space="preserve">■■</text>
125
+ <text x="117.6" y="661" fill="#c792ea" xml:space="preserve">□□□□□</text>
126
+ <text x="172.2" y="661" fill="#c3e88d" xml:space="preserve">Haiku 5.5 5</text>
127
+ <text x="258.0" y="661" fill="#7c7c7c" xml:space="preserve"> · </text>
128
+ <text x="281.4" y="661" fill="#f78c6c" xml:space="preserve">Sonnet 5.5 3</text>
129
+ <text x="375.0" y="661" fill="#7c7c7c" xml:space="preserve"> · </text>
130
+ <text x="398.4" y="661" fill="#c792ea" xml:space="preserve">Opus 5.5 7</text>
131
+ <text x="24.0" y="680" fill="#d0d0d0" xml:space="preserve"> 15 agents</text>
132
+ <text x="109.8" y="680" fill="#7c7c7c" xml:space="preserve"> · </text>
133
+ <text x="133.2" y="680" fill="#d0d0d0" xml:space="preserve">■ 8 moved by the router</text>
134
+ <text x="312.6" y="680" fill="#7c7c7c" xml:space="preserve"> · </text>
135
+ <text x="336.0" y="680" fill="#d0d0d0" xml:space="preserve">□ 7 on Claude Code’s pick</text>
136
+ <text x="24.0" y="699" fill="#d0d0d0" xml:space="preserve"> Routing saved </text>
137
+ <text x="148.8" y="699" fill="#6fcf97" xml:space="preserve">$0.51</text>
138
+ <text x="187.8" y="699" fill="#d0d0d0" xml:space="preserve"> (14%)</text>
139
+ <text x="234.6" y="699" fill="#7c7c7c" xml:space="preserve"> on 9 routed agents</text>
140
+ <text x="24.0" y="737" fill="#d0d0d0" font-weight="700" xml:space="preserve"> ROUTED</text>
141
+ <text x="86.4" y="737" fill="#7c7c7c" xml:space="preserve"> · the router picked the model at spawn</text>
142
+ <text x="24.0" y="756" fill="#7c7c7c" xml:space="preserve"> type agents cost vs CC</text>
143
+ <text x="39.6" y="775" fill="#d0d0d0" xml:space="preserve">▸</text>
144
+ <text x="55.2" y="775" fill="#d0d0d0" xml:space="preserve">Explore</text>
145
+ <text x="203.4" y="775" fill="#c3e88d" xml:space="preserve">■■■■</text>
146
+ <text x="297.0" y="775" fill="#d0d0d0" xml:space="preserve"> 4</text>
147
+ <text x="320.4" y="775" fill="#d0d0d0" xml:space="preserve"> $0.18</text>
148
+ <text x="390.6" y="775" fill="#6fcf97" xml:space="preserve"> −$0.72 ▼</text>
149
+ <text x="39.6" y="794" fill="#d0d0d0" xml:space="preserve">▸</text>
150
+ <text x="55.2" y="794" fill="#d0d0d0" xml:space="preserve">dev-flow:reviewer</text>
151
+ <text x="203.4" y="794" fill="#f78c6c" xml:space="preserve">□</text>
152
+ <text x="211.2" y="794" fill="#c792ea" xml:space="preserve">■■</text>
153
+ <text x="297.0" y="794" fill="#d0d0d0" xml:space="preserve"> 3</text>
154
+ <text x="320.4" y="794" fill="#d0d0d0" xml:space="preserve"> $2.50</text>
155
+ <text x="390.6" y="794" fill="#f0b429" xml:space="preserve"> +$0.77 ▲</text>
156
+ <text x="39.6" y="813" fill="#d0d0d0" xml:space="preserve">▸</text>
157
+ <text x="55.2" y="813" fill="#d0d0d0" xml:space="preserve">general-purpose</text>
158
+ <text x="203.4" y="813" fill="#c3e88d" xml:space="preserve">■</text>
159
+ <text x="211.2" y="813" fill="#f78c6c" xml:space="preserve">■</text>
160
+ <text x="297.0" y="813" fill="#d0d0d0" xml:space="preserve"> 2</text>
161
+ <text x="320.4" y="813" fill="#d0d0d0" xml:space="preserve"> $0.47</text>
162
+ <text x="390.6" y="813" fill="#6fcf97" xml:space="preserve"> −$0.56 ▼</text>
163
+ <text x="24.0" y="851" fill="#d0d0d0" font-weight="700" xml:space="preserve"> NOT ROUTED</text>
164
+ <text x="117.6" y="851" fill="#7c7c7c" xml:space="preserve"> · Claude Code picked the model</text>
165
+ <text x="39.6" y="870" fill="#d0d0d0" xml:space="preserve">▸</text>
166
+ <text x="55.2" y="870" fill="#d0d0d0" xml:space="preserve">workflow agent</text>
167
+ <text x="203.4" y="870" fill="#c792ea" xml:space="preserve">□□□□</text>
168
+ <text x="297.0" y="870" fill="#d0d0d0" xml:space="preserve"> 4</text>
169
+ <text x="320.4" y="870" fill="#d0d0d0" xml:space="preserve"> $2.00</text>
170
+ <text x="390.6" y="870" fill="#7c7c7c" xml:space="preserve"> the workflow sets it</text>
171
+ <text x="39.6" y="889" fill="#d0d0d0" xml:space="preserve">▸</text>
172
+ <text x="55.2" y="889" fill="#d0d0d0" xml:space="preserve">fork</text>
173
+ <text x="203.4" y="889" fill="#c792ea" xml:space="preserve">□</text>
174
+ <text x="297.0" y="889" fill="#d0d0d0" xml:space="preserve"> 1</text>
175
+ <text x="320.4" y="889" fill="#d0d0d0" xml:space="preserve"> $0.33</text>
176
+ <text x="390.6" y="889" fill="#7c7c7c" xml:space="preserve"> your model</text>
177
+ <text x="39.6" y="908" fill="#d0d0d0" xml:space="preserve">▸</text>
178
+ <text x="55.2" y="908" fill="#d0d0d0" xml:space="preserve">pinned model</text>
179
+ <text x="203.4" y="908" fill="#f78c6c" xml:space="preserve">□</text>
180
+ <text x="297.0" y="908" fill="#d0d0d0" xml:space="preserve"> 1</text>
181
+ <text x="320.4" y="908" fill="#d0d0d0" xml:space="preserve"> $0.12</text>
182
+ <text x="390.6" y="908" fill="#7c7c7c" xml:space="preserve"> its agent file sets it</text>
183
+ <text x="24.0" y="946" fill="#7c7c7c" xml:space="preserve"> ■ moved by the router · □ Claude Code’s pick · color: the model</text>
184
+ <text x="24.0" y="965" fill="#7c7c7c" xml:space="preserve"> vs CC: the same tokens on Claude Code’s pick, at list prices</text>
185
+ <text x="24.0" y="1003" fill="#7c7c7c" xml:space="preserve"> API list prices · same tokens and output length · not a bill;</text>
186
+ <text x="24.0" y="1022" fill="#7c7c7c" xml:space="preserve"> on a Claude plan it stands for quota · answer quality not measured</text>
187
+ <rect x="24.0" y="1046" width="140.4" height="18" rx="4" fill="#2e3340"/>
188
+ <text x="24.0" y="1060" fill="#7c7c7c" xml:space="preserve">[ Delete history ]</text>
189
+ <rect x="24.0" y="1065" width="70.2" height="18" rx="4" fill="#2e3340"/>
190
+ <text x="24.0" y="1079" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
128
191
  </svg>
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 696 781" role="img" aria-labelledby="title desc">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 696 1104" role="img" aria-labelledby="title desc">
2
2
  <title id="title">Router pane, Usage tab</title>
3
3
  <desc id="desc">The last 7 days across sessions: the period row, routing saved against each session’s own model as a ledger (your model, cheaper models, stronger models, switch cache writes, routed), the replies and tokens, the cost by activity with coding opened to its routes and cost parts, the cost by day, what is worth a look with a link to Routes, subagents, and Delete history.</desc>
4
4
  <style>
5
5
  text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; }
6
6
  .cap { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 12px; fill: #9a988f; }
7
7
  </style>
8
- <rect width="696" height="781" rx="8" fill="#1c1c1c"/>
9
- <rect x="10" y="10" width="676" height="761" rx="6" fill="none" stroke="#3f5f8f"/>
8
+ <rect width="696" height="1104" rx="8" fill="#1c1c1c"/>
9
+ <rect x="10" y="10" width="676" height="1084" rx="6" fill="none" stroke="#3f5f8f"/>
10
10
  <text x="24.0" y="34" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTING</text>
11
11
  <rect x="94.2" y="20" width="62.4" height="18" rx="4" fill="#87afff"/>
12
12
  <text x="94.2" y="34" fill="#0d1016" font-weight="700" xml:space="preserve">[ ◉ on ]</text>
@@ -38,7 +38,7 @@
38
38
  <rect x="390.6" y="77" width="54.6" height="18" rx="4" fill="#2e3340"/>
39
39
  <text x="390.6" y="91" fill="#d0d0d0" xml:space="preserve">[ All ]</text>
40
40
  <text x="453.0" y="91" fill="#7c7c7c" xml:space="preserve"> p next</text>
41
- <text x="24.0" y="110" fill="#7c7c7c" xml:space="preserve">all sessions · Oct 7 – Oct 13 · each session vs its own model</text>
41
+ <text x="24.0" y="110" fill="#7c7c7c" xml:space="preserve">all projects · Oct 7 – Oct 13 · each session vs its own model</text>
42
42
  <text x="24.0" y="148" fill="#d0d0d0" xml:space="preserve">Routing saved </text>
43
43
  <text x="133.2" y="148" fill="#6fcf97" font-weight="700" xml:space="preserve">$11.78 (43%)</text>
44
44
  <text x="226.8" y="148" fill="#d0d0d0" xml:space="preserve"> vs your model</text>
@@ -112,13 +112,79 @@
112
112
  <text x="328.2" y="585" fill="#7c7c7c" xml:space="preserve"> · mostly Opus 5.5 · xhigh</text>
113
113
  <rect x="546.6" y="571" width="78.0" height="18" rx="4" fill="#2e3340"/>
114
114
  <text x="546.6" y="585" fill="#d0d0d0" xml:space="preserve">[ Routes ]</text>
115
- <text x="24.0" y="623" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS · across sessions</text>
116
- <text x="234.6" y="623" fill="#7c7c7c" xml:space="preserve"> subagent routing on</text>
117
- <text x="24.0" y="642" fill="#7c7c7c" xml:space="preserve"> no subagents yet</text>
118
- <text x="24.0" y="680" fill="#7c7c7c" xml:space="preserve"> API list prices · same tokens and output length · not a bill;</text>
119
- <text x="24.0" y="699" fill="#7c7c7c" xml:space="preserve"> on a Claude plan it stands for quota · answer quality not measured</text>
120
- <rect x="24.0" y="723" width="140.4" height="18" rx="4" fill="#2e3340"/>
121
- <text x="24.0" y="737" fill="#7c7c7c" xml:space="preserve">[ Delete history ]</text>
122
- <rect x="24.0" y="742" width="70.2" height="18" rx="4" fill="#2e3340"/>
123
- <text x="24.0" y="756" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
115
+ <text x="24.0" y="623" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS</text>
116
+ <text x="94.2" y="623" fill="#7c7c7c" xml:space="preserve"> · all projects · Oct 7 – Oct 13 subagent routing on</text>
117
+ <text x="39.6" y="642" fill="#c3e88d" xml:space="preserve">■■■■■</text>
118
+ <text x="78.6" y="642" fill="#f78c6c" xml:space="preserve">■</text>
119
+ <text x="86.4" y="642" fill="#f78c6c" xml:space="preserve">□□</text>
120
+ <text x="102.0" y="642" fill="#c792ea" xml:space="preserve">■■</text>
121
+ <text x="117.6" y="642" fill="#c792ea" xml:space="preserve">□□□□□</text>
122
+ <text x="172.2" y="642" fill="#c3e88d" xml:space="preserve">Haiku 5.5 5</text>
123
+ <text x="258.0" y="642" fill="#7c7c7c" xml:space="preserve"> · </text>
124
+ <text x="281.4" y="642" fill="#f78c6c" xml:space="preserve">Sonnet 5.5 3</text>
125
+ <text x="375.0" y="642" fill="#7c7c7c" xml:space="preserve"> · </text>
126
+ <text x="398.4" y="642" fill="#c792ea" xml:space="preserve">Opus 5.5 7</text>
127
+ <text x="24.0" y="661" fill="#d0d0d0" xml:space="preserve"> 15 agents</text>
128
+ <text x="109.8" y="661" fill="#7c7c7c" xml:space="preserve"> · </text>
129
+ <text x="133.2" y="661" fill="#d0d0d0" xml:space="preserve">■ 8 moved by the router</text>
130
+ <text x="312.6" y="661" fill="#7c7c7c" xml:space="preserve"> · </text>
131
+ <text x="336.0" y="661" fill="#d0d0d0" xml:space="preserve">□ 7 on Claude Code’s pick</text>
132
+ <text x="24.0" y="680" fill="#d0d0d0" xml:space="preserve"> Routing saved </text>
133
+ <text x="148.8" y="680" fill="#6fcf97" xml:space="preserve">$0.51</text>
134
+ <text x="187.8" y="680" fill="#d0d0d0" xml:space="preserve"> (14%)</text>
135
+ <text x="234.6" y="680" fill="#7c7c7c" xml:space="preserve"> on 9 routed agents</text>
136
+ <text x="24.0" y="699" fill="#d0d0d0" xml:space="preserve"> per day </text>
137
+ <text x="102.0" y="699" fill="#d0d0d0" font-weight="700" xml:space="preserve">▁▂▂▃▃▅█</text>
138
+ <text x="156.6" y="699" fill="#7c7c7c" xml:space="preserve"> peak 6 on Oct 13</text>
139
+ <text x="24.0" y="737" fill="#d0d0d0" font-weight="700" xml:space="preserve"> ROUTED</text>
140
+ <text x="86.4" y="737" fill="#7c7c7c" xml:space="preserve"> · the router picked the model at spawn</text>
141
+ <text x="24.0" y="756" fill="#7c7c7c" xml:space="preserve"> type agents cost vs CC</text>
142
+ <text x="39.6" y="775" fill="#d0d0d0" xml:space="preserve">▸</text>
143
+ <text x="55.2" y="775" fill="#d0d0d0" xml:space="preserve">Explore</text>
144
+ <text x="203.4" y="775" fill="#c3e88d" xml:space="preserve">■■■■</text>
145
+ <text x="297.0" y="775" fill="#d0d0d0" xml:space="preserve"> 4</text>
146
+ <text x="320.4" y="775" fill="#d0d0d0" xml:space="preserve"> $0.18</text>
147
+ <text x="390.6" y="775" fill="#6fcf97" xml:space="preserve"> −$0.72 ▼</text>
148
+ <text x="39.6" y="794" fill="#d0d0d0" xml:space="preserve">▸</text>
149
+ <text x="55.2" y="794" fill="#d0d0d0" xml:space="preserve">dev-flow:reviewer</text>
150
+ <text x="203.4" y="794" fill="#f78c6c" xml:space="preserve">□</text>
151
+ <text x="211.2" y="794" fill="#c792ea" xml:space="preserve">■■</text>
152
+ <text x="297.0" y="794" fill="#d0d0d0" xml:space="preserve"> 3</text>
153
+ <text x="320.4" y="794" fill="#d0d0d0" xml:space="preserve"> $2.50</text>
154
+ <text x="390.6" y="794" fill="#f0b429" xml:space="preserve"> +$0.77 ▲</text>
155
+ <text x="39.6" y="813" fill="#d0d0d0" xml:space="preserve">▸</text>
156
+ <text x="55.2" y="813" fill="#d0d0d0" xml:space="preserve">general-purpose</text>
157
+ <text x="203.4" y="813" fill="#c3e88d" xml:space="preserve">■</text>
158
+ <text x="211.2" y="813" fill="#f78c6c" xml:space="preserve">■</text>
159
+ <text x="297.0" y="813" fill="#d0d0d0" xml:space="preserve"> 2</text>
160
+ <text x="320.4" y="813" fill="#d0d0d0" xml:space="preserve"> $0.47</text>
161
+ <text x="390.6" y="813" fill="#6fcf97" xml:space="preserve"> −$0.56 ▼</text>
162
+ <text x="24.0" y="851" fill="#d0d0d0" font-weight="700" xml:space="preserve"> NOT ROUTED</text>
163
+ <text x="117.6" y="851" fill="#7c7c7c" xml:space="preserve"> · Claude Code picked the model</text>
164
+ <text x="39.6" y="870" fill="#d0d0d0" xml:space="preserve">▸</text>
165
+ <text x="55.2" y="870" fill="#d0d0d0" xml:space="preserve">workflow agent</text>
166
+ <text x="203.4" y="870" fill="#c792ea" xml:space="preserve">□□□□</text>
167
+ <text x="297.0" y="870" fill="#d0d0d0" xml:space="preserve"> 4</text>
168
+ <text x="320.4" y="870" fill="#d0d0d0" xml:space="preserve"> $2.00</text>
169
+ <text x="390.6" y="870" fill="#7c7c7c" xml:space="preserve"> the workflow sets it</text>
170
+ <text x="39.6" y="889" fill="#d0d0d0" xml:space="preserve">▸</text>
171
+ <text x="55.2" y="889" fill="#d0d0d0" xml:space="preserve">fork</text>
172
+ <text x="203.4" y="889" fill="#c792ea" xml:space="preserve">□</text>
173
+ <text x="297.0" y="889" fill="#d0d0d0" xml:space="preserve"> 1</text>
174
+ <text x="320.4" y="889" fill="#d0d0d0" xml:space="preserve"> $0.33</text>
175
+ <text x="390.6" y="889" fill="#7c7c7c" xml:space="preserve"> your model</text>
176
+ <text x="39.6" y="908" fill="#d0d0d0" xml:space="preserve">▸</text>
177
+ <text x="55.2" y="908" fill="#d0d0d0" xml:space="preserve">pinned model</text>
178
+ <text x="203.4" y="908" fill="#f78c6c" xml:space="preserve">□</text>
179
+ <text x="297.0" y="908" fill="#d0d0d0" xml:space="preserve"> 1</text>
180
+ <text x="320.4" y="908" fill="#d0d0d0" xml:space="preserve"> $0.12</text>
181
+ <text x="390.6" y="908" fill="#7c7c7c" xml:space="preserve"> its agent file sets it</text>
182
+ <text x="24.0" y="946" fill="#7c7c7c" xml:space="preserve"> ■ moved by the router · □ Claude Code’s pick · color: the model</text>
183
+ <text x="24.0" y="965" fill="#7c7c7c" xml:space="preserve"> vs CC: the same tokens on Claude Code’s pick, at list prices</text>
184
+ <text x="24.0" y="1003" fill="#7c7c7c" xml:space="preserve"> API list prices · same tokens and output length · not a bill;</text>
185
+ <text x="24.0" y="1022" fill="#7c7c7c" xml:space="preserve"> on a Claude plan it stands for quota · answer quality not measured</text>
186
+ <rect x="24.0" y="1046" width="140.4" height="18" rx="4" fill="#2e3340"/>
187
+ <text x="24.0" y="1060" fill="#7c7c7c" xml:space="preserve">[ Delete history ]</text>
188
+ <rect x="24.0" y="1065" width="70.2" height="18" rx="4" fill="#2e3340"/>
189
+ <text x="24.0" y="1079" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
124
190
  </svg>
@@ -53,13 +53,15 @@ Read the first line of the picture from left to right:
53
53
  | `⚠ Jev timed out · keeping model` | The classifier failed: timed out, unreachable, rejected the key, or paused. |
54
54
  | `○ Routing off [ Turn on ] · every turn uses …` | Routing is off: Claude's model answers every turn. **Turn on** turns it back on. The footer also shows `routing off`. |
55
55
  | `✕ Routing unavailable` | Nothing routes: an old Claude Code or leftover v0.8 settings. **Fix** opens the pane. |
56
- | `○ Router · subagents keep their own model` | You are viewing a subagent's transcript. Its steps are not routed; in `on` the band reads `subagent model chosen at spawn`. |
56
+ | `○ Router · ■ Haiku 5.5 · moved down by the router` | You are viewing a subagent's transcript. The model it runs on, and who picked it; see below. |
57
57
 
58
58
  The band shows one routing control at a time. While routing is on, hover over the band for a second row: pin a tier for the next turn, **Turn off** routing, or show two rows. While routing is off, **Turn on** sits on the first line next to `Routing off` and stays at any width: a narrow band drops the explanation and the model first. On a narrow band the hover row drops `routing on`, then **2 rows**, then `pin next turn`, then the pins; it keeps **Turn off**, and **1 row** when the band shows two. The hover row needs a pointer: from the keyboard, run `/router off`, or open the pane and press `f`. The two-row band adds this session against your model, the one `/model` selects now: `session saved $1.84 (22%) vs Opus 5.5 · xhigh · 64 replies · cold-cache writes +$0.47`, or `session extra $2.48 (×5.0) vs Haiku 5.5 · high · 41 replies · stronger models +$2.31` when routing cost more. The last part names the larger of the two costs behind the result, when there is one. After a `/model` change the row shows the whole session against the new model. Before the tenth routed reply it reads `session 3 replies · too early to compare`. When the row is short, the cost part drops first, then the reply count. Router remembers that choice across sessions. When Router changes the model between turns, a toast reads `Model changed: old → new · reason`. A pin does not raise one, and neither does a change of effort alone.
59
59
 
60
60
  The band steps aside while a survey needs the space.
61
61
 
62
- Inside a turn the router checks the route again as the work changes; see [Changes during a task](#changes-during-a-task). A subagent gets at most one model, when it starts, and keeps it for every step: Haiku for exploration, Opus for clearly hard tasks, Sonnet for the rest. An agent that pins a model in its definition keeps it, unless it sets `modelRouting: auto`. The Usage tab's **SUBAGENTS** section shows what each agent type ran on and cost. See [Subagent routing](configuration.md#subagent-routing).
62
+ Inside a turn the router checks the route again as the work changes; see [Changes during a task](#changes-during-a-task). A subagent gets at most one model, when it starts, and keeps it for every step: Haiku for exploration, Opus for clearly hard tasks, Sonnet for the rest. An agent that pins a model in its definition keeps it, unless it sets `modelRouting: auto`. The Usage tab's **SUBAGENTS** section shows what each agent type ran on and cost, and the Now tab shows this session's agents. See [Subagent routing](configuration.md#subagent-routing).
63
+
64
+ In a subagent's transcript the band names the model the agent runs on and who picked it. `■ Haiku 5.5 · moved down by the router · Claude Code: Opus 5.5` means the router chose a cheaper model than Claude Code would have; `up` means a stronger one. `□ Sonnet 5.5 · the router kept Claude Code’s pick` means the router agreed. `□ Opus 5.5 · Claude Code’s pick: the workflow sets it` means the router did not route the agent, and says why. A narrow band drops the `Claude Code:` part first. The band falls back to `subagent model chosen at spawn` when the router has no record of the agent, such as after a plugin reload, and to `subagents keep their own model` with subagent routing off.
63
65
 
64
66
  ## Open the router pane
65
67
 
@@ -75,13 +77,13 @@ Run `/router` or select **Router** above the prompt. Without a UI surface, as in
75
77
 
76
78
  The top line of every tab, `ROUTING [ ◉ on ] [ ○ off ] Jev ready · 347 ms`, shows the routing mode, switches it, and says whether the classifier is ready. Press `o` or `f` while the pane has focus. **?** shows what the estimates leave out. When routing is unavailable, the top line reads `ROUTING unavailable Claude’s model is kept` with the reason under it, and offers no on or off: see [Troubleshooting](#troubleshooting).
77
79
 
78
- ![The Now tab: what runs next turn with its tier, model and activity, the reason with the classifier support it weighed and the switch cost, one pin button per tier with its support; this session as a strip of every reply colored by tier with the replies per tier and per activity, the last route switch and what routing saved; today across sessions; today's first finding worth a look; and context, cache and cost](router-pane-now.svg)
80
+ ![The Now tab: what runs next turn with its tier, model and activity, the reason with the classifier support it weighed and the switch cost, one pin button per tier with its support; this session as a strip of every reply colored by tier with the replies per tier and per activity, the last route switch and what routing saved; today across sessions; this session's subagents as squares by model with what routing saved on them; today's first finding worth a look; and context, cache and cost](router-pane-now.svg)
79
81
 
80
82
  The **Now** tab answers "what runs next turn, and why". **Next turn** names the tier, the model and effort, and, when an activity override runs, the tier's own model beside it. **Activity** names the classifier's activity as a verb, such as `coding 84%`, with the two next answers and the threshold at which an activity applies. **Why** gives the reason; under it, `Jev gave stronger tiers 88% (needs 82%) · switch ≈ $0.48` compares the classifier's support for the switch with the bar the policy set, and gives the estimated switch cost. **Pin next** has one button per tier, strongest first, with the support the classifier gave it on the last turn; `▶` marks the tier that runs now. A press forces that tier for the next turn only.
81
83
 
82
84
  **SESSION** sums this session from its first routed reply: `since 14:18 · 86 routed replies · 9 route switches`. The strip under it colors every reply since Claude Code started the session by the tier that served it; a dot marks replies routing did not serve, such as those with routing off. Each cell is one reply up to 48 cells. Past that, and on a pane too narrow for the cells, pairs of cells merge and the strip says how many replies a cell holds, so it spans all those replies on one line. After Claude Code restarts a resumed session, the strip starts again and says since when, such as `since 15:02`, while the heading still counts the whole session. The replies per tier, `■ low 41 ■ medium 12 ■ high 33`, double as the color key, and the routed replies per activity follow. **last switch** says when the route last changed and between which tiers, or between which routes when a switch stayed inside a tier, with the activity it ran for. The last line is what routing saved, or cost, against your model this session, with the switch cache writes in it; **Usage** opens the Usage tab on this session.
83
85
 
84
- **TODAY** appears once another session added to today, with the same line for every session today and its own **Usage** link. **WORTH A LOOK** shows today's first finding from the Usage tab, from 20 routed replies, with the tab that changes it. The last lines give the context gauge, the cache reuse and the cost Claude reports; **details** adds the counters and estimates in [Understand usage and estimates](#understand-usage-and-estimates).
86
+ **TODAY** appears once another session added to today, with the same line for every session today and its own **Usage** link. **SUBAGENTS** appears once this session started a subagent: how many are in the middle of a turn now (`● 1 running`; an agent that waits on its own background command is not counted until it resumes), the same squares as on the Usage tab, and what routing saved on them; **Usage** opens the Usage tab on this session. **WORTH A LOOK** shows today's first finding from the Usage tab, from 20 routed replies, with the tab that changes it. The last lines give the context gauge, the cache reuse and the cost Claude reports; **details** adds the counters and estimates in [Understand usage and estimates](#understand-usage-and-estimates).
85
87
 
86
88
  ### Save and undo changes
87
89
 
@@ -144,7 +146,7 @@ These are estimates, not a bill. They hold the tokens and the output length the
144
146
  - **Next-turn difference** compares the candidate with the current model under five-minute and one-hour cache-write scenarios. A negative number means the candidate is estimated to cost less for that request.
145
147
  - **Payback** estimates later turns to recover an initial difference under assumed future cache reads and the last observed output size. It does not guarantee savings.
146
148
 
147
- On the Usage tab, **SUBAGENTS · across sessions** shows each routed agent type, what routing cost against the model Claude Code would have used, and the spawns that passed through (see [Subagent routing](configuration.md#subagent-routing)). Plan quota is not on the pane: Claude Code shows it in `/usage`. On the Now tab, **details** adds the context and cache counters, the output of the last reply, the input per reply, and the estimates above.
149
+ On the Usage tab, **SUBAGENTS** covers the same period as the rest of the tab: this session, or every session in every project that uses this router install (`all projects`), since the last **Delete history**. Each agent is one square, colored by the model it ran on: filled (`■`) when the router moved it off the model Claude Code would have picked, hollow (`□`) when it ran on Claude Code's pick, because the router agreed or did not route it. The models and their agents follow the squares, then how many the router moved, and what routing saved or cost on the routed agents against Claude Code's picks. 7d, 30d, Month and All add the agents per day. **ROUTED** lists each agent type the router picked a model for: its squares, agents, cost, and **vs CC**, the same tokens on Claude Code's pick. A row opens to its models, each with how many agents the router kept, moved up or moved down, and to its requests per agent, respawns and classifier failures. **NOT ROUTED** lists the agents Claude Code picked a model for, by reason, with why: `the workflow sets it`, `your model` for a fork, `its agent file sets it`. A row without any priced request says `no price`. Records from before 1.14.0 have no date or model: Session and All add them as one line, and an empty Today or 7d says so. See [Subagent routing](configuration.md#subagent-routing). Plan quota is not on the pane: Claude Code shows it in `/usage`. On the Now tab, **details** adds the context and cache counters, the output of the last reply, the input per reply, and the estimates above.
148
150
 
149
151
  The router keeps no bill. Routing vs your model is an estimate at configured list prices. The pane does not include classifier charges. Claude's native `/cost` is the source for its reported API cost.
150
152
 
@@ -93,6 +93,7 @@ import {
93
93
  emptySubagentStore,
94
94
  flushedAgent,
95
95
  mergeSubagentStores,
96
+ moveOf,
96
97
  passReason,
97
98
  RESPAWN_WINDOW_MS,
98
99
  readSubagentStore,
@@ -172,6 +173,7 @@ const LEDGERS = {
172
173
  subagents: {
173
174
  prefix: SUBAGENT_PREFIX,
174
175
  field: 'subagentStore',
176
+ ownField: 'subagentSession',
175
177
  read: readSubagentStore,
176
178
  afterReset: subagentsAfterReset,
177
179
  merge: mergeSubagentStores,
@@ -231,8 +233,8 @@ function createRouter(options) {
231
233
  // first request goes out on that route, unless it was pressed again meanwhile.
232
234
  pinPresses: 0,
233
235
  turnPins: new Map(),
234
- // Each spawned agent's record by agentId (spawnRecord), and when each parent loop last finished an agent of a type,
235
- // for respawns.
236
+ // Each spawned agent's record by agentId (spawnRecord, `running` between its steps and its turn's end), and when
237
+ // each parent loop last finished an agent of a type, for respawns.
236
238
  agents: new Map(),
237
239
  finished: new Map(),
238
240
  // Each agent type's definition frontmatter by provider and type, read once per session (agentDefinition).
@@ -1192,17 +1194,27 @@ async function noteSpawn($, router, { cfg, e, pass, decision, routed, result, de
1192
1194
  definition,
1193
1195
  })
1194
1196
  : result.model;
1197
+ const routedModel = decision?.model ?? result.model;
1195
1198
  const record = spawnRecord({
1196
1199
  sessionId: await $.session.id(),
1197
1200
  spawn: e,
1198
1201
  pass,
1199
1202
  choice: decision?.choice ?? null,
1200
- routedModel: decision?.model ?? result.model,
1203
+ routedModel,
1201
1204
  coreModel,
1205
+ move: routed ? moveOf(cfg, routedModel, coreModel) : null,
1202
1206
  failed: decision?.failed,
1203
1207
  respawn: Number.isFinite(finishedAt) && Date.now() - finishedAt < RESPAWN_WINDOW_MS,
1204
1208
  });
1205
- router.agents.set(result.agentId, { ...record, parentKey });
1209
+ router.agents.set(result.agentId, { ...record, parentKey, running: true });
1210
+ await showRunning($, router);
1211
+ }
1212
+
1213
+ // How many of the agents with a record are between their start or a step and their turn's end, in the view when it
1214
+ // changes. An agent spawned with routing off has no record and is not counted.
1215
+ async function showRunning($, router) {
1216
+ const running = [...router.agents.values()].filter((agent) => agent.running).length;
1217
+ if ((router.view?.subagentsRunning ?? 0) !== running) await updateView($, router, { subagentsRunning: running });
1206
1218
  }
1207
1219
 
1208
1220
  // A subagent's prompt-cache lifetime, by Claude Code's rule for requests outside the main conversation.
@@ -1224,7 +1236,9 @@ async function* stepAgent($, router, e, next) {
1224
1236
  try {
1225
1237
  const ttl = await subagentTtlOf($);
1226
1238
  const agent = router.agents.get(e.agentId);
1227
- if (agent) router.agents.set(e.agentId, addAgentReply(router.config, agent, response.usage, ttl));
1239
+ if (agent)
1240
+ router.agents.set(e.agentId, { ...addAgentReply(router.config, agent, response.usage, ttl), running: true });
1241
+ if (agent && !agent.running) await showRunning($, router);
1228
1242
  } catch {}
1229
1243
  }
1230
1244
  return response;
@@ -1235,7 +1249,8 @@ async function finishAgent($, router, agentId) {
1235
1249
  const agent = router.agents.get(agentId);
1236
1250
  if (!agent) return;
1237
1251
  router.finished.set(agent.parentKey, Date.now());
1238
- router.agents.set(agentId, flushedAgent(agent));
1252
+ router.agents.set(agentId, { ...flushedAgent(agent), running: false });
1253
+ await showRunning($, router).catch(() => {});
1239
1254
  await flushSubagents($, router, [agent]);
1240
1255
  }
1241
1256
 
@@ -1797,7 +1812,11 @@ export function register(on, options) {
1797
1812
  router.config,
1798
1813
  view,
1799
1814
  usage,
1800
- { columns: e.props.bodyColumns, agentId: e.props.view?.agentId },
1815
+ {
1816
+ columns: e.props.bodyColumns,
1817
+ agentId: e.props.view?.agentId,
1818
+ agent: router.agents.get(e.props.view?.agentId) ?? null,
1819
+ },
1801
1820
  {
1802
1821
  open: () => openPane($, router),
1803
1822
  mode: (mode) => changeMode($, router, mode),