@alexeiled/claude-router 1.24.0 → 1.25.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.
Files changed (79) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/CHANGELOG.md +74 -0
  3. package/README.md +55 -7
  4. package/docs/architecture.md +30 -4
  5. package/docs/configuration.md +23 -14
  6. package/docs/evaluation.md +3 -3
  7. package/docs/native-router.md +12 -4
  8. package/docs/router-band.svg +140 -142
  9. package/docs/router-pane-classifier.svg +48 -31
  10. package/docs/router-pane-now.svg +162 -120
  11. package/docs/router-pane-policy.svg +79 -47
  12. package/docs/router-pane-routes.svg +8 -8
  13. package/docs/router-pane-usage-whatif.svg +14 -14
  14. package/docs/router-pane-usage.svg +20 -20
  15. package/docs/routing-modes.md +10 -8
  16. package/docs/user-guide.md +151 -22
  17. package/hooks/native-router.mjs +415 -88
  18. package/lib/activity-stats.mjs +23 -4
  19. package/lib/activity.mjs +7 -5
  20. package/lib/auto-engine.mjs +13 -6
  21. package/lib/auto-route.mjs +10 -4
  22. package/lib/band.mjs +35 -440
  23. package/lib/classifier-client.mjs +12 -8
  24. package/lib/config-file.mjs +7 -2
  25. package/lib/config.mjs +24 -9
  26. package/lib/cost.mjs +5 -1
  27. package/lib/costs.mjs +4 -2
  28. package/lib/decisions.mjs +13 -9
  29. package/lib/display.mjs +71 -20
  30. package/lib/facts.mjs +3 -0
  31. package/lib/failover.mjs +55 -0
  32. package/lib/modes.mjs +8 -4
  33. package/lib/panel.mjs +75 -2167
  34. package/lib/policy.mjs +7 -6
  35. package/lib/replay-trace.mjs +5 -2
  36. package/lib/replay.mjs +7 -1
  37. package/lib/route-line.mjs +46 -0
  38. package/lib/route.mjs +51 -32
  39. package/lib/savings.mjs +14 -3
  40. package/lib/subagents.mjs +41 -11
  41. package/lib/subcommands.mjs +60 -0
  42. package/lib/ui/fallback.mjs +22 -0
  43. package/lib/ui/graphical/band.mjs +256 -0
  44. package/lib/ui/graphical/charts.mjs +163 -0
  45. package/lib/ui/graphical/classifier.mjs +153 -0
  46. package/lib/ui/graphical/frame.mjs +231 -0
  47. package/lib/ui/graphical/kit.mjs +156 -0
  48. package/lib/ui/graphical/meter.mjs +25 -0
  49. package/lib/ui/graphical/now.mjs +357 -0
  50. package/lib/ui/graphical/policy.mjs +56 -0
  51. package/lib/ui/graphical/routes.mjs +264 -0
  52. package/lib/ui/graphical/squares.mjs +29 -0
  53. package/lib/ui/graphical/usage.mjs +376 -0
  54. package/lib/ui/model/band.mjs +441 -0
  55. package/lib/ui/model/classifier.mjs +308 -0
  56. package/lib/ui/model/draft.mjs +62 -0
  57. package/lib/ui/model/format.mjs +41 -0
  58. package/lib/ui/model/frame.mjs +359 -0
  59. package/lib/ui/model/now.mjs +421 -0
  60. package/lib/ui/model/policy.mjs +194 -0
  61. package/lib/ui/model/routes.mjs +392 -0
  62. package/lib/ui/model/usage-agents.mjs +311 -0
  63. package/lib/ui/model/usage-breakdown.mjs +237 -0
  64. package/lib/ui/model/usage-shared.mjs +58 -0
  65. package/lib/ui/model/usage.mjs +330 -0
  66. package/lib/ui/terminal/band.mjs +253 -0
  67. package/lib/ui/terminal/classifier.mjs +150 -0
  68. package/lib/ui/terminal/frame.mjs +169 -0
  69. package/lib/ui/terminal/kit.mjs +162 -0
  70. package/lib/ui/terminal/now.mjs +293 -0
  71. package/lib/ui/terminal/policy.mjs +55 -0
  72. package/lib/ui/terminal/routes.mjs +167 -0
  73. package/lib/ui/terminal/usage.mjs +363 -0
  74. package/lib/ui/terminal/wrap.mjs +37 -0
  75. package/lib/ui/tokens.mjs +106 -0
  76. package/lib/usage.mjs +5 -5
  77. package/lib/view.mjs +5 -2
  78. package/package.json +4 -2
  79. package/types/index.d.ts +17 -0
@@ -1,11 +1,11 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 922 593" role="img" aria-labelledby="title desc">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 922 574" role="img" aria-labelledby="title desc">
2
2
  <title id="title">The Router band above the Claude Code prompt</title>
3
- <desc id="desc">Eight band states drawn by the router code: routed to high, two rows on a Claude plan with the hover row, two rows on an API key, a pending pin, a missing classifier key, routing off, an activity move with activity routing on, and cost mode set for the session.</desc>
3
+ <desc id="desc">Eight band states drawn by the router code: routed to high, two rows on a Claude plan with the hover controls shown, two rows on an API key, 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="593" rx="8" fill="#1c1c1c"/>
8
+ <rect width="922" height="574" 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>
@@ -17,32 +17,38 @@
17
17
  <text x="211.2" y="56" fill="#d77757" font-style="italic" xml:space="preserve">code</text>
18
18
  <text x="265.8" y="56" fill="#7c7c7c" xml:space="preserve">↑ clearly stronger</text>
19
19
  <text x="429.6" y="56" fill="#7c7c7c" xml:space="preserve">Jev 88% ≥ 82%</text>
