@alexeiled/claude-router 1.14.0 → 1.15.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.
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +31 -0
- package/README.md +3 -0
- package/docs/architecture.md +10 -0
- package/docs/configuration.md +6 -2
- package/docs/native-router.md +1 -0
- package/docs/router-band.svg +30 -8
- package/docs/router-pane-now.svg +133 -131
- package/docs/router-pane-policy.svg +47 -43
- package/docs/routing-modes.md +139 -0
- package/docs/user-guide.md +4 -0
- package/hooks/native-router.mjs +144 -16
- package/lib/activity.mjs +8 -2
- package/lib/band.mjs +7 -1
- package/lib/config.mjs +69 -17
- package/lib/cost.mjs +3 -0
- package/lib/display.mjs +17 -2
- package/lib/modes.mjs +98 -0
- package/lib/panel.mjs +38 -3
- package/lib/route.mjs +80 -23
- package/lib/usage.mjs +31 -19
- package/package.json +2 -1
- package/types/index.d.ts +15 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "router",
|
|
3
3
|
"displayName": "Router",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.15.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,36 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.15.0 (2026-10-22)
|
|
4
|
+
|
|
5
|
+
A routing mode trades cost against answer quality without new routes: `cost`, `balanced` (the default, unchanged) or `quality`. See [Routing modes](docs/routing-modes.md).
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `cost` takes the route of the tier below when its model has a lower input price, else one effort level less; `quality` one effort level more, else the route of the tier above. `micro` turns and pins keep the configured route. `docs/routing-modes.md` lists the route of every classifier tier and activity in each mode.
|
|
10
|
+
- Choose the mode for this session with `/router mode cost|balanced|quality` (`/router mode default` clears it; a resume keeps it), for a project with `{ "mode": "cost" }` in `.claude/router.json`, or for the profile with `"mode"` in `router.json` or **Mode** on the Policy tab. A project file with any other key is ignored with a notice.
|
|
11
|
+
- `modes.cost.policy` and `modes.quality.policy` replace those `policy` fields while that mode is active. The built-in values are not tuned on this router.
|
|
12
|
+
- The band, the Now tab and `/router` show the mode and its source, such as `cost (session)`; the prompt footer names a mode other than balanced.
|
|
13
|
+
- The routing decision at the start of each turn writes one `router decision` line to Claude Code's debug log: mode, source, the classifier's tier, the tier and reason chosen, and the route. Moves later in the turn write none.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- The router keeps the route a turn ran instead of rebuilding it from `router.json`. A mode change, or a route edited mid-session, now reaches the request through the usual checks, not on the next request.
|
|
18
|
+
- A cheaper route inside the same tier on the same task now waits for `minDwellRequests` and a passed check, as a move to a cheaper tier does.
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- The switching cost of two routes that share a prompt cache (one model at two efforts, on an API key or a subscription) is now zero, as the configuration docs said. The estimate charged the new tokens of the next request as a switch cost, though either route writes them. A cheaper effort on the same model was therefore refused on any measured history. In `balanced` a tier switch between such routes, such as Opus at `medium` and at `xhigh`, now needs only the base support (`upgradeBase`, `downgradeMass`); before, the bar rose with that estimate, up to about 0.82 on a cold cache.
|
|
23
|
+
|
|
24
|
+
### Known limitations
|
|
25
|
+
|
|
26
|
+
- The Policy tab shows the base policy bars; in `cost` or `quality` the band shows the bar actually in use, such as `Jev 46% < 85%`.
|
|
27
|
+
|
|
28
|
+
### Migration
|
|
29
|
+
|
|
30
|
+
- `router.json` needs no change: without `mode` it runs `balanced`.
|
|
31
|
+
- Usage records are version 2 under the same `usage:v1:<session id>` keys, with the mode in each cell. Records from before read as `balanced`. A session of an older version reads a version 2 record as empty and never deletes it. Going back to 1.14 and resuming a session that 1.15 recorded replaces that session's record with a new one: its 1.15 days are lost.
|
|
32
|
+
- A project's `.claude/router.json` can choose the mode for anyone who runs Claude Code there, with no trust prompt. It cannot change routes, models or the classifier; keep it out of a repo you share if the choice is yours alone.
|
|
33
|
+
|
|
3
34
|
## 1.14.0 (2026-10-14)
|
|
4
35
|
|
|
5
36
|
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).
|
package/README.md
CHANGED
|
@@ -77,6 +77,8 @@ Activity routing adds a second label: what the turn produces (`code`, `debug`, `
|
|
|
77
77
|
|
|
78
78
|
`/router activities off` stops asking and keeps the base routes. [Activity routing](docs/activity-routing.md) explains each cell and how to change it. The label is optional: on `uncertain` or a weak label the base route is used if the move passes the cache check, when the activity answer fails the running activity stays and the tier answer still applies, and when the classifier fails the running route stays. See [Route by activity](docs/user-guide.md#route-by-activity), and [Evaluation](docs/evaluation.md#activity-routing) for how it is checked. Its default overrides rest on published vendor results and a list-price replay of one developer's sessions, not measured savings.
|
|
79
79
|
|
|
80
|
+
A [routing mode](docs/routing-modes.md) trades cost against answer quality without new routes: `cost` takes a cheaper model or one effort level less where a turn allows it, `quality` one effort level more or the tier above, and `balanced`, the default, runs the routes as configured. Set it per session with `/router mode cost`, per project in `.claude/router.json`, or for the profile with `"mode"` in `router.json`.
|
|
81
|
+
|
|
80
82
|
## Install
|
|
81
83
|
|
|
82
84
|
You need Claude Code 2.1.289 or newer and credentials for one [supported classifier](#supported-classifiers).
|
|
@@ -117,6 +119,7 @@ npm run check && npm run typecheck && npm test && npm run validate && npm run te
|
|
|
117
119
|
- [Configuration](docs/configuration.md): classifiers and keys, the optional profile `router.json`, defaults, and migrations.
|
|
118
120
|
- [Architecture](docs/architecture.md): Mod event flow, state, safeguards, and runtime boundaries.
|
|
119
121
|
- [Activity routing](docs/activity-routing.md): the default matrix by activity, why each cell, and how to change or turn it off.
|
|
122
|
+
- [Routing modes](docs/routing-modes.md): `cost`, `balanced` and `quality`, where the mode comes from, and every decision per mode.
|
|
120
123
|
- [Native router details](docs/native-router.md): panel semantics, tuning, and accepted limits.
|
|
121
124
|
- [Evaluation](docs/evaluation.md): historical gateway results and the native shadow replay.
|
|
122
125
|
- [Changelog](CHANGELOG.md): user-visible changes by version.
|
package/docs/architecture.md
CHANGED
|
@@ -100,6 +100,16 @@ The router decides on a _cell_: a tier and an activity. The route is `{ ...route
|
|
|
100
100
|
|
|
101
101
|
At session start the incumbent is the session's model. `cellForModel` looks for it in the base routes, baseline first, and only with `activityRouting: on` in the activity overrides too, so a session that starts on an override route keeps its cell until the classifier says otherwise. The start mode uses the same lookup: with `on`, a start model that only an override uses (Sonnet 5.5 on the defaults) starts with routing on.
|
|
102
102
|
|
|
103
|
+
## Routing modes
|
|
104
|
+
|
|
105
|
+
The routing mode (`lib/modes.mjs`) is a fixed transform of the configured routes, applied before policy. At `turn.start` the hook resolves the mode (session override in `$.store` `routing-mode:<session id>`, then the project's `.claude/router.json`, then `mode` in the profile `router.json`, then `balanced`) and stores `applyMode(router.config, mode)` as the turn's config: every tier's and activity's route as `modeRoute` gives it, and `modes[mode].policy` over `policy`. Every later read of the turn (policy, escalation, cache keys, activity order, the request) uses that one table. `modeRoute` always starts from the configured routes, so a turn never steps from a route a mode already moved. `cost` takes the route of the tier below (never below `low`) when its model has a lower input price, else one listed effort level less; `quality` one listed effort level more, else the tier above's route. `micro` and pins keep the configured route.
|
|
106
|
+
|
|
107
|
+
**Route in use.** The loop keeps the route the last decision ran (`loop.route`, models key and effort) instead of rebuilding it from config. The incumbent's price, cache key and order come from it, and a decision that stays on the incumbent's cell keeps running it. So a mode change, or a route edit, reaches the request only through a gate: a tier switch, a taken lateral move, or a pin. A loop saved before 1.15 has no `loop.route` and rebuilds it once.
|
|
108
|
+
|
|
109
|
+
**Same-tier gate.** A mode can change the route without changing the tier or the activity. `lateralMove` therefore holds a cheaper route on the same task with `downgrade-held` until `facts.downAllowed` (dwell and a passed check), as a tier downgrade does, and the downgrade tax must still be paid back.
|
|
110
|
+
|
|
111
|
+
The turn-start decision (`decideTurn`) writes `router decision {mode, modeSource, classified, tier, reason, route, pinned}` to the debug log (`$.ui.log`, `to: 'debug'`), with no prompt text, and the turn record, view and usage cells carry the mode. `experiments/mod-router/scripts/trace-eval.mjs` replays the gateway trace once per mode at tier level; it cannot replay moves inside a tier.
|
|
112
|
+
|
|
103
113
|
## State and controls
|
|
104
114
|
|
|
105
115
|
`$.state` stores route decisions, response observations, and UI state for the active session. Version-checked writes reject stale turn results. A private in-memory view merges state writes during one dispatch because state reads are frozen for that dispatch.
|
package/docs/configuration.md
CHANGED
|
@@ -41,7 +41,7 @@ The default baseline is tier `low`. Each route refers to an alias in `models`.
|
|
|
41
41
|
|
|
42
42
|
Every default route names its effort, so no default tier keeps the effort Claude Code sends. The ladder follows Anthropic's published charts. On the OSWorld 2.1 effort chart, Haiku 5.5 at `high` scored above Sonnet 5.5 at `low`, and Haiku at `xhigh` near Sonnet at `medium`, for a fraction of the cost per attempt; OSWorld measures computer use, not coding. On Terminal-Bench 4.0, FrontierCode v1.1, and CursorBench 4.0, Opus 5.5 at `medium` matched or beat Sonnet 5.5 at `xhigh` at 25 to 50% lower cost per task (chart data on anthropic.com/claude-sonnet-5-5). These are routing defaults, not a claim of equal model quality.
|
|
43
43
|
|
|
44
|
-
`micro` and `low` share a model, so a step between them changes only the effort
|
|
44
|
+
`micro` and `low` share a model, so a step between them changes only the effort, as does `medium` to `high`. The policy prices such a step as no cache write, unless effort splits the cache (see [Optional `router.json`](#optional-routerjson)).
|
|
45
45
|
|
|
46
46
|
To restore the 1.3 ladder, with Sonnet 5.5 at `low` on the session effort and Haiku 5.5 at `low` effort for `micro`:
|
|
47
47
|
|
|
@@ -248,6 +248,8 @@ The Mod validates the whole file. Unknown keys and invalid values make routing u
|
|
|
248
248
|
| `baselineTier` | `micro`, `low`, `medium`, `high` | `low` |
|
|
249
249
|
| `routes.<tier>` | `model`, optional `effort` (a level, or `null` for the session effort) | As in the route table above |
|
|
250
250
|
| `activityRouting` | `off`, `on` | `on` |
|
|
251
|
+
| `mode` | `cost`, `balanced`, `quality` ([Routing modes](routing-modes.md)) | `balanced` |
|
|
252
|
+
| `modes.<cost\|quality>.policy` | any `policy` field, used while that mode is active | [Routing modes](routing-modes.md#policy-per-mode); not tuned |
|
|
251
253
|
| `activities.<activity>.<tier>` | optional `model` and `effort`, as in `routes` | The overrides in [Activity routing](#activity-routing) |
|
|
252
254
|
| `models.<alias>` | `id`, `input`, optional `output`, `cacheRead`, optional `longContext` (`above`, `multiplier`, or `null`), `contextWindow`, `billing`, `efforts` | Three defaults above |
|
|
253
255
|
| `cache` | `writeMultiplier`, `ttlMs`, `warmMarginMs` | `5m: 1.25`, `1h: 2`; `300000` / `3600000` ms; `30000` ms |
|
|
@@ -279,7 +281,9 @@ Policy defaults:
|
|
|
279
281
|
| `reviewEveryRequests` | `4` | Requests between classifier reviews inside a turn; `0` turns them off. Not tuned. |
|
|
280
282
|
| `minDwellRequests` | `8` | Requests after a model change before a cheaper route on the same task. Not tuned. |
|
|
281
283
|
|
|
282
|
-
The pane writes a subset of these settings. The **Routes** and **Policy** tabs set `routes`, `activities`, `activityRouting`, `baselineTier`, `policy.downgradeVotes`, `policy.downgradeHorizonTurns`, `policy.cashCapUsd`, and `policy.activityMass` in one save: it writes only values that differ from the defaults and removes the rest. `/router activities <mode>` writes `activityRouting` at once, with **Undo**. The **Classifier** tab sets `classifier` and the active classifier's `timeoutMs` at once. **Undo** reverts the settings the last pane write changed. Each save validates the whole file, keeps other keys, and applies from the next turn. A failed check names the setting and leaves the file unchanged. The pane refuses to write through a symlink. Model aliases and the other settings require a direct edit.
|
|
284
|
+
The pane writes a subset of these settings. The **Routes** and **Policy** tabs set `routes`, `activities`, `activityRouting`, `baselineTier`, `policy.downgradeVotes`, `policy.downgradeHorizonTurns`, `policy.cashCapUsd`, and `policy.activityMass` in one save: it writes only values that differ from the defaults and removes the rest. `/router activities <mode>` writes `activityRouting` at once, with **Undo**. **Mode** on the Policy tab writes `mode` at once, with **Undo**; `/router mode` changes only the session and writes no file. The **Classifier** tab sets `classifier` and the active classifier's `timeoutMs` at once. **Undo** reverts the settings the last pane write changed. Each save validates the whole file, keeps other keys, and applies from the next turn. A failed check names the setting and leaves the file unchanged. The pane refuses to write through a symlink. Model aliases and the other settings require a direct edit.
|
|
285
|
+
|
|
286
|
+
A project can set the routing mode, and only that, in `.claude/router.json` in the directory Claude Code runs in: `{ "mode": "cost" }`. Any other content is ignored with a notice; it never makes routing unavailable. A session's `/router mode` beats it, and it beats the profile's `mode`. See [Routing modes](routing-modes.md).
|
|
283
287
|
|
|
284
288
|
Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.1 keep one prompt cache across effort levels, so the policy prices an effort-only move, such as Opus at `medium` to Opus at `high`, as no cache write. On Amazon Bedrock, Google Cloud, Microsoft Foundry, a custom `ANTHROPIC_BASE_URL`, or with `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS`, each effort has its own cache and the move pays its write. A HIPAA configuration cannot be detected; the router then prices those moves as free.
|
|
285
289
|
|
package/docs/native-router.md
CHANGED
|
@@ -21,6 +21,7 @@ The activity is what the turn produces: `code`, `debug`, `explore`, `plan`, `rev
|
|
|
21
21
|
| `/router off` | Turn routing off and keep Claude's selected model. |
|
|
22
22
|
| `/router pin <tier>` | Pin the next turn and tool continuations. Routing on must already be enabled. |
|
|
23
23
|
| `/router activities <off\|on>` | Set the activity routing mode. Written to `router.json` at once; **Undo** in the pane reverts it. |
|
|
24
|
+
| `/router mode <cost\|balanced\|quality\|default>` | Set or clear this session's [routing mode](routing-modes.md), from the next turn. Kept for a resume in `$.store` `routing-mode:<session id>`. Never aborts a turn. |
|
|
24
25
|
| `/model <name>` | Select a model and turn routing off. `/router auto` turns it back on. |
|
|
25
26
|
|
|
26
27
|
The pane's **Set up** and **Credentials → Edit** buttons open Claude Code's secure plugin configuration. Claude Code refuses `$.command.run` from inside a `command.run` hook, so the Mod starts that dialog from a timer after the press returns.
|
package/docs/router-band.svg
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 922
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 922 509" role="img" aria-labelledby="title desc">
|
|
2
2
|
<title id="title">The Router band above the Claude Code prompt</title>
|
|
3
|
-
<desc id="desc">
|
|
3
|
+
<desc id="desc">Seven band states drawn by the router code: routed to high, two rows with the hover row, a pending pin, a missing classifier key, routing off, an activity move with activity routing on, and cost mode set for the session.</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="922" height="
|
|
8
|
+
<rect width="922" height="509" rx="8" fill="#1c1c1c"/>
|
|
9
9
|
<text class="cap" x="20" y="30">Routing on: routed to the high tier on a clear jump</text>
|
|
10
10
|
<rect x="12" y="38" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
11
11
|
<text x="24.0" y="56" fill="#e0708a" xml:space="preserve">▂</text>
|
|
@@ -39,11 +39,13 @@
|
|
|
39
39
|
<text x="304.8" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
40
40
|
<text x="343.8" y="121" fill="#7c7c7c" xml:space="preserve">↑ jump</text>
|
|
41
41
|
<text x="390.6" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
42
|
-
<text x="429.6" y="121" fill="#
|
|
43
|
-
<text x="
|
|
44
|
-
<text x="
|
|
45
|
-
<text x="
|
|
46
|
-
<text x="
|
|
42
|
+
<text x="429.6" y="121" fill="#7c7c7c" xml:space="preserve">balanced (default)</text>
|
|
43
|
+
<text x="570.0" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
44
|
+
<text x="609.0" y="121" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
45
|
+
<text x="640.2" y="121" fill="#87d787" xml:space="preserve">40%</text>
|
|
46
|
+
<text x="663.6" y="121" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
47
|
+
<text x="765.0" y="121" fill="#87d787" xml:space="preserve">100%</text>
|
|
48
|
+
<text x="811.8" y="121" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
47
49
|
<text x="24.0" y="140" fill="#7c7c7c" xml:space="preserve">session </text>
|
|
48
50
|
<text x="94.2" y="140" fill="#6fcf97" font-weight="700" xml:space="preserve">saved $1.84 (22%)</text>
|
|
49
51
|
<text x="226.8" y="140" fill="#d0d0d0" xml:space="preserve"> vs Opus 5.5 · xhigh</text>
|
|
@@ -135,4 +137,24 @@
|
|
|
135
137
|
<text x="531.0" y="419" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
136
138
|
<text x="632.4" y="419" fill="#87d787" xml:space="preserve">100%</text>
|
|
137
139
|
<text x="679.2" y="419" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
140
|
+
<text class="cap" x="20" y="458">Cost mode for this session: high runs Opus at high instead of xhigh</text>
|
|
141
|
+
<rect x="12" y="466" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
142
|
+
<text x="24.0" y="484" fill="#e0708a" xml:space="preserve">▂</text>
|
|
143
|
+
<text x="31.8" y="484" fill="#e0708a" xml:space="preserve">▄</text>
|
|
144
|
+
<text x="39.6" y="484" fill="#e0708a" xml:space="preserve">▆</text>
|
|
145
|
+
<text x="47.4" y="484" fill="#e0708a" xml:space="preserve">█</text>
|
|
146
|
+
<rect x="55.2" y="470" width="46.8" height="18" rx="4" fill="#e0708a"/>
|
|
147
|
+
<text x="55.2" y="484" fill="#0d1016" font-weight="700" xml:space="preserve"> high </text>
|
|
148
|
+
<text x="109.8" y="484" fill="#d77757" font-style="italic" xml:space="preserve">coding → </text>
|
|
149
|
+
<text x="180.0" y="484" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · high</text>
|
|
150
|
+
<text x="297.0" y="484" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
151
|
+
<text x="336.0" y="484" fill="#7c7c7c" xml:space="preserve">= fits</text>
|
|
152
|
+
<text x="382.8" y="484" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
153
|
+
<text x="421.8" y="484" fill="#7c7c7c" xml:space="preserve">cost (session)</text>
|
|
154
|
+
<text x="531.0" y="484" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
155
|
+
<text x="570.0" y="484" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
156
|
+
<text x="601.2" y="484" fill="#87d787" xml:space="preserve">40%</text>
|
|
157
|
+
<text x="624.6" y="484" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
158
|
+
<text x="726.0" y="484" fill="#87d787" xml:space="preserve">100%</text>
|
|
159
|
+
<text x="772.8" y="484" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
138
160
|
</svg>
|
package/docs/router-pane-now.svg
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 665
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 665 629" role="img" aria-labelledby="title desc">
|
|
2
2
|
<title id="title">Router pane, Now tab</title>
|
|
3
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="
|
|
9
|
-
<rect x="10" y="10" width="645" height="
|
|
8
|
+
<rect width="665" height="629" rx="8" fill="#1c1c1c"/>
|
|
9
|
+
<rect x="10" y="10" width="645" height="609" 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>
|
|
@@ -36,132 +36,134 @@
|
|
|
36
36
|
<text x="24.0" y="129" fill="#d0d0d0" xml:space="preserve">Why </text>
|
|
37
37
|
<text x="109.8" y="129" fill="#d0d0d0" xml:space="preserve">clear need for a stronger model</text>
|
|
38
38
|
<text x="24.0" y="148" fill="#7c7c7c" xml:space="preserve"> Jev gave stronger tiers 88% (needs 82%) · switch ≈ $0.48</text>
|
|
39
|
-
<text x="24.0" y="167" fill="#d0d0d0" xml:space="preserve">
|
|
40
|
-
<
|
|
41
|
-
<text x="
|
|
42
|
-
<rect x="
|
|
43
|
-
<text x="
|
|
44
|
-
<rect x="
|
|
45
|
-
<text x="
|
|
46
|
-
<rect x="
|
|
47
|
-
<text x="
|
|
48
|
-
<
|
|
49
|
-
<text x="
|
|
50
|
-
<text x="
|
|
51
|
-
<text x="
|
|
52
|
-
<text x="
|
|
53
|
-
<text x="
|
|
54
|
-
<text x="
|
|
55
|
-
<text x="
|
|
56
|
-
<text x="
|
|
57
|
-
<text x="
|
|
58
|
-
<text x="
|
|
59
|
-
<text x="
|
|
60
|
-
<text x="
|
|
61
|
-
<text x="
|
|
62
|
-
<text x="
|
|
63
|
-
<text x="
|
|
64
|
-
<text x="
|
|
65
|
-
<text x="
|
|
66
|
-
<text x="
|
|
67
|
-
<text x="
|
|
68
|
-
<text x="
|
|
69
|
-
<text x="
|
|
70
|
-
<text x="
|
|
71
|
-
<text x="
|
|
72
|
-
<text x="
|
|
73
|
-
<text x="
|
|
74
|
-
<text x="
|
|
75
|
-
<text x="
|
|
76
|
-
<text x="
|
|
77
|
-
<text x="
|
|
78
|
-
<text x="
|
|
79
|
-
<text x="
|
|
80
|
-
<text x="
|
|
81
|
-
<text x="
|
|
82
|
-
<text x="
|
|
83
|
-
<text x="
|
|
84
|
-
<text x="
|
|
85
|
-
<text x="
|
|
86
|
-
<text x="
|
|
87
|
-
<text x="
|
|
88
|
-
<text x="
|
|
89
|
-
<text x="
|
|
90
|
-
<text x="
|
|
91
|
-
<text x="
|
|
92
|
-
<text x="
|
|
93
|
-
<text x="
|
|
94
|
-
<text x="
|
|
95
|
-
<text x="
|
|
96
|
-
<text x="
|
|
97
|
-
<text x="
|
|
98
|
-
<text x="
|
|
99
|
-
<text x="
|
|
100
|
-
<text x="
|
|
101
|
-
<text x="
|
|
102
|
-
<text x="
|
|
103
|
-
<text x="
|
|
104
|
-
<text x="
|
|
105
|
-
<text x="
|
|
106
|
-
<text x="
|
|
107
|
-
<text x="
|
|
108
|
-
<text x="
|
|
109
|
-
<text x="
|
|
110
|
-
<text x="
|
|
111
|
-
<text x="
|
|
112
|
-
<text x="
|
|
113
|
-
<text x="
|
|
114
|
-
<text x="
|
|
115
|
-
<text x="
|
|
116
|
-
<text x="
|
|
117
|
-
<
|
|
118
|
-
<text x="
|
|
119
|
-
<
|
|
120
|
-
<text x="
|
|
121
|
-
<text x="
|
|
122
|
-
<text x="
|
|
123
|
-
<text x="
|
|
124
|
-
<text x="
|
|
125
|
-
<
|
|
126
|
-
<text x="
|
|
127
|
-
<
|
|
128
|
-
<text x="
|
|
129
|
-
<text x="
|
|
130
|
-
<
|
|
131
|
-
<text x="
|
|
132
|
-
<
|
|
133
|
-
<text x="
|
|
134
|
-
<text x="
|
|
135
|
-
<text x="
|
|
136
|
-
<text x="
|
|
137
|
-
<text x="
|
|
138
|
-
<text x="
|
|
139
|
-
<text x="
|
|
140
|
-
<text x="
|
|
141
|
-
<text x="
|
|
142
|
-
<text x="
|
|
143
|
-
<text x="
|
|
144
|
-
<text x="
|
|
145
|
-
<text x="
|
|
146
|
-
<text x="
|
|
147
|
-
<text x="
|
|
148
|
-
<text x="
|
|
149
|
-
<text x="
|
|
150
|
-
<text x="
|
|
151
|
-
<text x="
|
|
152
|
-
<text x="
|
|
153
|
-
<text x="
|
|
154
|
-
<text x="
|
|
155
|
-
<
|
|
156
|
-
<text x="
|
|
157
|
-
<
|
|
158
|
-
<text x="
|
|
159
|
-
<text x="
|
|
160
|
-
<text x="
|
|
161
|
-
<text x="
|
|
162
|
-
<text x="
|
|
163
|
-
<
|
|
164
|
-
<text x="
|
|
165
|
-
<rect x="
|
|
166
|
-
<text x="
|
|
39
|
+
<text x="24.0" y="167" fill="#d0d0d0" xml:space="preserve">Mode </text>
|
|
40
|
+
<text x="109.8" y="167" fill="#d0d0d0" xml:space="preserve">balanced (default)</text>
|
|
41
|
+
<text x="24.0" y="186" fill="#d0d0d0" xml:space="preserve">Pin next </text>
|
|
42
|
+
<rect x="109.8" y="172" width="109.2" height="18" rx="4" fill="#2e3340"/>
|
|
43
|
+
<text x="109.8" y="186" fill="#d0d0d0" xml:space="preserve">[ ▶ high 88% ]</text>
|
|
44
|
+
<rect x="226.8" y="172" width="101.4" height="18" rx="4" fill="#2e3340"/>
|
|
45
|
+
<text x="226.8" y="186" fill="#d0d0d0" xml:space="preserve">[ medium 7% ]</text>
|
|
46
|
+
<rect x="336.0" y="172" width="78.0" height="18" rx="4" fill="#2e3340"/>
|
|
47
|
+
<text x="336.0" y="186" fill="#d0d0d0" xml:space="preserve">[ low 3% ]</text>
|
|
48
|
+
<rect x="421.8" y="172" width="93.6" height="18" rx="4" fill="#2e3340"/>
|
|
49
|
+
<text x="421.8" y="186" fill="#d0d0d0" xml:space="preserve">[ micro 2% ]</text>
|
|
50
|
+
<text x="523.2" y="186" fill="#7c7c7c" xml:space="preserve"> next turn only</text>
|
|
51
|
+
<text x="24.0" y="224" fill="#5fafd7" font-weight="700" xml:space="preserve">SESSION</text>
|
|
52
|
+
<text x="78.6" y="224" fill="#7c7c7c" xml:space="preserve"> · since 14:18 · 86 routed replies · 9 route switches</text>
|
|
53
|
+
<text x="39.6" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
54
|
+
<text x="47.4" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
55
|
+
<text x="55.2" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
56
|
+
<text x="63.0" y="243" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
57
|
+
<text x="70.8" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
58
|
+
<text x="78.6" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
59
|
+
<text x="86.4" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
60
|
+
<text x="94.2" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
61
|
+
<text x="102.0" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
62
|
+
<text x="109.8" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
63
|
+
<text x="117.6" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
64
|
+
<text x="125.4" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
65
|
+
<text x="133.2" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
66
|
+
<text x="141.0" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
67
|
+
<text x="148.8" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
68
|
+
<text x="156.6" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
69
|
+
<text x="164.4" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
70
|
+
<text x="172.2" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
71
|
+
<text x="180.0" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
72
|
+
<text x="187.8" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
73
|
+
<text x="195.6" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
74
|
+
<text x="203.4" y="243" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
75
|
+
<text x="211.2" y="243" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
76
|
+
<text x="219.0" y="243" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
77
|
+
<text x="226.8" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
78
|
+
<text x="234.6" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
79
|
+
<text x="242.4" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
80
|
+
<text x="250.2" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
81
|
+
<text x="258.0" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
82
|
+
<text x="265.8" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
83
|
+
<text x="273.6" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
84
|
+
<text x="281.4" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
85
|
+
<text x="289.2" y="243" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
86
|
+
<text x="297.0" y="243" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
87
|
+
<text x="304.8" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
88
|
+
<text x="312.6" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
89
|
+
<text x="320.4" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
90
|
+
<text x="328.2" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
91
|
+
<text x="336.0" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
92
|
+
<text x="343.8" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
93
|
+
<text x="351.6" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
94
|
+
<text x="359.4" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
95
|
+
<text x="367.2" y="243" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
96
|
+
<text x="375.0" y="243" fill="#7c7c7c" xml:space="preserve"> 2 replies per cell</text>
|
|
97
|
+
<text x="39.6" y="262" fill="#5f9fe0" font-weight="700" xml:space="preserve">■ </text>
|
|
98
|
+
<text x="55.2" y="262" fill="#d0d0d0" xml:space="preserve">low 41 </text>
|
|
99
|
+
<text x="117.6" y="262" fill="#d7af5f" font-weight="700" xml:space="preserve">■ </text>
|
|
100
|
+
<text x="133.2" y="262" fill="#d0d0d0" xml:space="preserve">medium 12 </text>
|
|
101
|
+
<text x="219.0" y="262" fill="#e0708a" font-weight="700" xml:space="preserve">■ </text>
|
|
102
|
+
<text x="234.6" y="262" fill="#d0d0d0" xml:space="preserve">high 33 </text>
|
|
103
|
+
<text x="39.6" y="281" fill="#d7875f" font-style="italic" xml:space="preserve">coding</text>
|
|
104
|
+
<text x="86.4" y="281" fill="#7c7c7c" xml:space="preserve"> 45 · </text>
|
|
105
|
+
<text x="133.2" y="281" fill="#d7875f" font-style="italic" xml:space="preserve">running</text>
|
|
106
|
+
<text x="187.8" y="281" fill="#7c7c7c" xml:space="preserve"> 26 · </text>
|
|
107
|
+
<text x="234.6" y="281" fill="#d7875f" font-style="italic" xml:space="preserve">exploring</text>
|
|
108
|
+
<text x="304.8" y="281" fill="#7c7c7c" xml:space="preserve"> 15</text>
|
|
109
|
+
<text x="39.6" y="300" fill="#7c7c7c" xml:space="preserve">last switch 15:38 </text>
|
|
110
|
+
<text x="187.8" y="300" fill="#d7af5f" font-weight="700" xml:space="preserve">medium</text>
|
|
111
|
+
<text x="234.6" y="300" fill="#7c7c7c" xml:space="preserve"> → </text>
|
|
112
|
+
<text x="258.0" y="300" fill="#e0708a" font-weight="700" xml:space="preserve">high</text>
|
|
113
|
+
<text x="289.2" y="300" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
114
|
+
<text x="312.6" y="300" fill="#d7875f" font-style="italic" xml:space="preserve">coding</text>
|
|
115
|
+
<text x="39.6" y="319" fill="#d0d0d0" xml:space="preserve">Routing saved </text>
|
|
116
|
+
<text x="148.8" y="319" fill="#6fcf97" font-weight="700" xml:space="preserve">$4.17 (39%)</text>
|
|
117
|
+
<text x="234.6" y="319" fill="#d0d0d0" xml:space="preserve"> vs your model</text>
|
|
118
|
+
<text x="343.8" y="319" fill="#7c7c7c" xml:space="preserve"> · switch writes $0.19</text>
|
|
119
|
+
<rect x="531.0" y="305" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
120
|
+
<text x="531.0" y="319" fill="#d0d0d0" xml:space="preserve">[ Usage ]</text>
|
|
121
|
+
<text x="24.0" y="357" fill="#5fafd7" font-weight="700" xml:space="preserve">TODAY</text>
|
|
122
|
+
<text x="63.0" y="357" fill="#7c7c7c" xml:space="preserve"> · 104 routed replies · 12 route switches</text>
|
|
123
|
+
<text x="39.6" y="376" fill="#d0d0d0" xml:space="preserve">Routing saved </text>
|
|
124
|
+
<text x="148.8" y="376" fill="#6fcf97" font-weight="700" xml:space="preserve">$5.16 (40%)</text>
|
|
125
|
+
<text x="234.6" y="376" fill="#d0d0d0" xml:space="preserve"> vs your model</text>
|
|
126
|
+
<text x="343.8" y="376" fill="#7c7c7c" xml:space="preserve"> · switch writes $0.23</text>
|
|
127
|
+
<rect x="531.0" y="362" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
128
|
+
<text x="531.0" y="376" fill="#d0d0d0" xml:space="preserve">[ Usage ]</text>
|
|
129
|
+
<text x="24.0" y="414" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS</text>
|
|
130
|
+
<text x="94.2" y="414" fill="#7c7c7c" xml:space="preserve"> · this session</text>
|
|
131
|
+
<text x="211.2" y="414" fill="#d7af5f" xml:space="preserve"> · ● 1 running</text>
|
|
132
|
+
<rect x="336.0" y="400" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
133
|
+
<text x="336.0" y="414" fill="#d0d0d0" xml:space="preserve">[ Usage ]</text>
|
|
134
|
+
<text x="39.6" y="433" fill="#c3e88d" xml:space="preserve">■■</text>
|
|
135
|
+
<text x="55.2" y="433" fill="#c792ea" xml:space="preserve">■</text>
|
|
136
|
+
<text x="63.0" y="433" fill="#c792ea" xml:space="preserve">□□□</text>
|
|
137
|
+
<text x="102.0" y="433" fill="#c3e88d" xml:space="preserve">Haiku 5.5 2</text>
|
|
138
|
+
<text x="187.8" y="433" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
139
|
+
<text x="211.2" y="433" fill="#c792ea" xml:space="preserve">Opus 5.5 4</text>
|
|
140
|
+
<text x="24.0" y="452" fill="#d0d0d0" xml:space="preserve"> 6 agents</text>
|
|
141
|
+
<text x="102.0" y="452" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
142
|
+
<text x="125.4" y="452" fill="#d0d0d0" xml:space="preserve">■ 3 moved by the router</text>
|
|
143
|
+
<text x="304.8" y="452" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
144
|
+
<text x="328.2" y="452" fill="#d0d0d0" xml:space="preserve">□ 3 on Claude Code’s pick</text>
|
|
145
|
+
<text x="24.0" y="471" fill="#d0d0d0" xml:space="preserve"> Routing cost </text>
|
|
146
|
+
<text x="141.0" y="471" fill="#f0b429" xml:space="preserve">$0.08</text>
|
|
147
|
+
<text x="180.0" y="471" fill="#d0d0d0" xml:space="preserve"> more</text>
|
|
148
|
+
<text x="219.0" y="471" fill="#d0d0d0" xml:space="preserve"> (7%)</text>
|
|
149
|
+
<text x="258.0" y="471" fill="#7c7c7c" xml:space="preserve"> on 3 routed agents</text>
|
|
150
|
+
<text x="24.0" y="509" fill="#5fafd7" font-weight="700" xml:space="preserve">WORTH A LOOK</text>
|
|
151
|
+
<text x="117.6" y="509" fill="#7c7c7c" xml:space="preserve"> · today</text>
|
|
152
|
+
<text x="39.6" y="528" fill="#d7875f" font-style="italic" xml:space="preserve">coding</text>
|
|
153
|
+
<text x="86.4" y="528" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
154
|
+
<text x="109.8" y="528" fill="#e0708a" font-weight="700" xml:space="preserve">high</text>
|
|
155
|
+
<text x="141.0" y="528" fill="#d0d0d0" xml:space="preserve"> carried 61% of the cost</text>
|
|
156
|
+
<text x="328.2" y="528" fill="#7c7c7c" xml:space="preserve"> · mostly Opus 5.5 · xhigh</text>
|
|
157
|
+
<rect x="546.6" y="514" width="78.0" height="18" rx="4" fill="#2e3340"/>
|
|
158
|
+
<text x="546.6" y="528" fill="#d0d0d0" xml:space="preserve">[ Routes ]</text>
|
|
159
|
+
<text x="24.0" y="566" fill="#87d787" xml:space="preserve">Context ██████░░░░░░░░░░ 40% ~402.9K / 1.00M</text>
|
|
160
|
+
<text x="24.0" y="585" fill="#87d787" xml:space="preserve">Cache </text>
|
|
161
|
+
<text x="94.2" y="585" fill="#87d787" xml:space="preserve">100% reused on the last reply</text>
|
|
162
|
+
<text x="320.4" y="585" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
163
|
+
<text x="359.4" y="585" fill="#d0d0d0" xml:space="preserve">cost $18.003 </text>
|
|
164
|
+
<text x="460.8" y="585" fill="#7c7c7c" xml:space="preserve">by Claude </text>
|
|
165
|
+
<rect x="546.6" y="571" width="85.8" height="18" rx="4" fill="#2e3340"/>
|
|
166
|
+
<text x="546.6" y="585" fill="#d0d0d0" xml:space="preserve">[ details ]</text>
|
|
167
|
+
<rect x="24.0" y="590" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
168
|
+
<text x="24.0" y="604" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
|
|
167
169
|
</svg>
|