@alexeiled/claude-router 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,138 +1,111 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 657 1180" role="img" aria-labelledby="title desc">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 665 838" role="img" aria-labelledby="title desc">
2
2
  <title id="title">Router pane, Usage tab</title>
3
- <desc id="desc">Routing vs your model first: routed replies against the same tokens on your model, Opus 5.5 at xhigh this session and each session’s own model since the last reset, the difference split into cheaper models, stronger models and switch cache writes, the session against the other models, the two costs as bars and the replies by tier; then Claude’s own readings, activity counts with their estimated cost and route, the counts across sessions, and estimates.</desc>
3
+ <desc id="desc">The answer first, routing saved $1.84 (22%) against Opus 5.5 at xhigh; then routed replies against the same tokens on your model, this session and since the last reset, the difference split into cheaper models, stronger models and switch cache writes, the two costs as bars and the replies by tier; plan quota; this session by activity with estimated cost and route; and Claude’s readings on one line with details.</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="657" height="1180" rx="8" fill="#1c1c1c"/>
9
- <rect x="10" y="10" width="637" height="1160" rx="6" fill="none" stroke="#3f5f8f"/>
8
+ <rect width="665" height="838" rx="8" fill="#1c1c1c"/>
9
+ <rect x="10" y="10" width="645" height="818" 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>
13
13
  <rect x="164.4" y="20" width="70.2" height="18" rx="4" fill="#2e3340"/>
14
14
  <text x="164.4" y="34" fill="#d0d0d0" xml:space="preserve">[ ○ off ]</text>