20
- <text x="593.4" y="56" fill="#7c7c7c" xml:space="preserve">ctx </text>
21
- <text x="624.6" y="56" fill="#87d787" xml:space="preserve">▰▰</text>
22
- <text x="640.2" y="56" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
23
- <text x="663.6" y="56" fill="#87d787" xml:space="preserve"> 40%</text>
24
- <text x="718.2" y="56" fill="#7c7c7c" xml:space="preserve">cache </text>
25
- <text x="765.0" y="56" fill="#87d787" xml:space="preserve">100%</text>
26
- <text x="796.2" y="56" fill="#7c7c7c" xml:space="preserve"> last</text>
27
- <text x="850.8" y="56" fill="#d0d0d0" xml:space="preserve">Router</text>
28
- <text class="cap" x="20" y="95">Two rows on a Claude plan, with the hover row shown: plan windows, the session as a configured-rate API estimate against your model, pins</text>
29
- <rect x="12" y="103" width="897.6" height="67" rx="5" fill="#232323"/>
20
+ <text x="562.2" y="56" fill="#7c7c7c" xml:space="preserve">ctx </text>
21
+ <text x="593.4" y="56" fill="#87d787" xml:space="preserve">▰▰</text>
22
+ <text x="609.0" y="56" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
23
+ <text x="632.4" y="56" fill="#87d787" xml:space="preserve"> 40%</text>
24
+ <text x="687.0" y="56" fill="#7c7c7c" xml:space="preserve">cache </text>
25
+ <text x="733.8" y="56" fill="#87d787" xml:space="preserve">100%</text>
26
+ <text x="765.0" y="56" fill="#7c7c7c" xml:space="preserve"> last</text>
27
+ <rect x="819.6" y="42" width="78.0" height="18" rx="4" fill="#2e3340"/>
28
+ <text x="819.6" y="56" fill="#d0d0d0" xml:space="preserve">[ Router ]</text>
29
+ <text class="cap" x="20" y="95">Two rows on a Claude plan, with the hover controls shown over the readings: plan windows, the session as a configured-rate API estimate against your model, pins</text>
30
+ <rect x="12" y="103" width="897.6" height="48" rx="5" fill="#232323"/>
30
31
  <text x="24.0" y="121" fill="#e0708a" xml:space="preserve">▂</text>
31
32
  <text x="31.8" y="121" fill="#e0708a" xml:space="preserve">▄</text>
32
33
  <text x="39.6" y="121" fill="#e0708a" xml:space="preserve">▆</text>
33
34
  <text x="47.4" y="121" fill="#e0708a" xml:space="preserve">█</text>
34
35
  <text x="63.0" y="121" fill="#d0d0d0" font-weight="700" xml:space="preserve">Opus 5.5</text>
35
36
  <text x="125.4" y="121" fill="#d0d0d0" xml:space="preserve"> · xhigh</text>
36
- <text x="211.2" y="121" fill="#d77757" font-style="italic" xml:space="preserve">code</text>
37
- <text x="265.8" y="121" fill="#7c7c7c" xml:space="preserve">↑ clearly stronger</text>
38
- <text x="593.4" y="121" fill="#7c7c7c" xml:space="preserve">ctx </text>
39
- <text x="624.6" y="121" fill="#87d787" xml:space="preserve">▰▰</text>
40
- <text x="640.2" y="121" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
41
- <text x="663.6" y="121" fill="#87d787" xml:space="preserve"> 40%</text>
42
- <text x="718.2" y="121" fill="#7c7c7c" xml:space="preserve">cache </text>
43
- <text x="765.0" y="121" fill="#87d787" xml:space="preserve">100%</text>
44
- <text x="796.2" y="121" fill="#7c7c7c" xml:space="preserve"> last</text>
45
- <text x="850.8" y="121" fill="#d0d0d0" xml:space="preserve">Router</text>
37
+ <text x="211.2" y="121" fill="#7c7c7c" xml:space="preserve">pin </text>
38
+ <rect x="242.4" y="107" width="39.0" height="18" rx="4" fill="#2e3340"/>
39
+ <text x="242.4" y="121" fill="#d0d0d0" xml:space="preserve">[ ▂ ]</text>
40
+ <rect x="289.2" y="107" width="46.8" height="18" rx="4" fill="#2e3340"/>
41
+ <text x="289.2" y="121" fill="#d0d0d0" xml:space="preserve">[ ▂▄ ]</text>
42
+ <rect x="343.8" y="107" width="54.6" height="18" rx="4" fill="#2e3340"/>
43
+ <text x="343.8" y="121" fill="#d0d0d0" xml:space="preserve">[ ▂▄▆ ]</text>
44
+ <rect x="406.2" y="107" width="62.4" height="18" rx="4" fill="#2e3340"/>
45
+ <text x="406.2" y="121" fill="#d0d0d0" xml:space="preserve">[ ▂▄▆█ ]</text>
46
+ <rect x="484.2" y="107" width="93.6" height="18" rx="4" fill="#2e3340"/>
47
+ <text x="484.2" y="121" fill="#d0d0d0" xml:space="preserve">[ Turn off ]</text>
48
+ <rect x="593.4" y="107" width="70.2" height="18" rx="4" fill="#2e3340"/>
49
+ <text x="593.4" y="121" fill="#d0d0d0" xml:space="preserve">[ 1 row ]</text>
50
+ <rect x="819.6" y="107" width="78.0" height="18" rx="4" fill="#2e3340"/>
51
+ <text x="819.6" y="121" fill="#d0d0d0" xml:space="preserve">[ Router ]</text>
46
52
  <text x="24.0" y="140" fill="#7c7c7c" xml:space="preserve">plan 5h </text>
47
53
  <text x="86.4" y="140" fill="#87d787" xml:space="preserve">▰▰▰▰</text>
48
54
  <text x="117.6" y="140" fill="#7c7c7c" xml:space="preserve">▱▱▱▱</text>
@@ -53,125 +59,117 @@
53
59
  <text x="328.2" y="140" fill="#7c7c7c" xml:space="preserve">session </text>
54
60
  <text x="390.6" y="140" fill="#d0d0d0" font-weight="700" xml:space="preserve">≈$6.40</text>
55
61
  <text x="437.4" y="140" fill="#7c7c7c" xml:space="preserve"> API estimate</text>
