@alexeiled/claude-router 0.8.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +11 -7
- package/CHANGELOG.md +43 -0
- package/README.md +55 -98
- package/docs/architecture.md +55 -419
- package/docs/configuration.md +88 -182
- package/docs/evaluation.md +62 -81
- package/docs/native-router.md +80 -0
- package/docs/router-band.svg +119 -0
- package/docs/router-pane-now.svg +85 -0
- package/docs/router-pane-tiers.svg +62 -0
- package/docs/user-guide.md +127 -172
- package/hooks/hooks.json +1 -26
- package/hooks/native-router.mjs +701 -0
- package/lib/config.mjs +97 -63
- package/lib/{facts.mjs → facts-pure.mjs} +2 -23
- package/lib/{jev.mjs → jev-contract.mjs} +17 -38
- package/lib/native-band.mjs +206 -0
- package/lib/native-cost.mjs +88 -0
- package/lib/native-display.mjs +122 -0
- package/lib/native-jev.mjs +125 -0
- package/lib/native-panel.mjs +492 -0
- package/lib/native-router.mjs +221 -0
- package/lib/policy.mjs +17 -21
- package/package.json +10 -8
- package/scripts/migrate-config.mjs +57 -0
- package/types/index.d.ts +112 -0
- package/lib/cost.mjs +0 -93
- package/lib/gateway.mjs +0 -221
- package/lib/idle.mjs +0 -41
- package/lib/rewrite.mjs +0 -130
- package/lib/router.mjs +0 -276
- package/lib/runtime.mjs +0 -78
- package/lib/sse.mjs +0 -57
- package/lib/status.mjs +0 -152
- package/lib/store.mjs +0 -76
- package/scripts/ensure-gateway.mjs +0 -143
- package/scripts/gateway.mjs +0 -81
- package/scripts/git-hooks/pre-commit +0 -41
- package/scripts/git-hooks/pre-push +0 -34
- package/scripts/status.mjs +0 -20
- package/scripts/statusline.mjs +0 -45
- package/scripts/transcript-models.sh +0 -4
- package/skills/high/SKILL.md +0 -9
- package/skills/low/SKILL.md +0 -7
- package/skills/medium/SKILL.md +0 -8
- package/skills/micro/SKILL.md +0 -7
- package/skills/setup/SKILL.md +0 -31
- package/skills/status/SKILL.md +0 -12
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 922 379" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">The Router band above the Claude Code prompt</title>
|
|
3
|
+
<desc id="desc">Five band states drawn by the router code: routed to high, two rows with the hover row, a pending pin, a missing classifier key, and Manual mode.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; }
|
|
6
|
+
.cap { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 12px; fill: #9a988f; }
|
|
7
|
+
</style>
|
|
8
|
+
<rect width="922" height="379" rx="8" fill="#1c1c1c"/>
|
|
9
|
+
<text class="cap" x="20" y="30">Auto: routed to the high tier on a clear jump</text>
|
|
10
|
+
<rect x="12" y="38" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
11
|
+
<text x="24.0" y="56" fill="#e0708a" xml:space="preserve">▂</text>
|
|
12
|
+
<text x="31.8" y="56" fill="#e0708a" xml:space="preserve">▄</text>
|
|
13
|
+
<text x="39.6" y="56" fill="#e0708a" xml:space="preserve">▆</text>
|
|
14
|
+
<text x="47.4" y="56" fill="#e0708a" xml:space="preserve">█</text>
|
|
15
|
+
<text x="55.2" y="56" fill="#e0708a" font-weight="700" xml:space="preserve"> high </text>
|
|
16
|
+
<text x="102.0" y="56" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh</text>
|
|
17
|
+
<text x="226.8" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
18
|
+
<text x="265.8" y="56" fill="#7c7c7c" xml:space="preserve">↑ jump</text>
|
|
19
|
+
<text x="312.6" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
20
|
+
<text x="351.6" y="56" fill="#7c7c7c" xml:space="preserve">Jev 88% ≥ 82%</text>
|
|
21
|
+
<text x="453.0" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
22
|
+
<text x="492.0" y="56" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
23
|
+
<text x="523.2" y="56" fill="#87d787" xml:space="preserve">40%</text>
|
|
24
|
+
<text x="546.6" y="56" fill="#d0d0d0" xml:space="preserve"> · cache </text>
|
|
25
|
+
<text x="616.8" y="56" fill="#87d787" xml:space="preserve">100%</text>
|
|
26
|
+
<text x="663.6" y="56" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
27
|
+
<text class="cap" x="20" y="95">Two rows, with the hover row shown: recent replies by tier, pins, Manual</text>
|
|
28
|
+
<rect x="12" y="103" width="897.6" height="67" rx="5" fill="#232323"/>
|
|
29
|
+
<text x="24.0" y="121" fill="#e0708a" xml:space="preserve">▂</text>
|
|
30
|
+
<text x="31.8" y="121" fill="#e0708a" xml:space="preserve">▄</text>
|
|
31
|
+
<text x="39.6" y="121" fill="#e0708a" xml:space="preserve">▆</text>
|
|
32
|
+
<text x="47.4" y="121" fill="#e0708a" xml:space="preserve">█</text>
|
|
33
|
+
<text x="55.2" y="121" fill="#e0708a" font-weight="700" xml:space="preserve"> high </text>
|
|
34
|
+
<text x="102.0" y="121" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh</text>
|
|
35
|
+
<text x="226.8" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
36
|
+
<text x="265.8" y="121" fill="#7c7c7c" xml:space="preserve">↑ jump</text>
|
|
37
|
+
<text x="312.6" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
38
|
+
<text x="351.6" y="121" fill="#7c7c7c" xml:space="preserve">Jev 88% ≥ 82%</text>
|
|
39
|
+
<text x="453.0" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
40
|
+
<text x="492.0" y="121" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
41
|
+
<text x="523.2" y="121" fill="#87d787" xml:space="preserve">40%</text>
|
|
42
|
+
<text x="546.6" y="121" fill="#d0d0d0" xml:space="preserve"> · cache </text>
|
|
43
|
+
<text x="616.8" y="121" fill="#87d787" xml:space="preserve">100%</text>
|
|
44
|
+
<text x="663.6" y="121" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
45
|
+
<text x="24.0" y="140" fill="#7c7c7c" xml:space="preserve">replies </text>
|
|
46
|
+
<text x="86.4" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
47
|
+
<text x="94.2" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
48
|
+
<text x="102.0" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
49
|
+
<text x="109.8" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
50
|
+
<text x="117.6" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
51
|
+
<text x="125.4" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
52
|
+
<text x="133.2" y="140" fill="#d7af5f" xml:space="preserve">█</text>
|
|
53
|
+
<text x="141.0" y="140" fill="#d7af5f" xml:space="preserve">█</text>
|
|
54
|
+
<text x="148.8" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
55
|
+
<text x="156.6" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
56
|
+
<text x="164.4" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
57
|
+
<text x="172.2" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
58
|
+
<text x="180.0" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
59
|
+
<text x="187.8" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
60
|
+
<text x="195.6" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
61
|
+
<text x="203.4" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
62
|
+
<text x="211.2" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
63
|
+
<text x="219.0" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
64
|
+
<text x="226.8" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
65
|
+
<text x="234.6" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
66
|
+
<text x="242.4" y="140" fill="#7c7c7c" xml:space="preserve"> 3 switches · tax ≈ $0.48 · cache saved ≈ $1.52</text>
|
|
67
|
+
<text x="24.0" y="159" fill="#7c7c7c" xml:space="preserve">pin next turn </text>
|
|
68
|
+
<text x="133.2" y="159" fill="#d0d0d0" xml:space="preserve">[ micro ]</text>
|
|
69
|
+
<text x="211.2" y="159" fill="#d0d0d0" xml:space="preserve">[ low ]</text>
|
|
70
|
+
<text x="273.6" y="159" fill="#d0d0d0" xml:space="preserve">[ medium ]</text>
|
|
71
|
+
<text x="359.4" y="159" fill="#d0d0d0" xml:space="preserve">[ high ]</text>
|
|
72
|
+
<text x="445.2" y="159" fill="#d0d0d0" xml:space="preserve">[ Manual ]</text>
|
|
73
|
+
<text x="531.0" y="159" fill="#d0d0d0" xml:space="preserve">[ 1 row ]</text>
|
|
74
|
+
<text class="cap" x="20" y="198">A pin waits for the next turn; ✕ cancels it</text>
|
|
75
|
+
<rect x="12" y="206" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
76
|
+
<text x="24.0" y="224" fill="#5f9fe0" xml:space="preserve">▂</text>
|
|
77
|
+
<text x="31.8" y="224" fill="#5f9fe0" xml:space="preserve">▄</text>
|
|
78
|
+
<text x="39.6" y="224" fill="#7c7c7c" xml:space="preserve">▆</text>
|
|
79
|
+
<text x="47.4" y="224" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
80
|
+
<text x="55.2" y="224" fill="#5f9fe0" font-weight="700" xml:space="preserve"> low </text>
|
|
81
|
+
<text x="94.2" y="224" fill="#d0d0d0" xml:space="preserve">Sonnet 5.5 · medium</text>
|
|
82
|
+
<text x="242.4" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
83
|
+
<text x="281.4" y="224" fill="#d7af5f" xml:space="preserve">⏵ next turn: </text>
|
|
84
|
+
<text x="382.8" y="224" fill="#d7af5f" font-weight="700" xml:space="preserve">medium</text>
|
|
85
|
+
<text x="437.4" y="224" fill="#d0d0d0" xml:space="preserve">✕</text>
|
|
86
|
+
<text x="445.2" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
87
|
+
<text x="484.2" y="224" fill="#7c7c7c" xml:space="preserve">= fits</text>
|
|
88
|
+
<text x="531.0" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
89
|
+
<text x="570.0" y="224" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
90
|
+
<text x="601.2" y="224" fill="#87d787" xml:space="preserve">40%</text>
|
|
91
|
+
<text x="624.6" y="224" fill="#d0d0d0" xml:space="preserve"> · cache </text>
|
|
92
|
+
<text x="694.8" y="224" fill="#87d787" xml:space="preserve">100%</text>
|
|
93
|
+
<text x="741.6" y="224" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
94
|
+
<text class="cap" x="20" y="263">No classifier key: Router keeps the model and offers Set key</text>
|
|
95
|
+
<rect x="12" y="271" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
96
|
+
<text x="24.0" y="289" fill="#5f9fe0" xml:space="preserve">▂</text>
|
|
97
|
+
<text x="31.8" y="289" fill="#5f9fe0" xml:space="preserve">▄</text>
|
|
98
|
+
<text x="39.6" y="289" fill="#7c7c7c" xml:space="preserve">▆</text>
|
|
99
|
+
<text x="47.4" y="289" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
100
|
+
<text x="55.2" y="289" fill="#5f9fe0" font-weight="700" xml:space="preserve"> low </text>
|
|
101
|
+
<text x="94.2" y="289" fill="#d0d0d0" xml:space="preserve">Sonnet 5.5 · medium</text>
|
|
102
|
+
<text x="242.4" y="289" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
103
|
+
<text x="281.4" y="289" fill="#d7af5f" xml:space="preserve">⚠ Jev key not set</text>
|
|
104
|
+
<text x="414.0" y="289" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
105
|
+
<text x="453.0" y="289" fill="#d7af5f" xml:space="preserve">keeping model</text>
|
|
106
|
+
<text x="554.4" y="289" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
107
|
+
<text x="593.4" y="289" fill="#d0d0d0" xml:space="preserve">[ Set key ]</text>
|
|
108
|
+
<text x="694.8" y="289" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
109
|
+
<text class="cap" x="20" y="328">Manual: /model chose the model; Auto resumes routing</text>
|
|
110
|
+
<rect x="12" y="336" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
111
|
+
<text x="24.0" y="354" fill="#7c7c7c" xml:space="preserve">○ </text>
|
|
112
|
+
<text x="39.6" y="354" fill="#d0d0d0" xml:space="preserve">Router </text>
|
|
113
|
+
<text x="94.2" y="354" fill="#d7af5f" xml:space="preserve">off</text>
|
|
114
|
+
<text x="117.6" y="354" fill="#d0d0d0" xml:space="preserve"> · keeping Sonnet 5.5</text>
|
|
115
|
+
<text x="281.4" y="354" fill="#7c7c7c" xml:space="preserve"> (/model)</text>
|
|
116
|
+
<text x="351.6" y="354" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
117
|
+
<text x="390.6" y="354" fill="#d0d0d0" xml:space="preserve">[ Auto ]</text>
|
|
118
|
+
<text x="468.6" y="354" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
119
|
+
</svg>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 594 496" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Router pane, Now tab</title>
|
|
3
|
+
<desc id="desc">The current route with its reason, classifier support per tier with pin buttons, the last 20 replies colored by tier, and context, cache and cost.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; }
|
|
6
|
+
.cap { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 12px; fill: #9a988f; }
|
|
7
|
+
</style>
|
|
8
|
+
<rect width="594" height="496" rx="8" fill="#1c1c1c"/>
|
|
9
|
+
<rect x="10" y="10" width="574" height="476" rx="6" fill="none" stroke="#3f5f8f"/>
|
|
10
|
+
<text x="24.0" y="34" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTER · Auto</text>
|
|
11
|
+
<text x="148.8" y="34" fill="#87d787" xml:space="preserve">Jev ready · 347 ms</text>
|
|
12
|
+
<text x="24.0" y="53" fill="#87afff" font-weight="700" xml:space="preserve">[ Auto ]</text>
|
|
13
|
+
<text x="94.2" y="53" fill="#d0d0d0" xml:space="preserve">[ Manual: keep /model ]</text>
|
|
14
|
+
<text x="24.0" y="72" fill="#87afff" font-weight="700" xml:space="preserve">[ Now ]</text>
|
|
15
|
+
<text x="86.4" y="72" fill="#d0d0d0" xml:space="preserve">[ Tiers ]</text>
|
|
16
|
+
<text x="164.4" y="72" fill="#d0d0d0" xml:space="preserve">[ Tuning ]</text>
|
|
17
|
+
<text x="250.2" y="72" fill="#d0d0d0" xml:space="preserve">[ Usage ]</text>
|
|
18
|
+
<text x="328.2" y="72" fill="#d0d0d0" xml:space="preserve">[ ? ]</text>
|
|
19
|
+
<text x="24.0" y="110" fill="#d0d0d0" xml:space="preserve">Now </text>
|
|
20
|
+
<text x="78.6" y="110" fill="#e0708a" font-weight="700" xml:space="preserve">▌high </text>
|
|
21
|
+
<text x="133.2" y="110" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh</text>
|
|
22
|
+
<text x="24.0" y="129" fill="#d0d0d0" xml:space="preserve">Why </text>
|
|
23
|
+
<text x="78.6" y="129" fill="#d0d0d0" xml:space="preserve">clear need for a stronger model</text>
|
|
24
|
+
<text x="24.0" y="167" fill="#5fafd7" font-weight="700" xml:space="preserve">TIERS · next turn</text>
|
|
25
|
+
<text x="24.0" y="186" fill="#7c7c7c" xml:space="preserve"> tier route Jev support</text>
|
|
26
|
+
<text x="24.0" y="205" fill="#e0708a" font-weight="700" xml:space="preserve">▶ </text>
|
|
27
|
+
<text x="39.6" y="205" fill="#e0708a" font-weight="700" xml:space="preserve">high </text>
|
|
28
|
+
<text x="102.0" y="205" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh </text>
|
|
29
|
+
<text x="273.6" y="205" fill="#e0708a" xml:space="preserve">█████████░</text>
|
|
30
|
+
<text x="351.6" y="205" fill="#d0d0d0" xml:space="preserve"> 88% </text>
|
|
31
|
+
<text x="406.2" y="205" fill="#d0d0d0" xml:space="preserve">[ pin ]</text>
|
|
32
|
+
<text x="39.6" y="224" fill="#d7af5f" font-weight="700" xml:space="preserve">medium </text>
|
|
33
|
+
<text x="102.0" y="224" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · medium </text>
|
|
34
|
+
<text x="273.6" y="224" fill="#d7af5f" xml:space="preserve">█░░░░░░░░░</text>
|
|
35
|
+
<text x="351.6" y="224" fill="#d0d0d0" xml:space="preserve"> 7% </text>
|
|
36
|
+
<text x="406.2" y="224" fill="#d0d0d0" xml:space="preserve">[ pin ]</text>
|
|
37
|
+
<text x="39.6" y="243" fill="#5f9fe0" font-weight="700" xml:space="preserve">low </text>
|
|
38
|
+
<text x="102.0" y="243" fill="#d0d0d0" xml:space="preserve">Sonnet 5.5 · session </text>
|
|
39
|
+
<text x="273.6" y="243" fill="#5f9fe0" xml:space="preserve">░░░░░░░░░░</text>
|
|
40
|
+
<text x="351.6" y="243" fill="#d0d0d0" xml:space="preserve"> 3% </text>
|
|
41
|
+
<text x="406.2" y="243" fill="#d0d0d0" xml:space="preserve">[ pin ]</text>
|
|
42
|
+
<text x="39.6" y="262" fill="#5fd7af" font-weight="700" xml:space="preserve">micro </text>
|
|
43
|
+
<text x="102.0" y="262" fill="#d0d0d0" xml:space="preserve">Haiku 4.5 </text>
|
|
44
|
+
<text x="273.6" y="262" fill="#5fd7af" xml:space="preserve">░░░░░░░░░░</text>
|
|
45
|
+
<text x="351.6" y="262" fill="#d0d0d0" xml:space="preserve"> 2% </text>
|
|
46
|
+
<text x="406.2" y="262" fill="#d0d0d0" xml:space="preserve">[ pin ]</text>
|
|
47
|
+
<text x="24.0" y="281" fill="#7c7c7c" xml:space="preserve"> switch needs 82% · Jev gave 88% up · tax ≈ $0.48</text>
|
|
48
|
+
<text x="24.0" y="300" fill="#7c7c7c" xml:space="preserve"> Pins serve the next turn only.</text>
|
|
49
|
+
<text x="24.0" y="338" fill="#5fafd7" font-weight="700" xml:space="preserve">REPLIES · last 20</text>
|
|
50
|
+
<text x="39.6" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
51
|
+
<text x="47.4" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
52
|
+
<text x="55.2" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
53
|
+
<text x="63.0" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
54
|
+
<text x="70.8" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
55
|
+
<text x="78.6" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
56
|
+
<text x="86.4" y="357" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
57
|
+
<text x="94.2" y="357" fill="#d7af5f" font-weight="700" xml:space="preserve">█</text>
|
|
58
|
+
<text x="102.0" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
59
|
+
<text x="109.8" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
60
|
+
<text x="117.6" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
61
|
+
<text x="125.4" y="357" fill="#5f9fe0" font-weight="700" xml:space="preserve">█</text>
|
|
62
|
+
<text x="133.2" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
63
|
+
<text x="141.0" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
64
|
+
<text x="148.8" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
65
|
+
<text x="156.6" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
66
|
+
<text x="164.4" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
67
|
+
<text x="172.2" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
68
|
+
<text x="180.0" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
69
|
+
<text x="187.8" y="357" fill="#e0708a" font-weight="700" xml:space="preserve">█</text>
|
|
70
|
+
<text x="195.6" y="357" fill="#7c7c7c" xml:space="preserve"> 3 switches</text>
|
|
71
|
+
<text x="39.6" y="376" fill="#5fd7af" font-weight="700" xml:space="preserve">■ </text>
|
|
72
|
+
<text x="55.2" y="376" fill="#d0d0d0" xml:space="preserve">micro </text>
|
|
73
|
+
<text x="109.8" y="376" fill="#5f9fe0" font-weight="700" xml:space="preserve">■ </text>
|
|
74
|
+
<text x="125.4" y="376" fill="#d0d0d0" xml:space="preserve">low </text>
|
|
75
|
+
<text x="164.4" y="376" fill="#d7af5f" font-weight="700" xml:space="preserve">■ </text>
|
|
76
|
+
<text x="180.0" y="376" fill="#d0d0d0" xml:space="preserve">medium </text>
|
|
77
|
+
<text x="242.4" y="376" fill="#e0708a" font-weight="700" xml:space="preserve">■ </text>
|
|
78
|
+
<text x="258.0" y="376" fill="#d0d0d0" xml:space="preserve">high </text>
|
|
79
|
+
<text x="24.0" y="414" fill="#87d787" xml:space="preserve">Context ██████░░░░░░░░░░ 40% ~402.9K / 1.00M</text>
|
|
80
|
+
<text x="24.0" y="433" fill="#87d787" xml:space="preserve">Cache ████████████████ 100% reused on the last reply</text>
|
|
81
|
+
<text x="24.0" y="452" fill="#d0d0d0" xml:space="preserve">Cost $18.003 </text>
|
|
82
|
+
<text x="156.6" y="452" fill="#7c7c7c" xml:space="preserve">by Claude</text>
|
|
83
|
+
<text x="226.8" y="452" fill="#d0d0d0" xml:space="preserve"> · cache saved ≈ $1.52</text>
|
|
84
|
+
<text x="24.0" y="471" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
|
|
85
|
+
</svg>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 594 477" role="img" aria-labelledby="title desc">
|
|
2
|
+
<title id="title">Router pane, Tiers tab</title>
|
|
3
|
+
<desc id="desc">Model and effort per tier with prices and windows, the baseline tier, how the policy prices each step up, and the router.json change Save routes will write.</desc>
|
|
4
|
+
<style>
|
|
5
|
+
text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: 13px; }
|
|
6
|
+
.cap { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 12px; fill: #9a988f; }
|
|
7
|
+
</style>
|
|
8
|
+
<rect width="594" height="477" rx="8" fill="#1c1c1c"/>
|
|
9
|
+
<rect x="10" y="10" width="574" height="457" rx="6" fill="none" stroke="#3f5f8f"/>
|
|
10
|
+
<text x="24.0" y="34" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTER · Auto</text>
|
|
11
|
+
<text x="148.8" y="34" fill="#87d787" xml:space="preserve">Jev ready · 347 ms</text>
|
|
12
|
+
<text x="24.0" y="53" fill="#87afff" font-weight="700" xml:space="preserve">[ Auto ]</text>
|
|
13
|
+
<text x="94.2" y="53" fill="#d0d0d0" xml:space="preserve">[ Manual: keep /model ]</text>
|
|
14
|
+
<text x="24.0" y="72" fill="#d0d0d0" xml:space="preserve">[ Now ]</text>
|
|
15
|
+
<text x="86.4" y="72" fill="#87afff" font-weight="700" xml:space="preserve">[ Tiers ]</text>
|
|
16
|
+
<text x="164.4" y="72" fill="#d0d0d0" xml:space="preserve">[ Tuning ]</text>
|
|
17
|
+
<text x="250.2" y="72" fill="#d0d0d0" xml:space="preserve">[ Usage ]</text>
|
|
18
|
+
<text x="328.2" y="72" fill="#d0d0d0" xml:space="preserve">[ ? ]</text>
|
|
19
|
+
<text x="24.0" y="110" fill="#5fafd7" font-weight="700" xml:space="preserve">ROUTES · future turns</text>
|
|
20
|
+
<text x="24.0" y="129" fill="#7c7c7c" xml:space="preserve">tier model effort $/M in · out window</text>
|
|
21
|
+
<text x="24.0" y="148" fill="#e0708a" font-weight="700" xml:space="preserve">high</text>
|
|
22
|
+
<text x="86.4" y="148" fill="#d0d0d0" xml:space="preserve">Opus 5.5 ▾</text>
|
|
23
|
+
<text x="195.6" y="148" fill="#d0d0d0" xml:space="preserve">xhigh ▾</text>
|
|
24
|
+
<text x="289.2" y="148" fill="#d0d0d0" xml:space="preserve">4 · 20</text>
|
|
25
|
+
<text x="398.4" y="148" fill="#d0d0d0" xml:space="preserve">1M</text>
|
|
26
|
+
<text x="24.0" y="167" fill="#d7af5f" font-weight="700" xml:space="preserve">medium</text>
|
|
27
|
+
<text x="86.4" y="167" fill="#d0d0d0" xml:space="preserve">Sonnet 5.5 ▾</text>
|
|
28
|
+
<text x="195.6" y="167" fill="#d0d0d0" xml:space="preserve">xhigh ▾</text>
|
|
29
|
+
<text x="289.2" y="167" fill="#d0d0d0" xml:space="preserve">2 · 10</text>
|
|
30
|
+
<text x="398.4" y="167" fill="#d0d0d0" xml:space="preserve">1M</text>
|
|
31
|
+
<text x="414.0" y="167" fill="#d7af5f" xml:space="preserve"> ●</text>
|
|
32
|
+
<text x="24.0" y="186" fill="#5f9fe0" font-weight="700" xml:space="preserve">low</text>
|
|
33
|
+
<text x="86.4" y="186" fill="#d0d0d0" xml:space="preserve">Sonnet 5.5 ▾</text>
|
|
34
|
+
<text x="195.6" y="186" fill="#d0d0d0" xml:space="preserve">session ▾</text>
|
|
35
|
+
<text x="289.2" y="186" fill="#d0d0d0" xml:space="preserve">2 · 10</text>
|
|
36
|
+
<text x="398.4" y="186" fill="#d0d0d0" xml:space="preserve">1M</text>
|
|
37
|
+
<text x="24.0" y="205" fill="#5fd7af" font-weight="700" xml:space="preserve">micro</text>
|
|
38
|
+
<text x="86.4" y="205" fill="#d0d0d0" xml:space="preserve">Haiku 4.5 ▾</text>
|
|
39
|
+
<text x="195.6" y="205" fill="#7c7c7c" xml:space="preserve">none</text>
|
|
40
|
+
<text x="289.2" y="205" fill="#d0d0d0" xml:space="preserve">1 · 5</text>
|
|
41
|
+
<text x="398.4" y="205" fill="#d0d0d0" xml:space="preserve">200K</text>
|
|
42
|
+
<text x="24.0" y="224" fill="#d0d0d0" xml:space="preserve">Baseline tier: low ▾</text>
|
|
43
|
+
<text x="180.0" y="224" fill="#7c7c7c" xml:space="preserve"> start here, fall back here</text>
|
|
44
|
+
<text x="24.0" y="262" fill="#5fafd7" font-weight="700" xml:space="preserve">SWITCH COST · from these routes</text>
|
|
45
|
+
<text x="24.0" y="281" fill="#7c7c7c" xml:space="preserve">· </text>
|
|
46
|
+
<text x="39.6" y="281" fill="#d0d0d0" xml:space="preserve">medium → high </text>
|
|
47
|
+
<text x="164.4" y="281" fill="#d0d0d0" xml:space="preserve">model change: priced as a cold cache write</text>
|
|
48
|
+
<text x="24.0" y="300" fill="#7c7c7c" xml:space="preserve">· </text>
|
|
49
|
+
<text x="39.6" y="300" fill="#d0d0d0" xml:space="preserve">low → medium </text>
|
|
50
|
+
<text x="164.4" y="300" fill="#d0d0d0" xml:space="preserve">same model, new effort: priced as a new cache</text>
|
|
51
|
+
<text x="24.0" y="319" fill="#7c7c7c" xml:space="preserve">· </text>
|
|
52
|
+
<text x="39.6" y="319" fill="#d0d0d0" xml:space="preserve">micro → low </text>
|
|
53
|
+
<text x="164.4" y="319" fill="#d0d0d0" xml:space="preserve">model change: priced as a cold cache write</text>
|
|
54
|
+
<text x="24.0" y="357" fill="#7c7c7c" xml:space="preserve">router.json changes:</text>
|
|
55
|
+
<text x="24.0" y="376" fill="#e06c6c" xml:space="preserve">- routes.medium Opus 5.5 · medium</text>
|
|
56
|
+
<text x="24.0" y="395" fill="#87d787" xml:space="preserve">+ routes.medium Sonnet 5.5 · xhigh</text>
|
|
57
|
+
<text x="24.0" y="414" fill="#87afff" font-weight="700" xml:space="preserve">[ Save routes ]</text>
|
|
58
|
+
<text x="148.8" y="414" fill="#d0d0d0" xml:space="preserve">[ Discard ]</text>
|
|
59
|
+
<text x="242.4" y="414" fill="#d0d0d0" xml:space="preserve">[ Reset to defaults ]</text>
|
|
60
|
+
<text x="24.0" y="433" fill="#7c7c7c" xml:space="preserve">A new model ID needs router.json → models: price, window, efforts.</text>
|
|
61
|
+
<text x="24.0" y="452" fill="#d0d0d0" xml:space="preserve">[ Close ]</text>
|
|
62
|
+
</svg>
|