15
- <text x="234.6" y="34" fill="#7c7c7c" xml:space="preserve"> off keeps the /model choice</text>
16
- <text x="24.0" y="53" fill="#87d787" xml:space="preserve">Jev ready · 347 ms</text>
17
- <rect x="24.0" y="58" width="54.6" height="18" rx="4" fill="#2e3340"/>
18
- <text x="24.0" y="72" fill="#d0d0d0" xml:space="preserve">[ Now ]</text>
19
- <rect x="86.4" y="58" width="85.8" height="18" rx="4" fill="#2e3340"/>
20
- <text x="86.4" y="72" fill="#d0d0d0" xml:space="preserve">[ Routing ]</text>
21
- <rect x="180.0" y="58" width="109.2" height="18" rx="4" fill="#2e3340"/>
22
- <text x="180.0" y="72" fill="#d0d0d0" xml:space="preserve">[ Classifier ]</text>
23
- <rect x="297.0" y="58" width="70.2" height="18" rx="4" fill="#87afff"/>
24
- <text x="297.0" y="72" fill="#0d1016" font-weight="700" xml:space="preserve">[ Usage ]</text>
25
- <rect x="375.0" y="58" width="39.0" height="18" rx="4" fill="#2e3340"/>
26
- <text x="375.0" y="72" fill="#d0d0d0" xml:space="preserve">[ ? ]</text>
27
- <text x="24.0" y="110" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTING VS YOUR MODEL</text>
28
- <text x="187.8" y="110" fill="#7c7c7c" xml:space="preserve"> · </text>
29
- <text x="211.2" y="110" fill="#e0708a" font-weight="700" xml:space="preserve">Opus 5.5 · xhigh</text>
30
- <text x="359.4" y="110" fill="#7c7c7c" xml:space="preserve">this session</text>
31
- <text x="476.4" y="110" fill="#7c7c7c" xml:space="preserve">since Oct 3</text>
32
- <text x="24.0" y="129" fill="#d0d0d0" xml:space="preserve"> Routed replies</text>
33
- <text x="359.4" y="129" fill="#d0d0d0" xml:space="preserve">$6.40</text>
34
- <text x="476.4" y="129" fill="#d0d0d0" xml:space="preserve">$41.18</text>
35
- <text x="24.0" y="148" fill="#d0d0d0" xml:space="preserve"> Same tokens on your model</text>
36
- <text x="359.4" y="148" fill="#d0d0d0" xml:space="preserve">$8.24</text>
37
- <text x="476.4" y="148" fill="#d0d0d0" xml:space="preserve">$52.60</text>
38
- <text x="24.0" y="167" fill="#d0d0d0" font-weight="700" xml:space="preserve"> Difference</text>
39
- <text x="359.4" y="167" fill="#6fcf97" font-weight="700" xml:space="preserve">−$1.84 −22%</text>
40
- <text x="476.4" y="167" fill="#6fcf97" font-weight="700" xml:space="preserve">−$11.42 −22%</text>
41
- <text x="24.0" y="186" fill="#7c7c7c" xml:space="preserve"> vs other models: Sonnet 5.5 extra $2.28 · Haiku 5.5 extra $6.19</text>
42
- <text x="24.0" y="205" fill="#7c7c7c" xml:space="preserve"> cheaper models</text>
43
- <text x="359.4" y="205" fill="#6fcf97" xml:space="preserve">−$2.31</text>
44
- <text x="476.4" y="205" fill="#6fcf97" xml:space="preserve">−$14.90</text>
45
- <text x="24.0" y="224" fill="#7c7c7c" xml:space="preserve"> stronger than yours</text>
46
- <text x="359.4" y="224" fill="#d0d0d0" xml:space="preserve">$0.00</text>
47
- <text x="476.4" y="224" fill="#d0d0d0" xml:space="preserve">$0.00</text>
48
- <text x="24.0" y="243" fill="#7c7c7c" xml:space="preserve"> cache writes from switches</text>
49
- <text x="359.4" y="243" fill="#f0b429" xml:space="preserve">+$0.47</text>
50
- <text x="476.4" y="243" fill="#f0b429" xml:space="preserve">+$3.48</text>
51
- <text x="24.0" y="281" fill="#7c7c7c" xml:space="preserve"> routed </text>
52
- <text x="133.2" y="281" fill="#5fd7af" xml:space="preserve">█</text>
53
- <text x="141.0" y="281" fill="#5f9fe0" xml:space="preserve">██████</text>
54
- <text x="187.8" y="281" fill="#d7af5f" xml:space="preserve">██████</text>
55
- <text x="234.6" y="281" fill="#e0708a" xml:space="preserve">████</text>
56
- <text x="265.8" y="281" fill="#7c7c7c" xml:space="preserve">░░░░░</text>
57
- <text x="304.8" y="281" fill="#d0d0d0" xml:space="preserve"> $6.40</text>
58
- <text x="24.0" y="300" fill="#7c7c7c" xml:space="preserve"> your model </text>
59
- <text x="133.2" y="300" fill="#e0708a" xml:space="preserve">██████████████████████</text>
60
- <text x="304.8" y="300" fill="#d0d0d0" xml:space="preserve"> $8.24</text>
61
- <text x="39.6" y="319" fill="#5fd7af" font-weight="700" xml:space="preserve">■ </text>
62
- <text x="55.2" y="319" fill="#7c7c7c" xml:space="preserve">micro 19% </text>
63
- <text x="141.0" y="319" fill="#5f9fe0" font-weight="700" xml:space="preserve">■ </text>
64
- <text x="156.6" y="319" fill="#7c7c7c" xml:space="preserve">low 41% </text>
65
- <text x="226.8" y="319" fill="#d7af5f" font-weight="700" xml:space="preserve">■ </text>
66
- <text x="242.4" y="319" fill="#7c7c7c" xml:space="preserve">medium 27% </text>
67
- <text x="336.0" y="319" fill="#e0708a" font-weight="700" xml:space="preserve">■ </text>
68
- <text x="351.6" y="319" fill="#7c7c7c" xml:space="preserve">high 14% of replies</text>
69
- <text x="24.0" y="357" fill="#7c7c7c" xml:space="preserve"> since Oct 3: each session compared with its own model</text>
70
- <text x="24.0" y="376" fill="#7c7c7c" xml:space="preserve"> API list prices · same tokens and output length · not a bill;</text>
71
- <text x="24.0" y="395" fill="#7c7c7c" xml:space="preserve"> on a Claude plan it stands for quota · answer quality not measured</text>
72
- <text x="24.0" y="433" fill="#5fafd7" font-weight="700" xml:space="preserve">USAGE · Claude readings</text>
73
- <text x="24.0" y="452" fill="#d0d0d0" xml:space="preserve">Cost $18.003 </text>
74
- <text x="172.2" y="452" fill="#7c7c7c" xml:space="preserve">reported by Claude</text>
75
- <text x="24.0" y="471" fill="#87d787" xml:space="preserve">Context ██████░░░░░░░░░░ 40% ~402.9K / 1.00M</text>
76
- <text x="24.0" y="490" fill="#7c7c7c" xml:space="preserve"> observed 402.4K · estimated 401.8K</text>
77
- <text x="24.0" y="509" fill="#87d787" xml:space="preserve">Cache ████████████████ 100% last reply</text>
78
- <text x="24.0" y="528" fill="#7c7c7c" xml:space="preserve"> read 400.6K · written 1.8K tokens</text>
79
- <text x="24.0" y="547" fill="#d0d0d0" xml:space="preserve">Output 499 tokens on the last reply</text>
80
- <text x="24.0" y="585" fill="#5fafd7" font-weight="700" xml:space="preserve">INPUT PER REPLY · lowest to highest</text>
81
- <text x="39.6" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▁</text>
82
- <text x="47.4" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▂</text>
83
- <text x="55.2" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▂</text>
84
- <text x="63.0" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▂</text>
85
- <text x="70.8" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▃</text>
86
- <text x="78.6" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▃</text>
87
- <text x="86.4" y="604" fill="#d7af5f" font-weight="700" xml:space="preserve">▃</text>
88
- <text x="94.2" y="604" fill="#d7af5f" font-weight="700" xml:space="preserve">▄</text>
89
- <text x="102.0" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▄</text>
90
- <text x="109.8" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▅</text>
91
- <text x="117.6" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▅</text>
92
- <text x="125.4" y="604" fill="#5f9fe0" font-weight="700" xml:space="preserve">▆</text>
93
- <text x="133.2" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">▆</text>
94
- <text x="141.0" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">▆</text>
95
- <text x="148.8" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">▇</text>
96
- <text x="156.6" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">▇</text>
97
- <text x="164.4" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">▇</text>
98
- <text x="172.2" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">▇</text>
99
- <text x="180.0" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
100
- <text x="187.8" y="604" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
101
- <text x="195.6" y="604" fill="#7c7c7c" xml:space="preserve"> 361.0K … 402.4K</text>
102
- <text x="24.0" y="623" fill="#87d787" xml:space="preserve">five hour ████████░░░░░░░░ 48% used</text>
103
- <text x="24.0" y="642" fill="#87d787" xml:space="preserve">seven day ███████░░░░░░░░░ 43% used</text>
104
- <text x="24.0" y="680" fill="#5fafd7" font-weight="700" xml:space="preserve">ACTIVITY · this session</text>
105
- <text x="203.4" y="680" fill="#7c7c7c" xml:space="preserve"> activity routing on</text>
106
- <text x="24.0" y="699" fill="#7c7c7c" xml:space="preserve"> turns requests share est. cost mostly on</text>
107
- <text x="24.0" y="718" fill="#d0d0d0" xml:space="preserve"> code </text>
108
- <text x="109.8" y="718" fill="#5fafd7" xml:space="preserve">██████░░░░</text>
109
- <text x="187.8" y="718" fill="#d0d0d0" xml:space="preserve"> 14 41 58% $3.12 Sonnet 5.5 · high</text>
110
- <text x="24.0" y="737" fill="#d0d0d0" xml:space="preserve"> ops </text>
111
- <text x="109.8" y="737" fill="#5fafd7" xml:space="preserve">███░░░░░░░</text>
112
- <text x="187.8" y="737" fill="#d0d0d0" xml:space="preserve"> 6 15 25% $0.41 Haiku 5.5 · high</text>
113
- <text x="24.0" y="756" fill="#d0d0d0" xml:space="preserve"> explore </text>
114
- <text x="109.8" y="756" fill="#5fafd7" xml:space="preserve">██░░░░░░░░</text>
115
- <text x="187.8" y="756" fill="#d0d0d0" xml:space="preserve"> 4 8 17% $0.38 Haiku 5.5 · high</text>
116
- <text x="24.0" y="775" fill="#d0d0d0" xml:space="preserve">Switches 8 · 5 by tier · 3 by activity · 1 refused</text>
117
- <text x="24.0" y="794" fill="#d0d0d0" xml:space="preserve">Agreement classifier vs tools: 21 of 24 turns (88%)</text>
118
- <text x="24.0" y="832" fill="#5fafd7" font-weight="700" xml:space="preserve">ACROSS SESSIONS · since the last reset</text>
119
- <text x="24.0" y="851" fill="#d0d0d0" xml:space="preserve">Labelled 83 turns</text>
120
- <text x="24.0" y="870" fill="#d0d0d0" xml:space="preserve">Agreement classifier vs tools: 78 of 83 turns (94%)</text>
121
- <text x="24.0" y="889" fill="#d0d0d0" xml:space="preserve">Code/ops/explore classifier vs tools: 78 of 83 turns (94%)</text>
122
- <text x="24.0" y="908" fill="#d0d0d0" xml:space="preserve">Mismatch code → read 4 · ops → code 1</text>
123
- <text x="24.0" y="927" fill="#d0d0d0" xml:space="preserve">Activity moves 9 taken · 4 refused</text>
124
- <text x="24.0" y="946" fill="#d0d0d0" xml:space="preserve">Escalations after a cheaper activity move: 0 in 7 moves</text>
125
- <text x="24.0" y="965" fill="#d0d0d0" xml:space="preserve">Latency Jev p95 ≤ 350 ms · 81 turns</text>
126
- <rect x="24.0" y="970" width="117.0" height="18" rx="4" fill="#2e3340"/>
127
- <text x="24.0" y="984" fill="#d0d0d0" xml:space="preserve">[ Reset stats ]</text>
128
- <text x="141.0" y="984" fill="#7c7c7c" xml:space="preserve"> clears activity stats and routing vs your model, all sessions</text>
129
- <text x="24.0" y="1022" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS · across sessions</text>
130
- <text x="234.6" y="1022" fill="#7c7c7c" xml:space="preserve"> subagent routing on</text>
131
- <text x="24.0" y="1041" fill="#7c7c7c" xml:space="preserve"> no subagents yet</text>
132
- <text x="24.0" y="1079" fill="#5fafd7" font-weight="700" xml:space="preserve">ESTIMATES · configured list prices</text>
133
- <text x="24.0" y="1098" fill="#d0d0d0" xml:space="preserve">Cache hits saved $1.522</text>
134
- <text x="24.0" y="1117" fill="#d0d0d0" xml:space="preserve">Switch cost $0.476</text>
135
- <text x="24.0" y="1136" fill="#7c7c7c" xml:space="preserve">Press ? for what these estimates leave out.</text>
136
- <rect x="24.0" y="1141" width="70.2" height="18" rx="4" fill="#2e3340"/>
137
- <text x="24.0" y="1155" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
15
+ <text x="250.2" y="34" fill="#87d787" xml:space="preserve">Jev ready · 347 ms</text>
16
+ <rect x="24.0" y="39" width="54.6" height="18" rx="4" fill="#2e3340"/>
17
+ <text x="24.0" y="53" fill="#d0d0d0" xml:space="preserve">[ Now ]</text>
18
+ <rect x="86.4" y="39" width="78.0" height="18" rx="4" fill="#2e3340"/>
19
+ <text x="86.4" y="53" fill="#d0d0d0" xml:space="preserve">[ Routes ]</text>
20
+ <rect x="172.2" y="39" width="78.0" height="18" rx="4" fill="#2e3340"/>
21
+ <text x="172.2" y="53" fill="#d0d0d0" xml:space="preserve">[ Policy ]</text>
22
+ <rect x="258.0" y="39" width="109.2" height="18" rx="4" fill="#2e3340"/>
23
+ <text x="258.0" y="53" fill="#d0d0d0" xml:space="preserve">[ Classifier ]</text>
24
+ <rect x="375.0" y="39" width="70.2" height="18" rx="4" fill="#87afff"/>
25
+ <text x="375.0" y="53" fill="#0d1016" font-weight="700" xml:space="preserve">[ Usage ]</text>
26
+ <rect x="453.0" y="39" width="39.0" height="18" rx="4" fill="#2e3340"/>
27
+ <text x="453.0" y="53" fill="#d0d0d0" xml:space="preserve">[ ? ]</text>
28
+ <text x="24.0" y="91" fill="#d0d0d0" xml:space="preserve">Routing saved </text>
29
+ <text x="133.2" y="91" fill="#6fcf97" font-weight="700" xml:space="preserve">$1.84 (22%)</text>
30
+ <text x="219.0" y="91" fill="#d0d0d0" xml:space="preserve"> this session vs </text>
31
+ <text x="351.6" y="91" fill="#e0708a" font-weight="700" xml:space="preserve">Opus 5.5 · xhigh</text>
32
+ <text x="24.0" y="129" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTING VS YOUR MODEL</text>
33
+ <text x="187.8" y="129" fill="#7c7c7c" xml:space="preserve"> · </text>
34
+ <text x="211.2" y="129" fill="#e0708a" font-weight="700" xml:space="preserve">Opus 5.5 · xhigh</text>
35
+ <text x="359.4" y="129" fill="#7c7c7c" xml:space="preserve">this session</text>
36
+ <text x="476.4" y="129" fill="#7c7c7c" xml:space="preserve">since Oct 3</text>
37
+ <text x="24.0" y="148" fill="#d0d0d0" xml:space="preserve"> Routed replies</text>
38
+ <text x="359.4" y="148" fill="#d0d0d0" xml:space="preserve">$6.40</text>
39
+ <text x="476.4" y="148" fill="#d0d0d0" xml:space="preserve">$41.18</text>
40
+ <text x="24.0" y="167" fill="#d0d0d0" xml:space="preserve"> Same tokens on your model</text>
41
+ <text x="359.4" y="167" fill="#d0d0d0" xml:space="preserve">$8.24</text>
42
+ <text x="476.4" y="167" fill="#d0d0d0" xml:space="preserve">$52.60</text>
43
+ <text x="24.0" y="186" fill="#d0d0d0" font-weight="700" xml:space="preserve"> Difference</text>
44
+ <text x="359.4" y="186" fill="#6fcf97" font-weight="700" xml:space="preserve">−$1.84 −22%</text>
45
+ <text x="476.4" y="186" fill="#6fcf97" font-weight="700" xml:space="preserve">−$11.42 −22%</text>
46
+ <text x="24.0" y="205" fill="#7c7c7c" xml:space="preserve"> vs other models: Sonnet 5.5 extra $2.28 · Haiku 5.5 extra $6.19</text>
47
+ <text x="24.0" y="224" fill="#7c7c7c" xml:space="preserve"> cheaper models</text>
48
+ <text x="359.4" y="224" fill="#6fcf97" xml:space="preserve">−$2.31</text>
49
+ <text x="476.4" y="224" fill="#6fcf97" xml:space="preserve">−$14.90</text>
50
+ <text x="24.0" y="243" fill="#7c7c7c" xml:space="preserve"> stronger than yours</text>
51
+ <text x="359.4" y="243" fill="#d0d0d0" xml:space="preserve">$0.00</text>
52
+ <text x="476.4" y="243" fill="#d0d0d0" xml:space="preserve">$0.00</text>
53
+ <text x="24.0" y="262" fill="#7c7c7c" xml:space="preserve"> cache writes from switches</text>
54
+ <text x="359.4" y="262" fill="#f0b429" xml:space="preserve">+$0.47</text>
55
+ <text x="476.4" y="262" fill="#f0b429" xml:space="preserve">+$3.48</text>
56
+ <text x="24.0" y="300" fill="#7c7c7c" xml:space="preserve"> routed </text>
57
+ <text x="133.2" y="300" fill="#5fd7af" xml:space="preserve">█</text>
58
+ <text x="141.0" y="300" fill="#5f9fe0" xml:space="preserve">██████</text>
59
+ <text x="187.8" y="300" fill="#d7af5f" xml:space="preserve">██████</text>
60
+ <text x="234.6" y="300" fill="#e0708a" xml:space="preserve">████</text>
61
+ <text x="265.8" y="300" fill="#7c7c7c" xml:space="preserve">░░░░░</text>
62
+ <text x="304.8" y="300" fill="#d0d0d0" xml:space="preserve"> $6.40</text>
63
+ <text x="24.0" y="319" fill="#7c7c7c" xml:space="preserve"> your model </text>
64
+ <text x="133.2" y="319" fill="#e0708a" xml:space="preserve">██████████████████████</text>
65
+ <text x="304.8" y="319" fill="#d0d0d0" xml:space="preserve"> $8.24</text>
66
+ <text x="39.6" y="338" fill="#5fd7af" font-weight="700" xml:space="preserve">■ </text>
67
+ <text x="55.2" y="338" fill="#7c7c7c" xml:space="preserve">micro 19% </text>
68
+ <text x="141.0" y="338" fill="#5f9fe0" font-weight="700" xml:space="preserve">■ </text>
69
+ <text x="156.6" y="338" fill="#7c7c7c" xml:space="preserve">low 41% </text>
70
+ <text x="226.8" y="338" fill="#d7af5f" font-weight="700" xml:space="preserve">■ </text>
71
+ <text x="242.4" y="338" fill="#7c7c7c" xml:space="preserve">medium 27% </text>
72
+ <text x="336.0" y="338" fill="#e0708a" font-weight="700" xml:space="preserve">■ </text>
73
+ <text x="351.6" y="338" fill="#7c7c7c" xml:space="preserve">high 14% of replies</text>
74
+ <text x="24.0" y="376" fill="#7c7c7c" xml:space="preserve"> since Oct 3: each session compared with its own model</text>
75
+ <text x="24.0" y="395" fill="#7c7c7c" xml:space="preserve"> API list prices · same tokens and output length · not a bill;</text>
76
+ <text x="24.0" y="414" fill="#7c7c7c" xml:space="preserve"> on a Claude plan it stands for quota · answer quality not measured</text>
77
+ <text x="24.0" y="452" fill="#5fafd7" font-weight="700" xml:space="preserve">PLAN QUOTA</text>
78
+ <text x="24.0" y="471" fill="#87d787" xml:space="preserve">five hour ████████░░░░░░░░ 48% used</text>
79
+ <text x="24.0" y="490" fill="#87d787" xml:space="preserve">seven day ███████░░░░░░░░░ 43% used</text>
80
+ <text x="24.0" y="528" fill="#5fafd7" font-weight="700" xml:space="preserve">BY ACTIVITY · this session</text>
81
+ <text x="226.8" y="528" fill="#7c7c7c" xml:space="preserve"> activity routing on</text>
82
+ <text x="24.0" y="547" fill="#7c7c7c" xml:space="preserve"> turns requests share est. cost mostly on</text>
83
+ <text x="39.6" y="566" fill="#d7875f" font-style="italic" xml:space="preserve">coding</text>
84
+ <text x="133.2" y="566" fill="#5fafd7" xml:space="preserve">██████░░░░</text>
85
+ <text x="211.2" y="566" fill="#d0d0d0" xml:space="preserve"> 14 41 58% $3.12 Sonnet 5.5 · high</text>
86
+ <text x="39.6" y="585" fill="#d7875f" font-style="italic" xml:space="preserve">running</text>
87
+ <text x="133.2" y="585" fill="#5fafd7" xml:space="preserve">███░░░░░░░</text>
88
+ <text x="211.2" y="585" fill="#d0d0d0" xml:space="preserve"> 6 15 25% $0.41 Haiku 5.5 · high</text>
89
+ <text x="39.6" y="604" fill="#d7875f" font-style="italic" xml:space="preserve">exploring</text>
90
+ <text x="133.2" y="604" fill="#5fafd7" xml:space="preserve">██░░░░░░░░</text>
91
+ <text x="211.2" y="604" fill="#d0d0d0" xml:space="preserve"> 4 8 17% $0.38 Haiku 5.5 · high</text>
92
+ <text x="24.0" y="623" fill="#d0d0d0" xml:space="preserve">Switches 8 · 5 by tier · 3 by activity · 1 refused</text>
93
+ <text x="24.0" y="642" fill="#d0d0d0" xml:space="preserve">Agreement classifier vs tools: 21 of 24 turns (88%)</text>
94
+ <text x="24.0" y="680" fill="#5fafd7" font-weight="700" xml:space="preserve">SUBAGENTS · across sessions</text>
95
+ <text x="234.6" y="680" fill="#7c7c7c" xml:space="preserve"> subagent routing on</text>
96
+ <text x="24.0" y="699" fill="#7c7c7c" xml:space="preserve"> no subagents yet</text>
97
+ <text x="24.0" y="737" fill="#5fafd7" font-weight="700" xml:space="preserve">CLAUDE READINGS</text>
98
+ <text x="141.0" y="737" fill="#d0d0d0" xml:space="preserve"> cost $18.003</text>
99
+ <text x="250.2" y="737" fill="#7c7c7c" xml:space="preserve"> · </text>
100
+ <text x="273.6" y="737" fill="#87d787" xml:space="preserve">context 40%</text>
101
+ <text x="359.4" y="737" fill="#7c7c7c" xml:space="preserve"> · </text>
102
+ <text x="382.8" y="737" fill="#87d787" xml:space="preserve">cache 100%</text>
103
+ <rect x="476.4" y="723" width="85.8" height="18" rx="4" fill="#2e3340"/>
104
+ <text x="476.4" y="737" fill="#d0d0d0" xml:space="preserve">[ details ]</text>
105
+ <rect x="24.0" y="761" width="117.0" height="18" rx="4" fill="#2e3340"/>
106
+ <text x="24.0" y="775" fill="#d0d0d0" xml:space="preserve">[ Reset stats ]</text>
107
+ <text x="141.0" y="775" fill="#7c7c7c" xml:space="preserve"> clears activity stats and routing vs your model, all sessions</text>
108
+ <text x="24.0" y="794" fill="#7c7c7c" xml:space="preserve">Press ? for what these estimates leave out.</text>
109
+ <rect x="24.0" y="799" width="70.2" height="18" rx="4" fill="#2e3340"/>
110
+ <text x="24.0" y="813" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
138
111
  </svg>