56
- <text x="562.2" y="140" fill="#6fcf97" font-weight="700" xml:space="preserve">−$1.84 (−22%)</text>
62
+ <text x="562.2" y="140" fill="#87d787" font-weight="700" xml:space="preserve">−$1.84 (−22%)</text>
57
63
  <text x="663.6" y="140" fill="#7c7c7c" xml:space="preserve"> vs Opus 5.5</text>
58
64
  <text x="780.6" y="140" fill="#7c7c7c" xml:space="preserve">64 replies</text>
59
- <text x="24.0" y="159" fill="#7c7c7c" xml:space="preserve">pin </text>
60
- <rect x="55.2" y="145" width="140.4" height="18" rx="4" fill="#2e3340"/>
61
- <text x="55.2" y="159" fill="#d0d0d0" xml:space="preserve">[ ▂ Haiku·medium ]</text>
62
- <rect x="203.4" y="145" width="132.6" height="18" rx="4" fill="#2e3340"/>
63
- <text x="203.4" y="159" fill="#d0d0d0" xml:space="preserve">[ ▂▄ Haiku·high ]</text>
64
- <rect x="343.8" y="145" width="148.2" height="18" rx="4" fill="#2e3340"/>
65
- <text x="343.8" y="159" fill="#d0d0d0" xml:space="preserve">[ ▂▄▆ Opus·medium ]</text>
66
- <rect x="499.8" y="145" width="148.2" height="18" rx="4" fill="#2e3340"/>
67
- <text x="499.8" y="159" fill="#d0d0d0" xml:space="preserve">[ ▂▄▆█ Opus·xhigh ]</text>
68
- <rect x="663.6" y="145" width="93.6" height="18" rx="4" fill="#2e3340"/>
69
- <text x="663.6" y="159" fill="#d0d0d0" xml:space="preserve">[ Turn off ]</text>
70
- <rect x="772.8" y="145" width="70.2" height="18" rx="4" fill="#2e3340"/>
71
- <text x="772.8" y="159" fill="#d0d0d0" xml:space="preserve">[ 1 row ]</text>
72
- <text class="cap" x="20" y="198">Two rows on an API key: the session as a configured-rate API estimate, not an invoice, against your model</text>
73
- <rect x="12" y="206" width="897.6" height="48" rx="5" fill="#232323"/>
74
- <text x="24.0" y="224" fill="#e0708a" xml:space="preserve">▂</text>
75
- <text x="31.8" y="224" fill="#e0708a" xml:space="preserve">▄</text>
76
- <text x="39.6" y="224" fill="#e0708a" xml:space="preserve">▆</text>
77
- <text x="47.4" y="224" fill="#e0708a" xml:space="preserve">█</text>
78
- <text x="63.0" y="224" fill="#d0d0d0" font-weight="700" xml:space="preserve">Opus 5.5</text>
79
- <text x="125.4" y="224" fill="#d0d0d0" xml:space="preserve"> · xhigh</text>
80
- <text x="211.2" y="224" fill="#d77757" font-style="italic" xml:space="preserve">code</text>
81
- <text x="265.8" y="224" fill="#7c7c7c" xml:space="preserve">↑ clearly stronger</text>
82
- <text x="593.4" y="224" fill="#7c7c7c" xml:space="preserve">ctx </text>
83
- <text x="624.6" y="224" fill="#87d787" xml:space="preserve">▰▰</text>
84
- <text x="640.2" y="224" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
85
- <text x="663.6" y="224" fill="#87d787" xml:space="preserve"> 40%</text>
86
- <text x="718.2" y="224" fill="#7c7c7c" xml:space="preserve">cache </text>
87
- <text x="765.0" y="224" fill="#87d787" xml:space="preserve">100%</text>
88
- <text x="796.2" y="224" fill="#7c7c7c" xml:space="preserve"> last</text>
89
- <text x="850.8" y="224" fill="#d0d0d0" xml:space="preserve">Router</text>
90
- <text x="24.0" y="243" fill="#7c7c7c" xml:space="preserve">session </text>
91
- <text x="86.4" y="243" fill="#d0d0d0" font-weight="700" xml:space="preserve">≈$6.40</text>
92
- <text x="133.2" y="243" fill="#7c7c7c" xml:space="preserve"> API estimate</text>
93
- <text x="258.0" y="243" fill="#6fcf97" font-weight="700" xml:space="preserve">−$1.84 (−22%)</text>
94
- <text x="359.4" y="243" fill="#7c7c7c" xml:space="preserve"> vs Opus 5.5</text>
95
- <text x="476.4" y="243" fill="#7c7c7c" xml:space="preserve">64 replies</text>
96
- <text class="cap" x="20" y="282">A pin waits for the next turn; ✕ cancels it</text>
97
- <rect x="12" y="290" width="897.6" height="29" rx="5" fill="#232323"/>
98
- <text x="24.0" y="308" fill="#5f9fe0" xml:space="preserve">▂</text>
99
- <text x="31.8" y="308" fill="#5f9fe0" xml:space="preserve">▄</text>
100
- <text x="39.6" y="308" fill="#7c7c7c" xml:space="preserve">▆</text>
101
- <text x="47.4" y="308" fill="#7c7c7c" xml:space="preserve">█</text>
102
- <text x="63.0" y="308" fill="#d0d0d0" font-weight="700" xml:space="preserve">Haiku 5.5</text>
103
- <text x="133.2" y="308" fill="#d0d0d0" xml:space="preserve"> · high</text>
104
- <text x="211.2" y="308" fill="#d77757" font-style="italic" xml:space="preserve">ops</text>
105
- <text x="258.0" y="308" fill="#7c9cff" xml:space="preserve">⏵ next </text>
106
- <text x="312.6" y="308" fill="#d7af5f" xml:space="preserve">▂▄▆</text>
107
- <text x="336.0" y="308" fill="#d7af5f" xml:space="preserve"> Opus·medium</text>
108
- <text x="437.4" y="308" fill="#d0d0d0" xml:space="preserve">✕</text>
109
- <text x="468.6" y="308" fill="#7c7c7c" xml:space="preserve">= fits</text>
110
- <text x="593.4" y="308" fill="#7c7c7c" xml:space="preserve">ctx </text>
111
- <text x="624.6" y="308" fill="#87d787" xml:space="preserve">▰▰</text>
112
- <text x="640.2" y="308" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
113
- <text x="663.6" y="308" fill="#87d787" xml:space="preserve"> 40%</text>
114
- <text x="718.2" y="308" fill="#7c7c7c" xml:space="preserve">cache </text>
115
- <text x="765.0" y="308" fill="#87d787" xml:space="preserve">100%</text>
116
- <text x="796.2" y="308" fill="#7c7c7c" xml:space="preserve"> last</text>
117
- <text x="850.8" y="308" fill="#d0d0d0" xml:space="preserve">Router</text>
118
- <text class="cap" x="20" y="347">No classifier key: routing keeps the model and offers Set up</text>
119
- <rect x="12" y="355" width="897.6" height="29" rx="5" fill="#232323"/>
120
- <text x="24.0" y="373" fill="#f0b429" xml:space="preserve">⚠ Jev: no API key</text>
121
- <rect x="180.0" y="359" width="78.0" height="18" rx="4" fill="#87afff"/>
122
- <text x="180.0" y="373" fill="#0d1016" font-weight="700" xml:space="preserve">[ Set up ]</text>
123
- <text x="281.4" y="373" fill="#5f9fe0" xml:space="preserve">▂</text>
124
- <text x="289.2" y="373" fill="#5f9fe0" xml:space="preserve">▄</text>
125
- <text x="297.0" y="373" fill="#7c7c7c" xml:space="preserve">▆</text>
126
- <text x="304.8" y="373" fill="#7c7c7c" xml:space="preserve">█</text>
127
- <text x="320.4" y="373" fill="#d0d0d0" font-weight="700" xml:space="preserve">Haiku 5.5</text>
128
- <text x="390.6" y="373" fill="#d0d0d0" xml:space="preserve"> · high</text>
129
- <text x="468.6" y="373" fill="#7c7c7c" xml:space="preserve">= no advice</text>
130
- <text x="570.0" y="373" fill="#d0d0d0" xml:space="preserve">Router</text>
131
- <text class="cap" x="20" y="412">Routing off: /model chose the model; Turn on resumes routing</text>
132
- <rect x="12" y="420" width="897.6" height="29" rx="5" fill="#232323"/>
133
- <text x="24.0" y="438" fill="#7c7c7c" xml:space="preserve">○ </text>
134
- <text x="39.6" y="438" fill="#d0d0d0" font-weight="700" xml:space="preserve">Sonnet 5.5</text>
135
- <rect x="125.4" y="424" width="85.8" height="18" rx="4" fill="#87afff"/>
136
- <text x="125.4" y="438" fill="#0d1016" font-weight="700" xml:space="preserve">[ Turn on ]</text>
137
- <text x="234.6" y="438" fill="#7c7c7c" xml:space="preserve">routing off · /model</text>
138
- <text x="406.2" y="438" fill="#d0d0d0" xml:space="preserve">Router</text>
139
- <text class="cap" x="20" y="477">Activity routing on: an ops turn at medium moves from Opus to Haiku</text>
140
- <rect x="12" y="485" width="897.6" height="29" rx="5" fill="#232323"/>
141
- <text x="24.0" y="503" fill="#d7af5f" xml:space="preserve">▂</text>
142
- <text x="31.8" y="503" fill="#d7af5f" xml:space="preserve">▄</text>
143
- <text x="39.6" y="503" fill="#d7af5f" xml:space="preserve">▆</text>
144
- <text x="47.4" y="503" fill="#7c7c7c" xml:space="preserve">█</text>
145
- <text x="63.0" y="503" fill="#d0d0d0" font-weight="700" xml:space="preserve">Haiku 5.5</text>
146
- <text x="133.2" y="503" fill="#d0d0d0" xml:space="preserve"> · high</text>
147
- <text x="211.2" y="503" fill="#7c7c7c" xml:space="preserve">↓ ops</text>
148
- <text x="593.4" y="503" fill="#7c7c7c" xml:space="preserve">ctx </text>
149
- <text x="624.6" y="503" fill="#87d787" xml:space="preserve">▰▰</text>
150
- <text x="640.2" y="503" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
151
- <text x="663.6" y="503" fill="#87d787" xml:space="preserve"> 40%</text>
152
- <text x="718.2" y="503" fill="#7c7c7c" xml:space="preserve">cache </text>
153
- <text x="765.0" y="503" fill="#87d787" xml:space="preserve">100%</text>
154
- <text x="796.2" y="503" fill="#7c7c7c" xml:space="preserve"> last</text>
155
- <text x="850.8" y="503" fill="#d0d0d0" xml:space="preserve">Router</text>
156
- <text class="cap" x="20" y="542">Cost mode for this session: high runs Opus at high instead of xhigh</text>
157
- <rect x="12" y="550" width="897.6" height="29" rx="5" fill="#232323"/>
158
- <text x="24.0" y="568" fill="#e0708a" xml:space="preserve">▂</text>
159
- <text x="31.8" y="568" fill="#e0708a" xml:space="preserve">▄</text>
160
- <text x="39.6" y="568" fill="#e0708a" xml:space="preserve">▆</text>
161
- <text x="47.4" y="568" fill="#e0708a" xml:space="preserve">█</text>
162
- <text x="63.0" y="568" fill="#d0d0d0" font-weight="700" xml:space="preserve">Opus 5.5</text>
163
- <text x="125.4" y="568" fill="#d0d0d0" xml:space="preserve"> · high</text>
164
- <text x="203.4" y="568" fill="#d77757" font-style="italic" xml:space="preserve">code</text>
165
- <text x="258.0" y="568" fill="#7c7c7c" xml:space="preserve">= fits</text>
166
- <rect x="328.2" y="554" width="46.8" height="18" rx="4" fill="#2a3040"/>
167
- <text x="328.2" y="568" fill="#8b93a7" xml:space="preserve"> cost </text>
168
- <text x="375.0" y="568" fill="#7c7c7c" xml:space="preserve"> effort only</text>
169
- <text x="593.4" y="568" fill="#7c7c7c" xml:space="preserve">ctx </text>
170
- <text x="624.6" y="568" fill="#87d787" xml:space="preserve">▰▰</text>
171
- <text x="640.2" y="568" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
172
- <text x="663.6" y="568" fill="#87d787" xml:space="preserve"> 40%</text>
173
- <text x="718.2" y="568" fill="#7c7c7c" xml:space="preserve">cache </text>
174
- <text x="765.0" y="568" fill="#87d787" xml:space="preserve">100%</text>
175
- <text x="796.2" y="568" fill="#7c7c7c" xml:space="preserve"> last</text>
176
- <text x="850.8" y="568" fill="#d0d0d0" xml:space="preserve">Router</text>
65
+ <text class="cap" x="20" y="179">Two rows on an API key: the session as a configured-rate API estimate, not an invoice, against your model</text>
66
+ <rect x="12" y="187" width="897.6" height="48" rx="5" fill="#232323"/>
67
+ <text x="24.0" y="205" fill="#e0708a" xml:space="preserve">▂</text>
68
+ <text x="31.8" y="205" fill="#e0708a" xml:space="preserve">▄</text>
69
+ <text x="39.6" y="205" fill="#e0708a" xml:space="preserve">▆</text>
70
+ <text x="47.4" y="205" fill="#e0708a" xml:space="preserve">█</text>
71
+ <text x="63.0" y="205" fill="#d0d0d0" font-weight="700" xml:space="preserve">Opus 5.5</text>
72
+ <text x="125.4" y="205" fill="#d0d0d0" xml:space="preserve"> · xhigh</text>
73
+ <text x="211.2" y="205" fill="#d77757" font-style="italic" xml:space="preserve">code</text>
74
+ <text x="265.8" y="205" fill="#7c7c7c" xml:space="preserve">↑ clearly stronger</text>
75
+ <text x="562.2" y="205" fill="#7c7c7c" xml:space="preserve">ctx </text>
76
+ <text x="593.4" y="205" fill="#87d787" xml:space="preserve">▰▰</text>
77
+ <text x="609.0" y="205" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
78
+ <text x="632.4" y="205" fill="#87d787" xml:space="preserve"> 40%</text>
79
+ <text x="687.0" y="205" fill="#7c7c7c" xml:space="preserve">cache </text>
80
+ <text x="733.8" y="205" fill="#87d787" xml:space="preserve">100%</text>
81
+ <text x="765.0" y="205" fill="#7c7c7c" xml:space="preserve"> last</text>
82
+ <rect x="819.6" y="191" width="78.0" height="18" rx="4" fill="#2e3340"/>
83
+ <text x="819.6" y="205" fill="#d0d0d0" xml:space="preserve">[ Router ]</text>
84
+ <text x="24.0" y="224" fill="#7c7c7c" xml:space="preserve">session </text>
85
+ <text x="86.4" y="224" fill="#d0d0d0" font-weight="700" xml:space="preserve">≈$6.40</text>
86
+ <text x="133.2" y="224" fill="#7c7c7c" xml:space="preserve"> API estimate</text>
87
+ <text x="258.0" y="224" fill="#87d787" font-weight="700" xml:space="preserve">−$1.84 (−22%)</text>
88
+ <text x="359.4" y="224" fill="#7c7c7c" xml:space="preserve"> vs Opus 5.5</text>
89
+ <text x="476.4" y="224" fill="#7c7c7c" xml:space="preserve">64 replies</text>
90
+ <text class="cap" x="20" y="263">A pin waits for the next turn; ✕ cancels it</text>
91
+ <rect x="12" y="271" width="897.6" height="29" rx="5" fill="#232323"/>
92
+ <text x="24.0" y="289" fill="#5f9fe0" xml:space="preserve">▂</text>
93
+ <text x="31.8" y="289" fill="#5f9fe0" xml:space="preserve">▄</text>
94
+ <text x="39.6" y="289" fill="#7c7c7c" xml:space="preserve">▆</text>
95
+ <text x="47.4" y="289" fill="#7c7c7c" xml:space="preserve">█</text>
96
+ <text x="63.0" y="289" fill="#d0d0d0" font-weight="700" xml:space="preserve">Haiku 5.5</text>
97
+ <text x="133.2" y="289" fill="#d0d0d0" xml:space="preserve"> · high</text>
98
+ <text x="211.2" y="289" fill="#d77757" font-style="italic" xml:space="preserve">ops</text>
99
+ <text x="258.0" y="289" fill="#5fafd7" xml:space="preserve">⏵ next </text>
100
+ <text x="312.6" y="289" fill="#d7af5f" xml:space="preserve">▂▄▆</text>
101
+ <text x="336.0" y="289" fill="#d7af5f" xml:space="preserve"> Opus·medium</text>
102
+ <text x="437.4" y="289" fill="#d0d0d0" xml:space="preserve">✕</text>
103
+ <text x="468.6" y="289" fill="#7c7c7c" xml:space="preserve">= fits</text>
104
+ <text x="593.4" y="289" fill="#7c7c7c" xml:space="preserve">ctx </text>
105
+ <text x="624.6" y="289" fill="#87d787" xml:space="preserve">▰▰</text>
106
+ <text x="640.2" y="289" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
107
+ <text x="663.6" y="289" fill="#87d787" xml:space="preserve"> 40%</text>
108
+ <text x="718.2" y="289" fill="#7c7c7c" xml:space="preserve">cache </text>
109
+ <text x="765.0" y="289" fill="#87d787" xml:space="preserve">100%</text>
110
+ <text x="796.2" y="289" fill="#7c7c7c" xml:space="preserve"> last</text>
111
+ <text x="850.8" y="289" fill="#d0d0d0" xml:space="preserve">Router</text>
112
+ <text class="cap" x="20" y="328">No classifier key: routing keeps the model and offers Set up</text>
113
+ <rect x="12" y="336" width="897.6" height="29" rx="5" fill="#232323"/>
114
+ <text x="24.0" y="354" fill="#d7af5f" xml:space="preserve">⚠ Jev: no API key</text>
115
+ <rect x="180.0" y="340" width="78.0" height="18" rx="4" fill="#87afff"/>
116
+ <text x="180.0" y="354" fill="#0d1016" font-weight="700" xml:space="preserve">[ Set up ]</text>
117
+ <text x="281.4" y="354" fill="#5f9fe0" xml:space="preserve">▂</text>
118
+ <text x="289.2" y="354" fill="#5f9fe0" xml:space="preserve">▄</text>
119
+ <text x="297.0" y="354" fill="#7c7c7c" xml:space="preserve">▆</text>
120
+ <text x="304.8" y="354" fill="#7c7c7c" xml:space="preserve">█</text>
121
+ <text x="320.4" y="354" fill="#d0d0d0" font-weight="700" xml:space="preserve">Haiku 5.5</text>
122
+ <text x="390.6" y="354" fill="#d0d0d0" xml:space="preserve"> · high</text>
123
+ <text x="468.6" y="354" fill="#7c7c7c" xml:space="preserve">= no advice</text>
124
+ <rect x="570.0" y="340" width="78.0" height="18" rx="4" fill="#2e3340"/>
125
+ <text x="570.0" y="354" fill="#d0d0d0" xml:space="preserve">[ Router ]</text>
126
+ <text class="cap" x="20" y="393">Routing off: /model chose the model; Turn on resumes routing</text>
127
+ <rect x="12" y="401" width="897.6" height="29" rx="5" fill="#232323"/>
128
+ <text x="24.0" y="419" fill="#7c7c7c" xml:space="preserve">○ </text>
129
+ <text x="39.6" y="419" fill="#d0d0d0" font-weight="700" xml:space="preserve">Sonnet 5.5</text>
130
+ <rect x="125.4" y="405" width="85.8" height="18" rx="4" fill="#87afff"/>
131
+ <text x="125.4" y="419" fill="#0d1016" font-weight="700" xml:space="preserve">[ Turn on ]</text>
132
+ <text x="234.6" y="419" fill="#7c7c7c" xml:space="preserve">routing off · /model</text>
133
+ <rect x="406.2" y="405" width="78.0" height="18" rx="4" fill="#2e3340"/>
134
+ <text x="406.2" y="419" fill="#d0d0d0" xml:space="preserve">[ Router ]</text>
135
+ <text class="cap" x="20" y="458">Activity routing on: an ops turn at medium moves from Opus to Haiku</text>
136
+ <rect x="12" y="466" width="897.6" height="29" rx="5" fill="#232323"/>
137
+ <text x="24.0" y="484" fill="#d7af5f" xml:space="preserve">▂</text>
138
+ <text x="31.8" y="484" fill="#d7af5f" xml:space="preserve">▄</text>
139
+ <text x="39.6" y="484" fill="#d7af5f" xml:space="preserve">▆</text>
140
+ <text x="47.4" y="484" fill="#7c7c7c" xml:space="preserve">█</text>
141
+ <text x="63.0" y="484" fill="#d0d0d0" font-weight="700" xml:space="preserve">Haiku 5.5</text>
142
+ <text x="133.2" y="484" fill="#d0d0d0" xml:space="preserve"> · high</text>
143
+ <text x="211.2" y="484" fill="#7c7c7c" xml:space="preserve">↓ ops</text>
144
+ <text x="562.2" y="484" fill="#7c7c7c" xml:space="preserve">ctx </text>
145
+ <text x="593.4" y="484" fill="#87d787" xml:space="preserve">▰▰</text>
146
+ <text x="609.0" y="484" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
147
+ <text x="632.4" y="484" fill="#87d787" xml:space="preserve"> 40%</text>
148
+ <text x="687.0" y="484" fill="#7c7c7c" xml:space="preserve">cache </text>
149
+ <text x="733.8" y="484" fill="#87d787" xml:space="preserve">100%</text>
150
+ <text x="765.0" y="484" fill="#7c7c7c" xml:space="preserve"> last</text>
151
+ <rect x="819.6" y="470" width="78.0" height="18" rx="4" fill="#2e3340"/>
152
+ <text x="819.6" y="484" fill="#d0d0d0" xml:space="preserve">[ Router ]</text>
153
+ <text class="cap" x="20" y="523">Cost mode for this session: high runs Opus at high instead of xhigh</text>
154
+ <rect x="12" y="531" width="897.6" height="29" rx="5" fill="#232323"/>
155
+ <text x="24.0" y="549" fill="#e0708a" xml:space="preserve">▂</text>
156
+ <text x="31.8" y="549" fill="#e0708a" xml:space="preserve">▄</text>
157
+ <text x="39.6" y="549" fill="#e0708a" xml:space="preserve">▆</text>
158
+ <text x="47.4" y="549" fill="#e0708a" xml:space="preserve">█</text>
159
+ <text x="63.0" y="549" fill="#d0d0d0" font-weight="700" xml:space="preserve">Opus 5.5</text>
160
+ <text x="125.4" y="549" fill="#d0d0d0" xml:space="preserve"> · high</text>
161
+ <text x="203.4" y="549" fill="#d77757" font-style="italic" xml:space="preserve">code</text>
162
+ <text x="258.0" y="549" fill="#7c7c7c" xml:space="preserve">= fits</text>
163
+ <rect x="328.2" y="535" width="46.8" height="18" rx="4" fill="#2a3040"/>
164
+ <text x="328.2" y="549" fill="#7c7c7c" xml:space="preserve"> cost </text>
165
+ <text x="375.0" y="549" fill="#7c7c7c" xml:space="preserve"> effort only</text>
166
+ <text x="562.2" y="549" fill="#7c7c7c" xml:space="preserve">ctx </text>
167
+ <text x="593.4" y="549" fill="#87d787" xml:space="preserve">▰▰</text>
168
+ <text x="609.0" y="549" fill="#7c7c7c" xml:space="preserve">▱▱▱</text>
169
+ <text x="632.4" y="549" fill="#87d787" xml:space="preserve"> 40%</text>
170
+ <text x="687.0" y="549" fill="#7c7c7c" xml:space="preserve">cache </text>
171
+ <text x="733.8" y="549" fill="#87d787" xml:space="preserve">100%</text>
172
+ <text x="765.0" y="549" fill="#7c7c7c" xml:space="preserve"> last</text>
173
+ <rect x="819.6" y="535" width="78.0" height="18" rx="4" fill="#2e3340"/>
174
+ <text x="819.6" y="549" fill="#d0d0d0" xml:space="preserve">[ Router ]</text>
177
175
  </svg>
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 672 591" role="img" aria-labelledby="title desc">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 922 648" role="img" aria-labelledby="title desc">
2
2
  <title id="title">Router pane, Classifier tab</title>
