@alexeiled/claude-router 1.7.4 → 1.8.1
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 +16 -0
- package/docs/activity-routing.md +1 -1
- package/docs/architecture.md +1 -1
- package/docs/evaluation.md +3 -3
- package/docs/native-router.md +2 -2
- package/docs/router-band.svg +68 -87
- package/docs/router-pane-now.svg +2 -2
- package/docs/router-pane-usage.svg +98 -97
- package/docs/user-guide.md +11 -10
- package/hooks/native-router.mjs +25 -14
- package/lib/band.mjs +66 -52
- package/lib/display.mjs +24 -1
- package/lib/panel.mjs +36 -6
- package/lib/route.mjs +4 -3
- package/lib/savings.mjs +39 -0
- package/lib/view.mjs +2 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "router",
|
|
3
3
|
"displayName": "Router",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
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). Preserves subagent model choices.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Alexei Ledenev",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.8.1 (2026-10-10)
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- The band names the activity with a verb in orange italic, `high coding → Opus 5.5 · xhigh`, so it no longer reads as part of the model. `ops` reads `running`, `docs` reads `documenting`, and the rest end in `-ing`. The reasons and the switch toast use the same words: `↗ coding`, `↘ running`. In `shadow` the label stays dim.
|
|
8
|
+
- A space now follows the tier chip, so its background no longer runs into the next word.
|
|
9
|
+
|
|
10
|
+
## 1.8.0 (2026-10-10)
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The band's second row now shows one thing: this session against your model, by name. For example, `session saved $1.84 (22%) vs Opus 5.5 · xhigh · 64 replies · cold-cache writes +$0.47`, or `extra $2.48 (×5.0) vs Haiku 5.5 · high` when routing cost more. The strip of recent replies, the switch count and the last reply's cache saving are gone from the band. The reply count drops first on a short row, then the cost part.
|
|
15
|
+
- Your model is the one `/model` selects now. Each routed reply is priced against every model in `router.json`, so after a `/model` change the band and the Usage tab show the whole session against the new model. The Usage tab adds `vs other models: Sonnet 5.5 extra $2.28 · Haiku 5.5 extra $6.19`. The totals kept across sessions still price each reply against the model selected when it ran.
|
|
16
|
+
- The first band row shows the switch cost, `switch cost ≈ $0.37`, next to the decision it explains. A classifier figure shows tenths when whole percents would read as equal: `Jev 81.0% < 81.4%`, not `81% < 81%`. `cache` now reads `cache hit`.
|
|
17
|
+
- The words are plainer. `tax` is now **switch cost**, `cache saved` and **Cache read benefit** are now **cache hits saved**, and `vs your model −5% (−$0.89, list prices)` is now `saved $0.89 (5%) vs <model>`.
|
|
18
|
+
|
|
3
19
|
## 1.7.4 (2026-10-10)
|
|
4
20
|
|
|
5
21
|
### Fixed
|
package/docs/activity-routing.md
CHANGED
|
@@ -213,7 +213,7 @@ label was right, not the classifier's probabilities.
|
|
|
213
213
|
## What the estimates mean
|
|
214
214
|
|
|
215
215
|
**In the pane.** The band, the Now tab and the Usage tab report Claude's own readings: cost, context, and cache. The
|
|
216
|
-
dollar figures next to them, such as the switch
|
|
216
|
+
dollar figures next to them, such as the switch cost, the payback, and the shadow line on the Usage tab, are estimates
|
|
217
217
|
at the list prices in `router.json`. They are not your bill: a plan does not charge list prices. They are not measured
|
|
218
218
|
savings: the router does not know what another model would have answered, or how many requests it would have needed.
|
|
219
219
|
|
package/docs/architecture.md
CHANGED
|
@@ -115,7 +115,7 @@ Nothing is recorded with `activityRouting: off`. Stats run inside a guard: a fai
|
|
|
115
115
|
|
|
116
116
|
### Routing vs your model
|
|
117
117
|
|
|
118
|
-
After each main reply, where the response is observed, `savings.mjs` prices the reply on the model that served it and the same tokens on "your model": the session's model and the effort Claude Code sent on the turn's first request.
|
|
118
|
+
After each main reply, where the response is observed, `savings.mjs` prices the reply on the model that served it and the same tokens on "your model": the session's model and the effort Claude Code sent on the turn's first request. `compareModels` prices each reply against every model in `router.json` as "your model", at the session effort. Each keeps a simulated single cache in the loop under its models key in `yoursBy` (`{ total, at, onYours, model, effort }`), which a history reset clears; after an effort change the next reply finds it cold. The session's totals per model are `savingsBy` in the view, and `updateView` sets `savings` to the entry for the model `/model` selects whenever the model or the totals change, so a `/model` change re-prices the whole session without a replay. At turn completion the turn's totals against the model selected then are added to the session's own `$.store` key `savings:v1:<session id>` (replies, five sums and `since`), under the same reset guard as the activity stats. Each key has one writer, and Claude Code 2.1.296 writes one key under a file lock (observed in its code; the `$.store` types do not promise it), so sessions that finish turns at the same moment do not overwrite each other. The view's `savingsStore` adds up two parts: every other session's key, read at session start and when the pane opens, and this session's record, which the router reads once, holds in memory, adds each finished turn to and then writes, so a pane opened during that write counts the turn once. **Reset stats** first writes the time in `savings:reset:v1`, then deletes every such key and every activity metrics record. A record whose first reply is older than that time reads as empty, and each session reads the time before it adds a turn, so a session that still holds its record from before a Reset in another session drops it instead of writing it back. The comparison is by milliseconds: a record whose first reply has the reset's millisecond, or one written while the clock had moved back, still counts. A stored value of any other shape reads as empty. A reply with routing off or after an engine fallback is not counted, but it still moves your model's cache. A reply whose cache lifetime cannot be read loses its prices only, and your model's cache still follows it; a usage without rate limits prices writes at five minutes. No failure here fails the turn. [Evaluation](evaluation.md#routing-vs-your-model) gives the method and its limits.
|
|
119
119
|
|
|
120
120
|
Subagent events pass directly to Claude Code. They do not create classifier requests or change main-conversation metrics. This is the selected scope because Mods do not expose whether a subagent model was explicit or inherited.
|
|
121
121
|
|
package/docs/evaluation.md
CHANGED
|
@@ -110,18 +110,18 @@ Ollama's latency covers both requests and stays inside its 5000 ms deadline; on
|
|
|
110
110
|
|
|
111
111
|
## Routing vs your model
|
|
112
112
|
|
|
113
|
-
The Usage tab compares what routed replies cost with what the same tokens would cost on your model, the
|
|
113
|
+
The Usage tab compares what routed replies cost with what the same tokens would cost on your model, the model `/model` selects now at the session effort. It answers "at list prices, did routing spend more or less than my own model for this work". It does not answer whether the answers were as good.
|
|
114
114
|
|
|
115
115
|
Method, per main reply that routing chose:
|
|
116
116
|
|
|
117
117
|
- **Routed** prices the usage Claude reported (uncached input, cache read, cache write, output) on the model that served it.
|
|
118
|
-
- **Yours** prices the same tokens on
|
|
118
|
+
- **Yours** prices the same tokens on each model in `router.json` at the session effort, and the readout shows the one `/model` selects now, so a `/model` change shows the whole session against the new model. While this reply and the one before it ran on that model's route, it is the reply's own usage, so a session on your model differs by exactly $0.00. Otherwise each model keeps one cache that never switched: it reads the previous prompt, up to this one less its uncached input, inside the cache lifetime, unless a compaction shrank the history or the effort changed since, and never less than the API actually read; it writes the rest. Output tokens are the same. The totals kept across sessions price each reply against the model selected when it ran.
|
|
119
119
|
- **Parts**: the served model on your cache against yours is the model price, under cheaper models when negative and stronger than yours when positive; routed against the served model on your cache is the cache the switches cost, never negative. They sum to the difference. The pane rounds to cents and gives the remainder only to a part that is not zero: a surplus to the switch part, else the stronger part, else the cheaper part toward $0.00; a shortfall comes off the stronger part, down to $0.00, then the cheaper part. The shown parts add up, none changes sign, and none appears from rounding alone.
|
|
120
120
|
- **Prices**: `router.json` list prices through `ratesAt`, so Haiku 5.5 above 100,000 prompt tokens is priced at 5x. Claude Code reports no 5m/1h split to a Mod, so cache writes use the lifetime Claude Code 2.1.296 gives the main conversation by its own rule: one hour on a Claude plan unless an environment variable or the `promptCacheTtl` setting says otherwise, five minutes with an API key.
|
|
121
121
|
|
|
122
122
|
Checks:
|
|
123
123
|
|
|
124
|
-
- Unit tests (`test/savings.test.mjs`) cover a session that saves, one that costs more with Haiku as your model, equal routes at exactly 0, cache expiry at 5m and 1h, a compaction, a change of your model or effort, the 100K surcharge, an unpriced model, and a corrupted store. `test/hook-routing.test.mjs` covers two sessions finishing turns at the same moment.
|
|
124
|
+
- Unit tests (`test/savings.test.mjs`) cover a session that saves, one that costs more with Haiku as your model, equal routes at exactly 0, cache expiry at 5m and 1h, a compaction, a change of your model or effort, the 100K surcharge, an unpriced model, and a corrupted store. `test/hook-routing.test.mjs` covers two sessions finishing turns at the same moment, and a `/model` change mid-session that shows the whole session against the new model.
|
|
125
125
|
- A one-off replay, not checked in, of this machine's main-conversation transcripts from 2026-10-01 to 2026-10-10 (nine sessions with 10 or more replies) gave $0.00 for every session that ran only on the model it was compared with: three on Opus 5.5, one on Haiku 5.5. Every main-conversation cache write in them was a one-hour write, which is what the lifetime rule gives on this Max plan.
|
|
126
126
|
- A live Claude Code 2.1.296 session on 2026-10-10, Opus 5.5 at `high` with turns pinned to Haiku 5.5, showed **Routed replies $0.48** beside **Cost $0.480 reported by Claude** for the same 16 replies; its last Haiku reply had a 114K-token prompt, which agrees only at the 5x rate. A Haiku 5.5 session with a pinned Opus turn showed $0.45 routed against $0.446 reported.
|
|
127
127
|
|
package/docs/native-router.md
CHANGED
|
@@ -38,7 +38,7 @@ The status band is one line above the prompt: a tier meter, the activity, the ro
|
|
|
38
38
|
| Activity | The classifier's activity choice with its share and the two next-best answers. Empty with routing off, a pin, or no answer. |
|
|
39
39
|
| Route (activity) | With `on`: the route for the tier and activity, marked `(override)` with the base route beside it, or `(base)`. With `shadow`: what `on` would use, and the route in use (`shadow; same route` when they agree). |
|
|
40
40
|
| Replies | The tier that served each of the last 30 main-conversation replies; a dot where the router did not choose. A second row of letters names each reply's activity: `c` code, `d` debug, `e` explore, `p` plan, `r` review, `o` ops, `w` docs. |
|
|
41
|
-
| Routing vs your model (Usage) | Routed replies at configured list prices against the same tokens on your model (the session
|
|
41
|
+
| Routing vs your model (Usage) | Routed replies at configured list prices against the same tokens on your model (the model `/model` selects now, at the session effort; after a `/model` change, the whole session against the new one), this session and since the last reset (each reply against the model selected when it ran); the session against the other configured models; the difference split into cheaper models, stronger than yours, and cache writes from switches. `too early` below 10 replies. Output length is held the same; answer quality is not measured. |
|
|
42
42
|
| Activity stats (Usage) | Counts for this session: turns, requests and share per activity, its `est. cost` at configured list prices (`—` unless every reply had a price) and the route it was `mostly on`; switches by tier and by activity, and activity moves refused in `on`; tool agreement; in `shadow`, turns `on` would route differently with their summed next-request estimate at configured list prices. |
|
|
43
43
|
| Across sessions (Usage) | The counts kept since the last reset: labelled turns, tool agreement on the classifier's raw answer, overall and for `code`, `ops` and `explore`, the two largest mismatches, activity moves inside a tier taken and refused, escalations after a cheaper activity move, the active classifier's p95 latency, and the shadow readout. `/router` text shows the agreement. |
|
|
44
44
|
| Cost | Claude Code's native usage value. A plan's list-price estimates are not subscription cash charges. |
|
|
@@ -50,7 +50,7 @@ The status band is one line above the prompt: a tier meter, the activity, the ro
|
|
|
50
50
|
| Classifier header | Active classifier state and elapsed time. Missing-key, missing-account, busy, and paused skips have no network latency reading. |
|
|
51
51
|
| Next-turn difference | Configured-price range for the suggested tier versus the incumbent on the next request. Negative means estimated lower cost. |
|
|
52
52
|
| Conservative payback | Conditional later-turn estimate based on configured cache prices, future reads, and the last output size. It is not measured savings. |
|
|
53
|
-
| Cache
|
|
53
|
+
| Cache hits saved | Estimated price difference for observed cache reads before cache writes. It is not net savings. |
|
|
54
54
|
|
|
55
55
|
The router keeps no bill. Routing vs your model is a configured-price estimate, not a measured saving, and leaves out classifier charges. See [Evaluation](evaluation.md) for what the available trace can support.
|
|
56
56
|
|
package/docs/router-band.svg
CHANGED
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
<text x="47.4" y="56" fill="#e0708a" xml:space="preserve">█</text>
|
|
15
15
|
<rect x="55.2" y="42" width="46.8" height="18" rx="4" fill="#e0708a"/>
|
|
16
16
|
<text x="55.2" y="56" fill="#0d1016" font-weight="700" xml:space="preserve"> high </text>
|
|
17
|
-
<text x="
|
|
18
|
-
<text x="
|
|
19
|
-
<text x="
|
|
20
|
-
<text x="
|
|
21
|
-
<text x="
|
|
22
|
-
<text x="
|
|
23
|
-
<text x="
|
|
24
|
-
<text x="
|
|
25
|
-
<text x="
|
|
26
|
-
<text x="
|
|
27
|
-
<text x="
|
|
28
|
-
<text x="
|
|
29
|
-
<text class="cap" x="20" y="95">Two rows, with the hover row shown:
|
|
17
|
+
<text x="109.8" y="56" fill="#d77757" font-style="italic" xml:space="preserve">coding → </text>
|
|
18
|
+
<text x="180.0" y="56" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh</text>
|
|
19
|
+
<text x="304.8" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
20
|
+
<text x="343.8" y="56" fill="#7c7c7c" xml:space="preserve">↑ jump</text>
|
|
21
|
+
<text x="390.6" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
22
|
+
<text x="429.6" y="56" fill="#7c7c7c" xml:space="preserve">Jev 88% ≥ 82%</text>
|
|
23
|
+
<text x="531.0" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
24
|
+
<text x="570.0" y="56" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
25
|
+
<text x="601.2" y="56" fill="#87d787" xml:space="preserve">40%</text>
|
|
26
|
+
<text x="624.6" y="56" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
27
|
+
<text x="726.0" y="56" fill="#87d787" xml:space="preserve">100%</text>
|
|
28
|
+
<text x="772.8" y="56" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
29
|
+
<text class="cap" x="20" y="95">Two rows, with the hover row shown: the session against your model, pins, Turn off</text>
|
|
30
30
|
<rect x="12" y="103" width="897.6" height="67" rx="5" fill="#232323"/>
|
|
31
31
|
<text x="24.0" y="121" fill="#e0708a" xml:space="preserve">▂</text>
|
|
32
32
|
<text x="31.8" y="121" fill="#e0708a" xml:space="preserve">▄</text>
|
|
@@ -34,42 +34,23 @@
|
|
|
34
34
|
<text x="47.4" y="121" fill="#e0708a" xml:space="preserve">█</text>
|
|
35
35
|
<rect x="55.2" y="107" width="46.8" height="18" rx="4" fill="#e0708a"/>
|
|
36
36
|
<text x="55.2" y="121" fill="#0d1016" font-weight="700" xml:space="preserve"> high </text>
|
|
37
|
-
<text x="
|
|
38
|
-
<text x="
|
|
39
|
-
<text x="
|
|
40
|
-
<text x="
|
|
41
|
-
<text x="
|
|
42
|
-
<text x="
|
|
43
|
-
<text x="
|
|
44
|
-
<text x="
|
|
45
|
-
<text x="
|
|
46
|
-
<text x="
|
|
47
|
-
<text x="24.0" y="140" fill="#7c7c7c" xml:space="preserve">
|
|
48
|
-
<text x="
|
|
49
|
-
<text x="
|
|
50
|
-
<text x="
|
|
51
|
-
<text x="
|
|
52
|
-
<text x="
|
|
53
|
-
<text x="
|
|
54
|
-
<text x="133.2" y="140" fill="#d7af5f" xml:space="preserve">█</text>
|
|
55
|
-
<text x="141.0" y="140" fill="#d7af5f" xml:space="preserve">█</text>
|
|
56
|
-
<text x="148.8" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
57
|
-
<text x="156.6" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
58
|
-
<text x="164.4" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
59
|
-
<text x="172.2" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
60
|
-
<text x="180.0" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
61
|
-
<text x="187.8" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
62
|
-
<text x="195.6" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
63
|
-
<text x="203.4" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
64
|
-
<text x="211.2" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
65
|
-
<text x="219.0" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
66
|
-
<text x="226.8" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
67
|
-
<text x="234.6" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
68
|
-
<text x="242.4" y="140" fill="#7c7c7c" xml:space="preserve"> 0 switches · cache saved ≈ $1.52</text>
|
|
69
|
-
<text x="507.6" y="140" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
70
|
-
<text x="546.6" y="140" fill="#d0d0d0" xml:space="preserve">vs your model </text>
|
|
71
|
-
<text x="655.8" y="140" fill="#6fcf97" xml:space="preserve">−22%</text>
|
|
72
|
-
<text x="687.0" y="140" fill="#7c7c7c" xml:space="preserve"> (−$1.84, list prices)</text>
|
|
37
|
+
<text x="109.8" y="121" fill="#d77757" font-style="italic" xml:space="preserve">coding → </text>
|
|
38
|
+
<text x="180.0" y="121" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh</text>
|
|
39
|
+
<text x="304.8" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
40
|
+
<text x="343.8" y="121" fill="#7c7c7c" xml:space="preserve">↑ jump</text>
|
|
41
|
+
<text x="390.6" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
42
|
+
<text x="429.6" y="121" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
43
|
+
<text x="460.8" y="121" fill="#87d787" xml:space="preserve">40%</text>
|
|
44
|
+
<text x="484.2" y="121" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
45
|
+
<text x="585.6" y="121" fill="#87d787" xml:space="preserve">100%</text>
|
|
46
|
+
<text x="632.4" y="121" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
47
|
+
<text x="24.0" y="140" fill="#7c7c7c" xml:space="preserve">session </text>
|
|
48
|
+
<text x="94.2" y="140" fill="#6fcf97" font-weight="700" xml:space="preserve">saved $1.84 (22%)</text>
|
|
49
|
+
<text x="226.8" y="140" fill="#d0d0d0" xml:space="preserve"> vs Opus 5.5 · xhigh</text>
|
|
50
|
+
<text x="382.8" y="140" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
51
|
+
<text x="421.8" y="140" fill="#7c7c7c" xml:space="preserve">64 replies</text>
|
|
52
|
+
<text x="499.8" y="140" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
53
|
+
<text x="538.8" y="140" fill="#7c7c7c" xml:space="preserve">cold-cache writes +$0.47</text>
|
|
73
54
|
<text x="24.0" y="159" fill="#7c7c7c" xml:space="preserve">pin next turn </text>
|
|
74
55
|
<rect x="133.2" y="145" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
75
56
|
<text x="133.2" y="159" fill="#d0d0d0" xml:space="preserve">[ micro ]</text>
|
|
@@ -92,20 +73,20 @@
|
|
|
92
73
|
<text x="47.4" y="224" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
93
74
|
<rect x="55.2" y="210" width="39.0" height="18" rx="4" fill="#5f9fe0"/>
|
|
94
75
|
<text x="55.2" y="224" fill="#0d1016" font-weight="700" xml:space="preserve"> low </text>
|
|
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="
|
|
76
|
+
<text x="102.0" y="224" fill="#d77757" font-style="italic" xml:space="preserve">running → </text>
|
|
77
|
+
<text x="180.0" y="224" fill="#d0d0d0" xml:space="preserve">Haiku 5.5 · high</text>
|
|
78
|
+
<text x="304.8" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
79
|
+
<text x="343.8" y="224" fill="#7c9cff" xml:space="preserve">⏵ next turn: </text>
|
|
80
|
+
<text x="445.2" y="224" fill="#d7af5f" font-weight="700" xml:space="preserve">medium</text>
|
|
81
|
+
<text x="499.8" y="224" fill="#d0d0d0" xml:space="preserve">✕</text>
|
|
82
|
+
<text x="507.6" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
83
|
+
<text x="546.6" y="224" fill="#7c7c7c" xml:space="preserve">= fits</text>
|
|
84
|
+
<text x="593.4" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
85
|
+
<text x="632.4" y="224" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
86
|
+
<text x="663.6" y="224" fill="#87d787" xml:space="preserve">40%</text>
|
|
87
|
+
<text x="687.0" y="224" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
88
|
+
<text x="788.4" y="224" fill="#87d787" xml:space="preserve">100%</text>
|
|
89
|
+
<text x="835.2" y="224" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
109
90
|
<text class="cap" x="20" y="263">No classifier key: routing keeps the model and offers Set up</text>
|
|
110
91
|
<rect x="12" y="271" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
111
92
|
<text x="24.0" y="289" fill="#f0b429" xml:space="preserve">⚠ Jev: no API key</text>
|
|
@@ -119,10 +100,10 @@
|
|
|
119
100
|
<text x="336.0" y="289" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
120
101
|
<rect x="343.8" y="275" width="39.0" height="18" rx="4" fill="#5f9fe0"/>
|
|
121
102
|
<text x="343.8" y="289" fill="#0d1016" font-weight="700" xml:space="preserve"> low </text>
|
|
122
|
-
<text x="
|
|
123
|
-
<text x="
|
|
124
|
-
<text x="
|
|
125
|
-
<text x="
|
|
103
|
+
<text x="390.6" y="289" fill="#d0d0d0" xml:space="preserve">Haiku 5.5 · high</text>
|
|
104
|
+
<text x="515.4" y="289" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
105
|
+
<text x="554.4" y="289" fill="#f0b429" xml:space="preserve">keeping model</text>
|
|
106
|
+
<text x="671.4" y="289" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
126
107
|
<text class="cap" x="20" y="328">Routing off: /model chose the model; Turn on resumes routing</text>
|
|
127
108
|
<rect x="12" y="336" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
128
109
|
<text x="24.0" y="354" fill="#7c7c7c" xml:space="preserve">○ </text>
|
|
@@ -144,16 +125,16 @@
|
|
|
144
125
|
<text x="47.4" y="419" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
145
126
|
<rect x="55.2" y="405" width="62.4" height="18" rx="4" fill="#d7af5f"/>
|
|
146
127
|
<text x="55.2" y="419" fill="#0d1016" font-weight="700" xml:space="preserve"> medium </text>
|
|
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
|
-
<text x="
|
|
156
|
-
<text x="
|
|
128
|
+
<text x="125.4" y="419" fill="#d77757" font-style="italic" xml:space="preserve">running → </text>
|
|
129
|
+
<text x="203.4" y="419" fill="#d0d0d0" xml:space="preserve">Haiku 5.5 · high</text>
|
|
130
|
+
<text x="328.2" y="419" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
131
|
+
<text x="367.2" y="419" fill="#7c7c7c" xml:space="preserve">↘ running</text>
|
|
132
|
+
<text x="437.4" y="419" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
133
|
+
<text x="476.4" y="419" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
134
|
+
<text x="507.6" y="419" fill="#87d787" xml:space="preserve">40%</text>
|
|
135
|
+
<text x="531.0" y="419" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
136
|
+
<text x="632.4" y="419" fill="#87d787" xml:space="preserve">100%</text>
|
|
137
|
+
<text x="679.2" y="419" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
157
138
|
<text class="cap" x="20" y="458">Activity routing in shadow: the label is shown, the base route still runs</text>
|
|
158
139
|
<rect x="12" y="466" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
159
140
|
<text x="24.0" y="484" fill="#5f9fe0" xml:space="preserve">▂</text>
|
|
@@ -162,14 +143,14 @@
|
|
|
162
143
|
<text x="47.4" y="484" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
163
144
|
<rect x="55.2" y="470" width="39.0" height="18" rx="4" fill="#5f9fe0"/>
|
|
164
145
|
<text x="55.2" y="484" fill="#0d1016" font-weight="700" xml:space="preserve"> low </text>
|
|
165
|
-
<text x="
|
|
166
|
-
<text x="
|
|
167
|
-
<text x="
|
|
168
|
-
<text x="
|
|
169
|
-
<text x="
|
|
170
|
-
<text x="
|
|
171
|
-
<text x="
|
|
172
|
-
<text x="
|
|
173
|
-
<text x="
|
|
174
|
-
<text x="
|
|
146
|
+
<text x="102.0" y="484" fill="#7c7c7c" xml:space="preserve">coding (shadow) → </text>
|
|
147
|
+
<text x="242.4" y="484" fill="#d0d0d0" xml:space="preserve">Haiku 5.5 · high</text>
|
|
148
|
+
<text x="367.2" y="484" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
149
|
+
<text x="406.2" y="484" fill="#7c7c7c" xml:space="preserve">= fits</text>
|
|
150
|
+
<text x="453.0" y="484" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
151
|
+
<text x="492.0" y="484" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
152
|
+
<text x="523.2" y="484" fill="#87d787" xml:space="preserve">40%</text>
|
|
153
|
+
<text x="546.6" y="484" fill="#d0d0d0" xml:space="preserve"> · cache hit </text>
|
|
154
|
+
<text x="648.0" y="484" fill="#87d787" xml:space="preserve">100%</text>
|
|
155
|
+
<text x="694.8" y="484" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
175
156
|
</svg>
|
package/docs/router-pane-now.svg
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<text x="351.6" y="300" fill="#d0d0d0" xml:space="preserve"> 2% </text>
|
|
62
62
|
<rect x="406.2" y="286" width="54.6" height="18" rx="4" fill="#2e3340"/>
|
|
63
63
|
<text x="406.2" y="300" fill="#d0d0d0" xml:space="preserve">[ pin ]</text>
|
|
64
|
-
<text x="24.0" y="319" fill="#7c7c7c" xml:space="preserve"> switch needs 82% · Jev gave 88% up ·
|
|
64
|
+
<text x="24.0" y="319" fill="#7c7c7c" xml:space="preserve"> switch needs 82% · Jev gave 88% up · switch cost ≈ $0.48</text>
|
|
65
65
|
<text x="24.0" y="338" fill="#7c7c7c" xml:space="preserve"> Pins serve the next turn only.</text>
|
|
66
66
|
<text x="24.0" y="376" fill="#5fafd7" font-weight="700" xml:space="preserve">REPLIES · last 20</text>
|
|
67
67
|
<text x="39.6" y="395" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
<text x="24.0" y="509" fill="#87d787" xml:space="preserve">Cache ████████████████ 100% reused on the last reply</text>
|
|
119
119
|
<text x="24.0" y="528" fill="#d0d0d0" xml:space="preserve">Cost $18.003 </text>
|
|
120
120
|
<text x="156.6" y="528" fill="#7c7c7c" xml:space="preserve">by Claude</text>
|
|
121
|
-
<text x="226.8" y="528" fill="#d0d0d0" xml:space="preserve"> · cache saved ≈ $1.52</text>
|
|
121
|
+
<text x="226.8" y="528" fill="#d0d0d0" xml:space="preserve"> · cache hits saved ≈ $1.52</text>
|
|
122
122
|
<rect x="24.0" y="533" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
123
123
|
<text x="24.0" y="547" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
|
|
124
124
|
</svg>
|