@@ -63,39 +63,36 @@ Tool continuations do not trigger another classification. A subagent gets at mos
63
63
 
64
64
  ## Open the router pane
65
65
 
66
- Run `/router` or select **Router** above the prompt. Without a UI surface, as in `claude -p`, `/router` prints a short status instead. The pane has four tabs. Select a tab or press its digit while the pane has focus.
66
+ Run `/router` or select **Router** above the prompt. Without a UI surface, as in `claude -p`, `/router` prints a short status instead. The pane has five tabs. Select a tab or press its digit while the pane has focus.
67
67
 
68
- ![The Now tab: the route, the activity and its alternatives, the reason, classifier support per tier with pin buttons, recent replies by tier and activity, and context, cache and cost](router-pane-now.svg)
68
+ | Tab | What it answers |
69
+ | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
70
+ | 1 Now | What runs next turn, and why: tier, model, activity, the reason with the support it weighed; classifier support per tier with **pin**; the last 30 replies. |
71
+ | 2 Routes | Which model runs: one grid of tiers by activities, the activity routing mode, and an editor for the selected cell. |
72
+ | 3 Policy | How readily the router changes models: the start tier, going down, going up, the activity threshold, the credits cap; the `router.json` path. |
73
+ | 4 Classifier | Which classifier to ask: one row per classifier to compare, the active one's deadline, wait, health and credentials, and the counts kept across sessions. |
74
+ | 5 Usage | What routing cost: routing vs your model, plan quota, this session by activity, and Claude's readings with the estimates behind **details**. |
69
75
 