3
3
  <desc id="desc">One row per classifier to compare: where the prompt goes, its activity probe, its p95 wait and whether its credentials are complete, with Set up for a missing Jev API key; the active classifier’s deadline against its wait, the host that receives the prompt, health and credentials; the agreement with tools across sessions; and Undo after a switch.</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="672" height="591" rx="8" fill="#1c1c1c"/>
9
- <rect x="10" y="10" width="652" height="571" rx="6" fill="none" stroke="#3f5f8f"/>
8
+ <rect width="922" height="648" rx="8" fill="#1c1c1c"/>
9
+ <rect x="10" y="10" width="902" height="628" rx="6" fill="none" stroke="#3f5f8f"/>
10
10
  <text x="24.0" y="34" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTER</text>
11
11
  <rect x="86.4" y="20" width="62.4" height="18" rx="4" fill="#87afff"/>
12
12
  <text x="86.4" y="34" fill="#0d1016" font-weight="700" xml:space="preserve">[ ◉ on ]</text>
@@ -31,8 +31,8 @@
31
31
  <rect x="24.0" y="115" width="124.8" height="18" rx="4" fill="#2e3340"/>
32
32
  <text x="24.0" y="129" fill="#d0d0d0" xml:space="preserve">[ ○ Jev ]</text>