70
- The **Now** tab answers "what runs next turn, and why". The ladder lists the tiers from strongest to cheapest with the route each one uses. The bar is the support the classifier gave that tier on the last turn. The line under the ladder compares the support for a switch with the bar the policy required and shows the estimated switch cost. **pin** forces that tier for the next turn only. The **Activity** and **Route** lines under the route are covered in [Route by activity](#route-by-activity).
76
+ The top line of every tab, `ROUTING [ ◉ on ] [ ○ off ] Jev ready · 347 ms`, shows the routing mode, switches it, and says whether the classifier is ready. Press `o` or `f` while the pane has focus. **?** shows what the estimates leave out. When routing is unavailable, the top line reads `ROUTING unavailable Claude’s model is kept` with the reason under it, and offers no on or off: see [Troubleshooting](#troubleshooting).
71
77
 
72
- ![The Routing tab: model and effort per tier, the baseline tier, how each step up is priced, the activity matrix and overrides, the policy controls, and the unsaved router.json changes with Save and Discard](router-pane-routing.svg)
78
+ ![The Now tab: what runs next turn with its tier, model and activity, the reason with the classifier support it weighed and the switch cost, classifier support per tier with pin buttons, the last replies as a strip with the switch count and the replies per tier and per activity, and context, cache and cost](router-pane-now.svg)
73
79
 
74
- The **Routing** tab edits the routes, the activity overrides, and the policy. In the picture, `medium` was changed to Sonnet 5.5 at `xhigh`: the tier shows **●**, the tab reads **Routing ●**, the switch-cost lines now price `medium → high` as a model change, and the status bar lists the `router.json` lines that **Save** will write. The same picture shows the activity matrix and overrides, with a `code` override at `high` added. [Edit routes and policy](#edit-routes-and-policy) explains the controls.
75
-
76
- | Tab | What it shows |
77
- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
78
- | 1 Now | The current tier, model, activity, and reason; the classifier's support for each tier with a **pin** button; the last 30 replies by tier and activity; context and cache. |
79
- | 2 Routing | The model and effort for each tier, the baseline tier, the cache cost of each step up; the activity routing mode, matrix, and overrides; the policy controls; the `router.json` path. |
80
- | 3 Classifier | The classifier rows with their credentials state, the active classifier's deadline and health, and the credentials each classifier needs. |
81
- | 4 Usage | Routing vs your model; Claude-reported cost, context and cache detail, input per reply, quota, activity counts for this session and across sessions, and configured-price estimates. |
82
-
83
- The top line of every tab, `ROUTING [ ◉ on ] [ ○ off ]`, shows the routing mode and switches it. Press `o` or `f` while the pane has focus. **?** shows what the estimates leave out. When routing is unavailable, the top line reads `ROUTING unavailable Claude’s model is kept` with the reason under it, and offers no on or off: see [Troubleshooting](#troubleshooting).
80
+ The **Now** tab answers "what runs next turn, and why". **Next turn** names the tier, the model and effort, and, when an activity override runs, the tier's own model beside it. **Activity** names the classifier's activity as a verb, such as `coding 84%`, with the two next answers and the threshold at which an activity applies. **Why** gives the reason; under it, `Jev gave stronger tiers 88% (needs 82%) · switch ≈ $0.48` compares the classifier's support for the switch with the bar the policy set, and gives the estimated switch cost. The ladder lists the tiers from strongest to cheapest with the route each one uses and the support the classifier gave it on the last turn. **pin** forces that tier for the next turn only. In `shadow`, a **Shadow** line says what `on` would run; see [Route by activity](#route-by-activity).
84
81
 
85
82
  ### Save and undo changes
86
83
 
87
- The two settings tabs follow one rule each, and the section captions say which:
84
+ The settings tabs follow one of two rules, and the section captions say which:
88
85
 
89
- - **Routing**: edit as a set, then save. Changes stay a draft until **Save** (`s`). **Discard** (`d`) drops them. The draft stays when you change tab or close the pane: the tab reads **Routing ●**, and every tab shows the `router.json` lines that **Save** will write, with **Save** and **Discard**. A new session drops the draft.
86
+ - **Routes** and **Policy**: one draft for both, edited as a set, then saved. Changes stay a draft until **Save** (`s`). **Discard** (`d`) drops them. The draft stays when you change tab or close the pane: the tab whose settings changed reads **Routes ●** or **Policy ●**. Those two tabs list the `router.json` lines that **Save** will write; the other tabs show the count with **Save** and **Discard**. A new session drops the draft.
90
87
  - **Classifier**: a row or a deadline is written to `router.json` when you select it.
91
88
 
92
89
  Every write applies from the next turn and can be undone. **Undo** (`u`) puts back the settings the last write changed, from any tab, and leaves any other edit to `router.json` alone. A new session clears it. Green notices confirm a write or an undo; a red one names why nothing was written.
93
90
 
94
91
  ### Compare routing with your model
95
92
 
96
- ![The Usage tab: routing vs your model, this session and since the last reset, with the difference split into its three parts, bars and replies by tier, then Claude's readings, activity counts with their estimated cost and route, the counts across sessions, and estimates](router-pane-usage.svg)
93
+ ![The Usage tab: the answer first, routing saved $1.84 (22%) against Opus 5.5 at xhigh; routing vs your model this session and since the last reset, with the difference split into its three parts, bars and replies by tier; plan quota; this session by activity; and Claude's readings on one line with details](router-pane-usage.svg)
97
94
 
98
- **ROUTING VS YOUR MODEL** opens the Usage tab. Your model is the model `/model` (or `--model`) selects now, at the session effort, shown in the heading. For every reply routing chose, it prices the reported tokens on the model that served them. It also prices the same tokens on each model in `router.json`, at its list prices. After a `/model` change, the session column shows the whole session against the new model. The line `vs other models: Sonnet 5.5 extra $2.28 · Haiku 5.5 extra $6.19` shows the session against the others, each from its tenth routed reply.
95
+ The Usage tab opens with the answer, such as `Routing saved $1.84 (22%) this session vs Opus 5.5 · xhigh`, or `Routing cost $2.48 (×5.0) more this session than Haiku 5.5 · high`, once the session has 10 routed replies. **ROUTING VS YOUR MODEL** follows with the figures behind it. Your model is the model `/model` (or `--model`) selects now, at the session effort, shown in the heading. For every reply routing chose, it prices the reported tokens on the model that served them. It also prices the same tokens on each model in `router.json`, at its list prices. After a `/model` change, the session column shows the whole session against the new model. The line `vs other models: Sonnet 5.5 extra $2.28 · Haiku 5.5 extra $6.19` shows the session against the others, each from its tenth routed reply.
99
96
 
100
97
  | Line | What it is |
101
98
  | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -115,13 +112,15 @@ These are estimates, not a bill. They hold the tokens and the output length the
115
112
  - **Cost** comes from Claude Code's native usage API. If the account is on a plan, a configured list-price estimate is not the subscription cash charge.
116
113
  - **Context** compares the larger available context reading with the routed model's configured window. The router reserves 20% of that window. Values can be unknown when Claude does not provide the needed estimate.
117
114
  - **Cache** reuse is cache-read tokens divided by the last response's input counters.
118
- - **Classifier support**, such as **Jev support**, is the probability the classifier gave each tier on the last classified turn. The line under it compares the support for a switch with the bar the policy required, and shows the estimated switch cost.
119
- - **Replies** colors each of the last 30 main-conversation replies by the tier that served it. A dot marks a reply the router did not choose, such as one with routing off. The count beside the strip is the number of switches between those replies: a change of model or effort, so a move from Sonnet to Haiku inside `low` counts too. When activity routing is on or in shadow, a row of letters under the strip names each reply's activity: `c` code, `d` debug, `e` explore, `p` plan, `r` review, `o` ops, `w` docs.
120
- - **Input per reply** scales the last 30 input sizes from the lowest to the highest reading. It is a scale comparison, not a forecast.
115
+ - **Classifier support**, such as **Jev support**, is the probability the classifier gave each tier on the last classified turn. The line under **Why** compares the support for a switch with the bar the policy required, and shows the estimated switch cost.
116
+ - **Last replies** on the Now tab colors each of the last 30 main-conversation replies by the tier that served it. A dot marks a reply the router did not choose, such as one with routing off. The heading counts the model switches between those replies: a change of model or effort, so a move from Sonnet to Haiku inside `low` counts too, although its color stays. Under the strip, the replies per tier, `■ low 12 ■ medium 2 ■ high 6`, double as the color key, and the replies per activity follow, such as `coding 12 · exploring 4 · running 2`.
117
+ - **Input per reply**, under **details** on the Usage tab, scales the last 30 input sizes from the lowest to the highest reading. It is a scale comparison, not a forecast.
121
118
  - **Cache hits saved** is a configured-price estimate for cached reads before write costs. It is not a measured saving.
122
119
  - **Next-turn difference** compares the candidate with the current model under five-minute and one-hour cache-write scenarios. A negative number means the candidate is estimated to cost less for that request.
123
120
  - **Payback** estimates later turns to recover an initial difference under assumed future cache reads and the last observed output size. It does not guarantee savings.
124
121
 
122
+ Under routing vs your model, **PLAN QUOTA** shows the five-hour and seven-day use that Claude Code reports, and **BY ACTIVITY** shows this session by activity (see [Read the activity on the pane](#read-the-activity-on-the-pane)). **SUBAGENTS · across sessions** shows each routed agent type, what routing cost against the model Claude Code would have used, and the spawns that passed through (see [Subagent routing](configuration.md#subagent-routing)). **CLAUDE READINGS** puts cost, context and cache on one line; **details** adds the context and cache counters, the output of the last reply, the input per reply, and the estimates below.
123
+
125
124
  The router keeps no bill. Routing vs your model is an estimate at configured list prices. The pane does not include classifier charges. Claude's native `/cost` is the source for its reported API cost.
126
125
 
127
126
  ## Route by activity
@@ -148,9 +147,9 @@ The mode decides what happens with the label:
148
147
  | `shadow` | Shows the activity, records the stats, and works out what `on` would run. The base route still runs. |
149
148
  | `off` | Does not ask the activity: the classifier is asked for the tier only. The base routes run. |
150
149
 
151
- To turn activity routing off or back to `shadow`, run `/router activities off` or `/router activities shadow`, or set **Activity routing** at the top of the Routing tab's **ACTIVITIES** and press **Save**. Routing itself stays on: only the activity overrides stop. Upgrading from 1.6, where `shadow` was the default, a `router.json` without `activityRouting` now runs `on`. Choosing `shadow` in 1.6 removed the key, because `shadow` was the default then: if you chose `shadow` in 1.6, run `/router activities shadow` again after upgrading.
150
+ To turn activity routing off or back to `shadow`, run `/router activities off` or `/router activities shadow`, or set **Activity routing** at the top of the Routes tab and press **Save**. Routing itself stays on: only the activity overrides stop. Upgrading from 1.6, where `shadow` was the default, a `router.json` without `activityRouting` now runs `on`. Choosing `shadow` in 1.6 removed the key, because `shadow` was the default then: if you chose `shadow` in 1.6, run `/router activities shadow` again after upgrading.
152
151
 
153
- In `shadow` you can see what `on` would do without it running. The band marks the label `(shadow)` and dims it, and the **Now** tab says `low + code would use Sonnet 5.5 · high (shadow; using Haiku 5.5 · high)`, or `same route` when both agree. In `on` the **Now** tab reads `low + code → Sonnet 5.5 · high (override)` with the tier's base route next to it, or `(base)` when the cell has no override.
152
+ In `shadow` you can see what `on` would do without it running. The band marks the label `(shadow)` and dims it, and the **Now** tab's **Shadow** line says `low + code would use Sonnet 5.5 · high (shadow; using Haiku 5.5 · high)`, or `same route` when both agree. In `on`, when an override runs, the **Next turn** line adds the tier's own model: `override · low runs Haiku 5.5 · high`.
154
153
 
155
154
  How the router moves inside a tier:
156
155
 
@@ -165,11 +164,11 @@ The band's activity label appears only when the activity applies, so a weak or `
165
164
 
166
165
  ### Read the activity on the pane
167
166
 
168
- - **Now**: the **Activity** line names the classifier's choice with its share and the two next-best answers, such as `code 84% debug 8% · plan 5%`. In `on`, **Why** names the cell when the activity moved the route or the route is an override, such as `code at low runs on Sonnet 5.5 · high`, or `low runs on its base route, Haiku 5.5 · high` for a move without an activity; a refused move, a hold, or a tier change keeps its reason. The **Route** line shows the route the cell resolves to. **Replies** has a letter row under the strip.
169
- - **Routing**: **ACTIVITIES** starts with the **Activity routing** selector (`off`, `shadow`, `on`) and what the mode does. The matrix under it shows the effective routes per tier, with `·` where a cell uses the base route, and counts the distinct routes and the caches they use. Routes are abbreviated, such as `S·high` for Sonnet · high, and activities with the same cells share a row. **OVERRIDES** says whether the overrides are in use, then lists each override with a model, an effort, and **remove**, plus a selector to add one. **Activity threshold** under **POLICY** is the least probability at which an activity applies. Edits join the routing draft: **Save** and **Discard** apply as for routes. Yellow notes flag an override with no effect (`same as base`), one stronger than the tier above, and the only cell or tier on its cache, which adds one.
170
- - **Usage**: **ACTIVITY · this session** lists turns, requests, and share per activity, then `est. cost`, the list price of that activity's replies (the same per-reply estimate as Routing vs your model, but only for turns recorded with activity routing `shadow` or `on`, so the rows need not add up to its routed total; `—` when a reply had no price), and `mostly on`, the route most of its replies used, such as `Sonnet 5.5 · high`. A narrow pane drops `mostly on`, then `est. cost`. Below the table are the switches split by tier and by activity, with `· 2 refused` when activity moves were refused in `on` (not worth the cache write, a hold after an escalation, or the credits cap), and **Agreement**, how often the tools a turn used fit the classifier's activity (see [Evaluation](evaluation.md#tool-agreement)). In `shadow` the **Shadow** line counts how many turns `on` would have routed differently, such as `on would route 5 of 20 turns differently · est. −$0.300 … −$0.120 at list prices`. The estimate sums, over those turns, what the next request on the route `on` would use would cost against the route that ran, as a low and a high scenario at the configured list prices in `router.json`. Minus means cheaper. It covers only turns after a measured reply, and adds `for 3` when only three of the turns have one. It is not a measured saving.
167
+ - **Now**: the **Activity** line names the classifier's choice as a verb with its share, the two next-best answers, and the threshold at which an activity applies, such as `coding 84% debugging 8% · planning 5% applies at 60%+`. An `uncertain` answer is shown dim: it applies no activity. In `on`, **Why** names the cell when the activity moved the route or the route is an override, such as `coding at low runs on Sonnet 5.5 · high`, or `low runs on its base route, Haiku 5.5 · high` for a move without an activity; a refused move, a hold, or a tier change keeps its reason. **Last replies** counts the replies per activity under the strip.
168
+ - **Routes**: see [Edit routes and policy](#edit-routes-and-policy). Each activity is a row of the grid, and a cell shows the model the activity runs at that tier.
169
+ - **Usage**: **BY ACTIVITY · this session** lists turns, requests, and share per activity, then `est. cost`, the list price of that activity's replies (the same per-reply estimate as Routing vs your model, but only for turns recorded with activity routing `shadow` or `on`, so the rows need not add up to its routed total; `—` when a reply had no price), and `mostly on`, the route most of its replies used, such as `Sonnet 5.5 · high`. A narrow pane drops `mostly on`, then `est. cost`. Below the table are the switches split by tier and by activity, with `· 2 refused` when activity moves were refused in `on` (not worth the cache write, a hold after an escalation, or the credits cap), and **Agreement**, how often the tools a turn used fit the classifier's activity (see [Evaluation](evaluation.md#tool-agreement)). In `shadow` the **Shadow** line counts how many turns `on` would have routed differently, such as `on would route 5 of 20 turns differently · est. −$0.300 … −$0.120 at list prices`. The estimate sums, over those turns, what the next request on the route `on` would use would cost against the route that ran, as a low and a high scenario at the configured list prices in `router.json`. Minus means cheaper. It covers only turns after a measured reply, and adds `for 3` when only three of the turns have one. It is not a measured saving.
171
170
 
172
- **ACROSS SESSIONS · since the last reset** shows the counts kept across sessions: the turns labelled from their tools, **Agreement** over them, **Code/ops/explore**, the same agreement over the turns the classifier answered `code`, `ops` or `explore` (omitted when there are none), the two most frequent mismatches as `predicted → observed count` (`code → read 3`), **Activity moves**, the moves to another route inside a tier, taken and refused for any reason, **Escalations**, such as `after a cheaper activity move: 1 in 12 moves`, the tool-error escalations that followed a move to a cheaper route in `on` while the turns stayed on it in `on` (turning routing off, a turn with routing off, or a turn in `shadow` or `off` ends the watch, a pin in between does not, and an escalation the credits cap held counts), **Latency**, the active classifier's p95 wait as a bucket bound such as `Jev p95 ≤ 350 ms · 20 turns` (not recorded with activity routing `off`), and the **Shadow** line summed over all shadow turns. Each of these lines appears only when it has data. This agreement compares the classifier's raw answer, so it can differ from the session's. The pane reads these counts when the session starts and when it opens, and adds this session's turns as they finish; another session's new latency and escalation readings show the next time the pane opens. **Reset stats** clears the activity counts and routing vs your model, for this session and across sessions.
171
+ On the **Classifier** tab, **ACROSS SESSIONS · since the last reset** shows the counts kept across sessions, once there are any: the turns labelled from their tools, **Agreement** over them, **Code/ops/explore**, the same agreement over the turns the classifier answered `code`, `ops` or `explore` (omitted when there are none), the two most frequent mismatches as `predicted → observed count` (`code → read 3`), **Activity moves**, the moves to another route inside a tier, taken and refused for any reason, **Escalations**, such as `after a cheaper activity move: 1 in 12 moves`, the tool-error escalations that followed a move to a cheaper route in `on` while the turns stayed on it in `on` (turning routing off, a turn with routing off, or a turn in `shadow` or `off` ends the watch, a pin in between does not, and an escalation the credits cap held counts), and the **Shadow** line summed over all shadow turns. Each of these lines appears only when it has data. The active classifier's p95 wait across sessions shows on its **Deadline** line instead (not recorded with activity routing `off`). This agreement compares the classifier's raw answer, so it can differ from the session's. The pane reads these counts when the session starts and when it opens, and adds this session's turns as they finish; another session's new latency and escalation readings show the next time the pane opens. **Reset stats** on the Usage tab clears the activity counts and routing vs your model, for this session and across sessions.
173
172
 
174
173
  `/router` without a UI surface adds an `Activity: ops (81%)` line, the resolved route, and `Agreement across sessions: 19 of 22 turns (86%) · code/ops/explore 9 of 10 (90%)`. It also prints the session against your model, such as `vs your model (Opus 5.5 · xhigh): −$1.84 (−22%) this session, 64 replies, est. at list prices`.
175
174
 
@@ -191,24 +190,38 @@ A pin does not change the next turn after the pinned turn finishes. A fresh sess
191
190
 
192
191
  ## Edit routes and policy
193
192
 
194
- On the **Routing** tab, pick a model and an effort for any tier. The model list comes from the aliases in `router.json` `models`, limited by the `availableModels` setting. `session` keeps the effort Claude Code sends. A model without effort levels, such as a custom one with `"efforts": []`, shows `none`.
193
+ ![The Routes tab: the activity routing mode, then one grid of tiers by activities with the tiers' own models on top, built-in overrides marked °, unsaved edits ●; the editor of the selected cell, coding at high, with Use tier model; the prompt caches in use; and the unsaved router.json changes with Save and Discard](router-pane-routes.svg)
194
+
195
+ The **Routes** tab is one grid. Columns are tiers, from `micro` to `high`. The **every turn** row holds each tier's own model and effort. Each activity below it is a row: a cell shows the model the activity runs at that tier, or `·` when it runs the tier's model. Cells read as `models key·effort`, such as `sonnet·high`; a narrow pane shortens the effort (`opus·xh`). `°` marks a built-in default override and **●** an unsaved edit. In the picture, `medium` was changed to Sonnet 5.5 at `xhigh` and `coding` at `high` to Opus 5.5 at `max`.
196
+
197
+ Select a cell, with the pointer or Tab and Enter, to edit it under the grid:
195
198
 
196
- Changed tiers and overrides show **●**. **Reset routes to defaults** (`r`) loads the built-in routes into the draft; **Save** then removes your route overrides from `router.json`.
199
+ - **A tier cell** (every turn) has a model and an effort, with the model's list prices and window.
200
+ - **An activity cell** has a model and an effort, and says what the cell is: `built-in default`, `your override`, `runs the tier’s model`, or `same as the tier’s model: no effect`. **Use tier model** drops the override, so the cell runs the tier's model; for a built-in default, Save writes the tier's route for that cell, because the built-in one would come back otherwise. **Restore default** puts a changed or dropped built-in override back. A yellow note flags a cell stronger than the tier above, and a cell that is the only one on its cache.
197
201
 
198
- **Switch cost** reads the draft from the bottom tier up and shows how the policy prices each step. A model change is priced as a cold cache write. An effort change on the same model is also priced as a new messages cache; whether the API actually keeps the cache across an effort change is not measured. Two identical tiers make that step change nothing.
202
+ The model list comes from the aliases in `router.json` `models`, limited by the `availableModels` setting. `inherit` keeps the effort Claude Code sends. A model without effort levels, such as a custom one with `"efforts": []`, shows `none`.
203
+
204
+ **Activity routing** at the top sets `off`, `shadow`, or `on`, and says what the mode does. A yellow line says when the overrides do not run: activity routing `shadow` or `off`, or routing off or unavailable.
205
+
206
+ Under the grid, `3 prompt caches in use` counts the caches the grid can run on. Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.1 keep one cache per model across efforts with an API key or a Claude subscription; on Amazon Bedrock, Google Cloud, Microsoft Foundry or a custom `ANTHROPIC_BASE_URL`, each (model, effort) pair has its own. Moving to a model without a warm cache writes the whole conversation into a new cache, which is the switch cost on the Now tab. More caches mean more of those writes. A yellow line flags two neighbouring tiers that run the same model and effort, since that step changes nothing.
207
+
208
+ **Reset routes to defaults** (`r`) loads the built-in tier routes and start tier into the draft; **Save** then removes your route overrides from `router.json`. Activity edits and the mode stay in the draft.
199
209
 
200
210
  A new model ID needs an entry in `router.json` `models` with its price, context window, and effort levels. See [Configuration](configuration.md).
201
211
 
202
212
  ### Tune future decisions
203
213
 
204
- Under **Policy** on the same tab, pick the values. One **Save** writes them with any route changes:
214
+ ![The Policy tab: each control inside its sentence, the start tier, going down, going up, the activity threshold and the credits cap, with the default beside a changed value, the router.json file and the subagent routing mode, and the unsaved change with Save and Discard](router-pane-policy.svg)
205
215
 
206
- - **Votes to go down:** 1, 2, or 3 consecutive votes before a cheaper tier. A new or reset history needs one.
207
- - **Payback horizon:** 1, 3, 5, or 10 later turns used by the downgrade estimate.
208
- - **Credits cap:** $0.50, $1, $2, or $5 for an estimated cold cache write on a `credits` model.
209
- - **Activity threshold:** 50%, 60%, 70%, or 80%, the least probability at which the classifier's activity applies. Below it a new task goes back to the base route, and a continuation keeps its activity, or moves to a stronger route the classifier names. See [Activity routing](activity-routing.md#change-a-cell).
216
+ The **Policy** tab writes each control inside the sentence it completes, and names the default beside a value that differs from it. One **Save** writes them with any route changes:
210
217
 
211
- **Reset policy to defaults** loads the built-in values; **Save** then removes your policy overrides. The current turn keeps the settings it started with. A save preserves unrelated `router.json` keys and refuses to write through a symlink. When validation fails, the pane names the setting and leaves the file unchanged.
218
+ - **Start** at a tier: the tier a session starts from when its model is no tier's model (`baselineTier`).
219
+ - **Going down** after 1, 2, or 3 agreeing turns in a row, and only if a cache write pays back within 1, 3, 5, or 10 later turns. A new or reset history needs one vote.
220
+ - **Going up** needs the classifier's support at 75%, raised up to 90% as the switch costs more. Read-only here; see [Configuration](configuration.md).
221
+ - **Activities** apply at 50%, 60%, 70%, or 80% certainty or more. Below it a new task runs its tier's model, and a continuation keeps its activity, or moves to a stronger route the classifier names. See [Activity routing](activity-routing.md#change-a-cell).
222
+ - **Credits** caps one cold cache write on a `credits` model at $0.50, $1, $2, or $5. With no `credits` model in `router.json`, the tab says the cap has no effect.
223
+
224
+ **Reset policy to defaults** loads the built-in values; **Save** then removes your policy overrides. The current turn keeps the settings it started with. A save preserves unrelated `router.json` keys and refuses to write through a symlink. When validation fails, the pane names the setting and leaves the file unchanged. The tab ends with the `router.json` path, a **copy** button, and the [subagent routing](configuration.md#subagent-routing) mode, which is set in `router.json`.
212
225
 
213
226
  ## Choose the classifier
214
227
 
@@ -222,15 +235,17 @@ Router asks one classifier per turn. Five are built in:
222
235
  | OpenAI | OpenAI, `gpt-6-luna` | OpenAI API key | 3,000 ms |
223
236
  | Ollama | Local Ollama, `qwen3.5:9b` | None | 5,000 ms |
224
237
 
225
- ![The Classifier tab: classifier rows with the active one marked and each one's last activity probe, a missing Jev API key with Set up, the deadline, health, the receiving host, the credentials each classifier needs, and Undo after a switch](router-pane-classifier.svg)
238
+ ![The Classifier tab: one row per classifier with where the prompt goes, its activity probe, its p95 wait and its status, a missing Jev API key with Set up; 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](router-pane-classifier.svg)
226
239
 
227
- You can save credentials for all of them; only the active one is asked. The **Classifier** tab has one row per classifier: `◉` marks the active one, followed by its service and whether its credentials are complete. A row that lacks one names it, such as `○ no API token`, and has its own **Set up** button. Under a row, a dim line gives the classifier's last checked-in [activity probe](evaluation.md#activity-probe-set), such as `activity probe 70/70 · p95 299 ms · Oct 10`; it is omitted when you configured a model other than the probed one.
240
+ You can save credentials for all of them; only the active one is asked. The **Classifier** tab has one row per classifier, as columns to compare: `◉` marks the active one; then where the prompt goes (`this machine` for Ollama); its last checked-in [activity probe](evaluation.md#activity-probe-set), the test prompts with a known activity it answered right, such as `70/70`, and their p95 wait; and whether its credentials are complete. A row that lacks one names it, such as `○ no API token`, and has its own **Set up** button. The probe columns read `—` when you configured a model other than the probed one.
228
241
 
229
242
  Select a row to switch. The choice is written to `router.json` at once and applies from the next turn. **Undo** in the status bar returns to the previous classifier. A turn that is already being classified finishes with the classifier it started with. The new classifier starts with a clean failure count.
230
243
 
231
- - **Deadline:** 500, 1,000, 1,500, 3,000, or 5,000 ms for the active classifier's total advice attempt, including any retry. Each classifier keeps its own deadline, saved at once, with **Undo**.
232
- - **Health** shows recent failures or a pause. **Sends** names the service that receives prompt text.
233
- - **Credentials** lists what each classifier needs, such as `Jev: API key · Clef, Clef Flash: API token, account ID · OpenAI: API key · Ollama: no key needed`. **Edit** opens Claude Code's secure plugin configuration, where you enter them.
244
+ Under the rows, a block for the active classifier:
245
+
246
+ - **Deadline:** 500, 1,000, 1,500, 3,000, or 5,000 ms for the active classifier's total advice attempt, including any retry. Each classifier keeps its own deadline, saved at once, with **Undo**. Beside it is the classifier's p95 wait: across sessions, such as `p95 ≤ 400 ms over 15 turns`, or from its probe before any turn. It turns yellow when the wait is slower than the deadline. Past the deadline the turn keeps its model.
247
+ - **Sends** names the service that receives prompt text. **Health** shows a pause, recent failures, and the last wait.
248
+ - **Credentials**: **Edit** opens Claude Code's secure plugin configuration, where you enter them.
234
249
 
235
250
  With `shadow` or `on`, the activity question goes in the same request as the tier question (Ollama makes a second call), with the same text and nothing more. **Sends** names the service that receives the prompt and recent dialogue. With Clef or Clef Flash that is Cloudflare, not typesafe.ai; with OpenAI it is OpenAI; with Ollama it stays on this machine. Give the Cloudflare token Workers AI permissions only.
236
251
 
@@ -1206,8 +1206,11 @@ function paneActions($, router, view) {
1206
1206
  }),
1207
1207
  activityModel: (activity, tier, alias) => editCell(activity, tier, 'model', alias),
1208
1208
  activityEffort: (activity, tier, effort) => editCell(activity, tier, 'effort', effort),
1209
- addActivity: (activity, tier) => editCell(activity, tier, 'add'),
1209
+ // Restore puts the built-in default back; Use tier model drops the cell, a built-in one saved as the tier's route.
1210
+ restoreActivity: (activity, tier) => editCell(activity, tier, 'add'),
1210
1211
  removeActivity: (activity, tier) => editCell(activity, tier, 'remove'),
1212
+ selectCell: (cell) => updateView($, router, { routeCell: cell, notice: null }),
1213
+ usageDetail: () => updateView($, router, { usageDetail: !(router.view ?? view).usageDetail }),
1211
1214
  // `/router activities <mode>`: the mode alone, saved at once like a classifier press, with Undo.
1212
1215
  activityRouting: (mode) => {
1213
1216
  const from = router.config.activityRouting;