33
33
  <text x="156.6" y="129" fill="#7c7c7c" xml:space="preserve">api.typesafe.ai</text>
34
- <text x="320.4" y="129" fill="#d0d0d0" xml:space="preserve">70/70</text>
35
- <text x="382.8" y="129" fill="#d0d0d0" xml:space="preserve">299 ms</text>
34
+ <text x="320.4" y="129" fill="#7c7c7c" xml:space="preserve">—</text>
35
+ <text x="382.8" y="129" fill="#7c7c7c" xml:space="preserve">—</text>
36
36
  <text x="460.8" y="129" fill="#d7af5f" xml:space="preserve">○ no API key </text>
37
37
  <rect x="570.0" y="115" width="78.0" height="18" rx="4" fill="#2e3340"/>
38
38
  <text x="570.0" y="129" fill="#d0d0d0" xml:space="preserve">[ Set up ]</text>
@@ -68,30 +68,47 @@
68
68
  <text x="320.4" y="224" fill="#d0d0d0" xml:space="preserve">66/70</text>
69
69
  <text x="382.8" y="224" fill="#d0d0d0" xml:space="preserve">3483 ms</text>
70
70
  <text x="460.8" y="224" fill="#87d787" xml:space="preserve">● ready</text>
71
- <text x="24.0" y="243" fill="#7c7c7c" xml:space="preserve"> probe: test prompts with a known activity it answered right, and its p95 wait</text>
72
- <text x="24.0" y="281" fill="#5fafd7" font-weight="700" xml:space="preserve">CLEF FLASH</text>
73
- <text x="102.0" y="281" fill="#7c7c7c" xml:space="preserve"> · active</text>
74
- <text x="24.0" y="300" fill="#d0d0d0" xml:space="preserve">Deadline</text>
75
- <text x="117.6" y="300" fill="#d0d0d0" xml:space="preserve">3000 ms ▾</text>
76
- <text x="211.2" y="300" fill="#7c7c7c" xml:space="preserve">p95 874 ms in its probe</text>
77
- <text x="24.0" y="319" fill="#7c7c7c" xml:space="preserve"> past the deadline the turn keeps its model</text>
78
- <text x="24.0" y="338" fill="#d0d0d0" xml:space="preserve">Sends</text>
79
- <text x="117.6" y="338" fill="#d0d0d0" xml:space="preserve">prompt + 6 recent turns → api.cloudflare.com</text>
80
- <text x="24.0" y="357" fill="#d0d0d0" xml:space="preserve">Health</text>
81
- <text x="117.6" y="357" fill="#d0d0d0" xml:space="preserve">not paused</text>
82
- <text x="195.6" y="357" fill="#d0d0d0" xml:space="preserve"> · 0 recent failures</text>
83
- <text x="24.0" y="376" fill="#d0d0d0" xml:space="preserve">Credentials</text>
84
- <rect x="117.6" y="362" width="62.4" height="18" rx="4" fill="#2e3340"/>
85
- <text x="117.6" y="376" fill="#d0d0d0" xml:space="preserve">[ Edit ]</text>
86
- <text x="180.0" y="376" fill="#7c7c7c" xml:space="preserve"> opens /plugin configure</text>
87
- <text x="24.0" y="414" fill="#5fafd7" font-weight="700" xml:space="preserve">ACROSS SESSIONS · since the last reset</text>
88
- <text x="24.0" y="433" fill="#d0d0d0" xml:space="preserve">Labelled 83 turns</text>
89
- <text x="24.0" y="452" fill="#d0d0d0" xml:space="preserve">Agreement classifier vs tools: 78 of 83 turns (94%)</text>
90
- <text x="24.0" y="471" fill="#d0d0d0" xml:space="preserve">Code/ops/explore classifier vs tools: 78 of 83 turns (94%)</text>
91
- <text x="24.0" y="490" fill="#d0d0d0" xml:space="preserve">Mismatch code → read 4 · ops → code 1</text>
92
- <text x="24.0" y="509" fill="#d0d0d0" xml:space="preserve">Activity moves 9 taken · 4 refused</text>
93
- <text x="24.0" y="528" fill="#d0d0d0" xml:space="preserve">Escalations after a cheaper activity move: 0 in 7 moves</text>
94
- <text x="24.0" y="566" fill="#87d787" xml:space="preserve">Saved: classifier Clef → Clef Flash. Applies from the next turn. </text>
95
- <rect x="538.8" y="552" width="62.4" height="18" rx="4" fill="#2e3340"/>
96
- <text x="538.8" y="566" fill="#d0d0d0" xml:space="preserve">[ Undo ]</text>
71
+ <text x="24.0" y="243" fill="#7c7c7c" xml:space="preserve"> probe: historical turn-activity questions, not goal/phase accuracy; p95 from that run</text>
72
+ <path d="M27.9 286V276H893.7V286" fill="none" stroke="#7c7c7c"/>
73
+ <path d="M27.9 286V305" fill="none" stroke="#7c7c7c"/>
74
+ <text x="39.6" y="300" fill="#5fafd7" font-weight="700" xml:space="preserve">CLEF FLASH</text>
75
+ <text x="117.6" y="300" fill="#7c7c7c" xml:space="preserve"> · active</text>
76
+ <path d="M893.7 286V305" fill="none" stroke="#7c7c7c"/>
77
+ <path d="M27.9 305V324" fill="none" stroke="#7c7c7c"/>
78
+ <text x="39.6" y="319" fill="#d0d0d0" xml:space="preserve">Deadline</text>
79
+ <text x="133.2" y="319" fill="#d0d0d0" xml:space="preserve">3000 ms ▾</text>
80
+ <text x="226.8" y="319" fill="#7c7c7c" xml:space="preserve">p95 874 ms in its probe</text>
81
+ <path d="M893.7 305V324" fill="none" stroke="#7c7c7c"/>
82
+ <path d="M27.9 324V343" fill="none" stroke="#7c7c7c"/>
83
+ <text x="133.2" y="338" fill="#7c7c7c" xml:space="preserve">past the deadline the turn keeps its model</text>
84
+ <path d="M893.7 324V343" fill="none" stroke="#7c7c7c"/>
85
+ <path d="M27.9 343V362" fill="none" stroke="#7c7c7c"/>
86
+ <text x="39.6" y="357" fill="#d0d0d0" xml:space="preserve">Sends</text>
87
+ <text x="133.2" y="357" fill="#d0d0d0" xml:space="preserve">prompt + 6 recent turns → api.cloudflare.com</text>
88
+ <path d="M893.7 343V362" fill="none" stroke="#7c7c7c"/>
89
+ <path d="M27.9 362V381" fill="none" stroke="#7c7c7c"/>
90
+ <text x="133.2" y="376" fill="#7c7c7c" xml:space="preserve">the bounded active goal and current step also go to the classifier</text>
91
+ <path d="M893.7 362V381" fill="none" stroke="#7c7c7c"/>
92
+ <path d="M27.9 381V400" fill="none" stroke="#7c7c7c"/>
93
+ <text x="39.6" y="395" fill="#d0d0d0" xml:space="preserve">Health</text>
94
+ <text x="133.2" y="395" fill="#d0d0d0" xml:space="preserve">not paused</text>
95
+ <text x="211.2" y="395" fill="#d0d0d0" xml:space="preserve"> · 0 recent failures</text>
96
+ <path d="M893.7 381V400" fill="none" stroke="#7c7c7c"/>
97
+ <path d="M27.9 400V419" fill="none" stroke="#7c7c7c"/>
98
+ <text x="39.6" y="414" fill="#d0d0d0" xml:space="preserve">Credentials</text>
99
+ <rect x="133.2" y="400" width="62.4" height="18" rx="4" fill="#2e3340"/>
100
+ <text x="133.2" y="414" fill="#d0d0d0" xml:space="preserve">[ Edit ]</text>
101
+ <text x="195.6" y="414" fill="#7c7c7c" xml:space="preserve"> opens /plugin configure</text>
102
+ <path d="M893.7 400V419" fill="none" stroke="#7c7c7c"/>
103
+ <path d="M27.9 419V428H893.7V419" fill="none" stroke="#7c7c7c"/>
104
+ <text x="24.0" y="471" fill="#5fafd7" font-weight="700" xml:space="preserve">ACROSS SESSIONS · since the last reset</text>
105
+ <text x="24.0" y="490" fill="#d0d0d0" xml:space="preserve">Labelled 83 turns</text>
106
+ <text x="24.0" y="509" fill="#d0d0d0" xml:space="preserve">Tool compatibility (not accuracy): 78 of 83 turns (94%)</text>
107
+ <text x="24.0" y="528" fill="#d0d0d0" xml:space="preserve">Code/ops/explore classifier vs tools: 78 of 83 turns (94%)</text>
108
+ <text x="24.0" y="547" fill="#d0d0d0" xml:space="preserve">Mismatch code → read 4 · ops → code 1</text>
109
+ <text x="24.0" y="566" fill="#d0d0d0" xml:space="preserve">Activity moves 9 taken · 4 refused</text>
110
+ <text x="24.0" y="585" fill="#d0d0d0" xml:space="preserve">Escalations after a cheaper activity move: 0 in 7 moves</text>
111
+ <text x="24.0" y="623" fill="#87d787" xml:space="preserve">Saved: classifier Clef → Clef Flash. Applies from the next turn. </text>
112
+ <rect x="538.8" y="609" width="62.4" height="18" rx="4" fill="#2e3340"/>
113
+ <text x="538.8" y="623" fill="#d0d0d0" xml:space="preserve">[ Undo ]</text>
97
114
  </svg>