@alexeiled/claude-router 1.0.0 → 1.1.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.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "router",
3
- "displayName": "jev-router",
4
- "version": "1.0.0",
5
- "description": "Native Jev model and effort routing for the main conversation. Preserves subagent model choices.",
3
+ "displayName": "Router",
4
+ "version": "1.1.1",
5
+ "description": "Model and effort routing for the main conversation, advised by a prompt classifier (Jev). Preserves subagent model choices.",
6
6
  "author": {
7
7
  "name": "Alexei Ledenev",
8
8
  "url": "https://github.com/alexei-led"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1 (2026-10-05)
4
+
5
+ ### Fixed
6
+
7
+ - The credits cap now also guards downgrades and failure escalations. It checked only upgrades, so a downgrade or an escalation could start with a cold cache write above `policy.cashCapUsd` on a `credits` model. A blocked switch now stays on the current tier, or moves to the strongest `plan` tier above it. Default routes use `plan` models and are not affected.
8
+
9
+ ## 1.1.0 (2026-10-05)
10
+
11
+ ### Added
12
+
13
+ - The status band is redrawn as **Router**: a tier meter, the route, a one-word reason, classifier support, and context and cache, fitted to the band's width. It offers **Auto**, **Set key**, and pin cancel in place. Hover reveals tier pins, Manual, and an optional second row with recent replies by tier.
14
+ - A model change between turns raises a toast; a pin or an effort-only change does not. The spinner says `Choosing model` while the classifier runs. The prompt footer shows `router off` in Manual mode.
15
+ - The router pane has four tabs: Now, Tiers, Tuning, and Usage. Now shows the classifier's support for each tier next to its pin button, and the last 30 replies colored by tier.
16
+ - The Tiers tab edits each tier's model and effort and the baseline tier. It shows the `router.json` diff and how the policy prices each step up before you save. A route can set `"effort": null` to keep the session effort.
17
+ - The Tuning tab adds the credits cap.
18
+ - The user guide and README show the band and pane, drawn from the render code with `npm run docs:images`.
19
+
20
+ ### Changed
21
+
22
+ - The `medium` tier defaults to Opus 5.5 at `medium` effort (was Sonnet 5.5 at `xhigh`), for a speed and cost balance. A `routes.medium` entry in `router.json` still overrides it.
23
+ - The plugin is named Router. Jev is named only where it explains a reading or a failure, so other classifiers can follow. The plugin ID is unchanged.
24
+ - `/router` takes `auto`, `off`, or `pin <tier>`. `status` and `setup` are removed: without a UI surface, `/router` prints the status, and **Set key** in the band or pane opens the secure key dialog.
25
+ - A failed save in the pane names the invalid setting instead of a generic error.
26
+
27
+ ### Fixed
28
+
29
+ - `/router setup` failed with "no command.run hook answered it". Claude Code refuses `$.command.run` inside a `command.run` hook, so the key dialog now opens from a timer.
30
+ - The input trend scales from the lowest to the highest reading. Before, similar large readings drew as one solid bar.
31
+ - The band yields to surveys and no longer shows the main conversation's tier in a subagent transcript.
32
+ - Leftover v0.8 gateway settings are listed in the pane, not only in text status.
33
+
3
34
  ## 1.0.0 (2026-10-05)
4
35
 
5
36
  ### Changed
@@ -17,7 +48,6 @@
17
48
  - Run `node scripts/migrate-config.mjs /path/to/router.json` from the plugin directory for an existing 0.8 `router.json`. It keeps an exact-byte `.v0.8.backup` and converts supported route, model, cache and policy settings.
18
49
  - Start Claude Code on the full baseline model, for example `claude-sonnet-5-5`. A `/model` choice enters Manual mode; `/router auto` resumes routing. Manual mode follows the session: `/clear` starts Auto, `/resume` restores the resumed session's mode.
19
50
  - The Mod requires Claude Code 2.1.289 or newer.
20
- - Roll back by disabling the 1.0.0 plugin, restoring `router.json.v0.8.backup` if you converted the file, and loading the signed `v0.8.0` tag with `--plugin-dir`, then running its `/router:setup`. See the [user guide](https://github.com/alexei-led/claude-router/blob/main/docs/user-guide.md#roll-back-to-v080).
21
51
 
22
52
  ## 0.8.0 (2026-10-01)
23
53
 
package/README.md CHANGED
@@ -3,10 +3,14 @@
3
3
  [![CI](https://github.com/alexei-led/claude-router/actions/workflows/ci.yml/badge.svg)](https://github.com/alexei-led/claude-router/actions/workflows/ci.yml)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
 
6
- **A Claude Code Mod that asks Jev to choose a model and effort for each main-conversation turn.**
6
+ **A Claude Code Mod that chooses a model and effort for each main-conversation turn, advised by a prompt classifier (Jev).**
7
7
 
8
8
  The Mod changes only the model and effort in Claude Code's turn hook. Claude Code sends the request, streams the reply, runs tools, and reports usage. The router does not proxy Anthropic traffic or start a local server. Subagent model choices pass through unchanged.
9
9
 
10
+ ![The Router band above the Claude Code prompt in five states](docs/router-band.svg)
11
+
12
+ The band above the prompt shows the tier, model, and reason for each turn. `/router` opens a pane to pin a tier, edit the model and effort of each tier, and tune the policy. See the [user guide](docs/user-guide.md#read-the-status-band).
13
+
10
14
  The router needs Claude Code 2.1.289 or newer. Current savings are not measured. The panel shows Claude's reported usage and configured-price scenarios, not a savings total. See the [evaluation](docs/evaluation.md).
11
15
 
12
16
  ## How it works
@@ -38,7 +42,7 @@ Jev classifies a new logical turn once. Tool continuations keep that choice. A l
38
42
  | -------- | ------------- | ------------------------ |
39
43
  | `micro` | Haiku 4.5 | No effort setting |
40
44
  | `low` | Sonnet 5.5 | Keeps the session effort |
41
- | `medium` | Sonnet 5.5 | `xhigh` |
45
+ | `medium` | Opus 5.5 | `medium` |
42
46
  | `high` | Opus 5.5 | `xhigh` |
43
47
 
44
48
  These are routing defaults. They do not claim equal model quality.
@@ -52,7 +56,9 @@ claude plugin marketplace add alexei-led/claude-router
52
56
  claude plugin install router@alexei-led-claude-router
53
57
  ```
54
58
 
55
- Start Claude Code on the full baseline model, for example `claude --model claude-sonnet-5-5`. Then run `/plugin configure router`, save the Jev API key, and run `/router auto`.
59
+ Start Claude Code on the full baseline model, for example `claude --model claude-sonnet-5-5`. Run `/plugin configure router` and save the Jev API key. A session on the baseline model starts in Auto; on another model it starts in Manual, and `/router auto` turns routing on.
60
+
61
+ Claude Code updates the plugin at startup when auto-update is on for this marketplace. Otherwise run `claude plugin marketplace update alexei-led-claude-router`, then `claude plugin update router@alexei-led-claude-router`.
56
62
 
57
63
  Upgrading from 0.8? Remove the gateway settings that 0.8 `/router:setup` wrote before the first 1.0 session, or requests go to a gateway that 1.0 no longer starts. Follow the [migration steps](docs/user-guide.md#move-from-v08-gateway-setup).
58
64
 
@@ -64,9 +70,15 @@ Start Claude Code with this directory as a local plugin and the full Sonnet base
64
70
  claude --plugin-dir "$PWD" --model claude-sonnet-5-5
65
71
  ```
66
72
 
67
- In Claude Code, run `/plugin configure router` and save your Jev API key in the sensitive plugin option. Then run `/router auto`. The Mod adds its status band and `/router` pane. No status-line setup or gateway environment variables are needed.
73
+ In Claude Code, run `/plugin configure router` and save your Jev API key in the sensitive plugin option. The Mod adds its status band and `/router` pane. No status-line setup or gateway environment variables are needed.
74
+
75
+ Run `/router` to open the pane: route status, per-tier controls, tuning, and usage. Run `/model` to select a model and enter Manual mode, and `/router auto` to resume. For controls, metrics, tuning, and troubleshooting, see the [user guide](docs/user-guide.md).
68
76
 
69
- Run `/model` to select a model and enter Manual mode. Run `/router auto` to resume. For controls, metrics, tuning, and troubleshooting, see the [user guide](docs/user-guide.md).
77
+ Before a push, run the same checks as CI. `npm run validate` and `npm run test:plugin` need the `claude` CLI: they load the Mod in the Claude Code engine, which refuses some faults that lint and unit tests miss.
78
+
79
+ ```sh
80
+ npm run check && npm test && npm run validate && npm run test:plugin
81
+ ```
70
82
 
71
83
  ## Documentation
72
84
 
@@ -32,7 +32,7 @@ The Mod does not construct an Anthropic request or proxy its response. Claude Co
32
32
 
33
33
  Jev receives only the current prompt and up to six recent user or assistant text messages. Each text is capped at 1,200 characters. System messages, tool inputs, and tool results are not included. The Jev key is a sensitive plugin option. The Mod does not receive Claude's Anthropic credentials.
34
34
 
35
- Direct Claude Code 2.1.289 probes accepted signed-thinking history and tool results across Sonnet, Opus, and Haiku switches. Sonnet and Opus accepted histories above 589K input tokens. Deferred MCP tools worked on rewritten Haiku with a 128K output limit. These checks cover tested requests. They do not prove every Claude Code feature combination.
35
+ Claude Code builds each request for the model the Mod selects, so no request rewriting is needed: Haiku gets its own thinking mode and a 32K output cap. On Claude Code 2.1.289, a billed chain of pinned turns (Opus, Haiku, Sonnet at `xhigh`, Sonnet, Haiku) used a tool on every turn over the previous models' history, and no request was rejected. Sonnet and Opus accepted histories above 589K input tokens. These checks cover tested requests. They do not prove every Claude Code feature combination.
36
36
 
37
37
  ## Responsibilities
38
38
 
@@ -44,7 +44,8 @@ Direct Claude Code 2.1.289 probes accepted signed-thinking history and tool resu
44
44
  | [Router controller](../lib/native-router.mjs) | Context fit, model identity, cache observations, and one-turn pins. |
45
45
  | [Policy](../lib/policy.mjs) | Tier votes, escalation, and switching gates. |
46
46
  | [Native costs](../lib/native-cost.mjs) | Cache uncertainty bounds and switching estimates. |
47
- | [Native panel](../lib/native-panel.mjs) | Route status, usage metrics, controls, and validated tuning. |
47
+ | [Native panel](../lib/native-panel.mjs) | Tabbed pane: route status, tier pins, the route editor, tuning, and usage. |
48
+ | [Router band](../lib/native-band.mjs) | Status band segments fitted to the band's width, and route-change toasts. |
48
49
  | Claude Code | API requests, tools, authentication, stream output, and usage ledger. |
49
50
 
50
51
  Node.js is not part of routing. It is used for development and the optional v0.8 configuration migration.
@@ -61,7 +62,7 @@ An explicit context-window failure marks that model ineligible until the next hi
61
62
 
62
63
  `$.state` stores route decisions, response observations, and UI state for the active session. Version-checked writes reject stale turn results. A private in-memory view merges state writes during one dispatch because state reads are frozen for that dispatch.
63
64
 
64
- Clear, branch, rewind, and committed compaction clear cache evidence and votes. A fresh session on the configured baseline starts in Auto. A fresh session on another model starts in Manual. Resume restores the selected session's saved mode. Hot reload retains valid `$.state`. Running `/model` enters Manual, including an explicit choice of the baseline. `/router auto` resumes routing. `/router off` also enters Manual. Pins apply to the next turn and its tool continuations. The prior Auto route resumes afterward.
65
+ Clear, branch, rewind, and committed compaction clear cache evidence and votes. A turn in progress keeps its route, pin, and any engine fallback. `/clear` starts the new session in Auto. A fresh session on the configured baseline starts in Auto. A fresh session on another model starts in Manual. Resume restores the selected session's saved mode. Hot reload retains valid `$.state`. Running `/model` enters Manual, including an explicit choice of the baseline. `/router auto` resumes routing. `/router off` also enters Manual. Pins apply to the next turn and its tool continuations. The prior Auto route resumes afterward.
65
66
 
66
67
  Subagent events pass directly to Claude Code. They do not create Jev requests or change main-conversation metrics. This is the selected scope because Mods do not expose whether a subagent model was explicit or inherited.
67
68
 
@@ -83,6 +84,6 @@ The switching policy prices the candidate at a conservative cache-write bound an
83
84
 
84
85
  ## Deployment
85
86
 
86
- Load the plugin directory with Claude Code's `--plugin-dir` option. The Team launcher uses an isolated `~/.claude-team/mods/router` directory, so updating the Mod does not replace another profile's plugin cache. The Team canary passed with the native plugin, a full Sonnet baseline, and a real Jev classification.
87
+ Install the plugin from the `alexei-led/claude-router` marketplace, or load a checkout with `--plugin-dir`. Load only one copy of the router in a session. The plugin ships the Mod, its pure `lib/` modules, type declarations, and the v0.8 configuration migration script. It starts no process and opens no port.
87
88
 
88
- The v0.8.0 git version remains available as the rollback source. Native routing does not require the proxy. Use the [configuration guide](configuration.md) for optional settings and migration, and the [native guide](native-router.md) for panel and control behavior.
89
+ Use the [configuration guide](configuration.md) for optional settings and migration, and the [native guide](native-router.md) for panel and control behavior.
@@ -6,8 +6,8 @@ The router works with its built-in defaults. Configure a Jev key to enable advic
6
6
 
7
7
  | Item | Where it lives | How to change it |
8
8
  | ---------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------ |
9
- | Jev API key | Sensitive plugin option `typesafe_api_key` | Run `/plugin configure router`, or use **Set Jev API key** in the router pane. |
10
- | Router settings | `router.json` in the active Claude Code profile | Edit the file directly, or use the pane's tuning controls. |
9
+ | Jev API key | Sensitive plugin option `typesafe_api_key` | Run `/plugin configure router`, or use **Set Jev key** in the router pane. |
10
+ | Router settings | `router.json` in the active Claude Code profile | Edit the file directly, or use the pane's Tiers and Tuning tabs. |
11
11
  | Anthropic credentials and API cost | Claude Code | The Mod leaves these to Claude Code. |
12
12
 
13
13
  The active profile directory is `CLAUDE_CONFIG_DIR` when set. Otherwise it is `~/.claude`. The Mod does not need an Anthropic proxy URL, model alias, hint header, daemon, or custom status line.
@@ -24,7 +24,7 @@ The default baseline is tier `low`. Each route refers to an alias in `models`.
24
24
  | -------- | ----------- | ------------------- | ------------------------------------ |
25
25
  | `micro` | `haiku` | `claude-haiku-4-5` | None |
26
26
  | `low` | `sonnet` | `claude-sonnet-5-5` | Keeps the effort sent by Claude Code |
27
- | `medium` | `sonnet` | `claude-sonnet-5-5` | `xhigh` |
27
+ | `medium` | `opus` | `claude-opus-5-5` | `medium` |
28
28
  | `high` | `opus` | `claude-opus-5-5` | `xhigh` |
29
29
 
30
30
  Default model settings:
@@ -35,7 +35,7 @@ Default model settings:
35
35
  | `sonnet` | 2 / 10 / 0.2 | 1,000,000 | `plan` | `low`, `medium`, `high`, `xhigh`, `max` |
36
36
  | `haiku` | 1 / 5 / 0.1 | 200,000 | `plan` | none |
37
37
 
38
- Prices are configured list-price inputs for estimates. They are not a subscription bill or a claim of savings. Haiku receives no effort field. A route without an effort keeps the session effort, clamped to what the model supports.
38
+ Prices are configured list-price inputs for estimates. They are not a subscription bill or a claim of savings. Haiku receives no effort field. A route without an effort keeps the session effort, clamped to what the model supports. To make a tier whose default names an effort keep the session effort instead, set `"effort": null`, for example `"routes": { "high": { "model": "opus", "effort": null } }`.
39
39
 
40
40
  ## Optional `router.json`
41
41
 
@@ -53,7 +53,7 @@ The Mod validates the whole file. Unknown keys and invalid values make routing u
53
53
  | Section | Supported fields | Defaults |
54
54
  | ---------------- | ------------------------------------------------------------------------------------ | --------------------------------------------------------------- |
55
55
  | `baselineTier` | `micro`, `low`, `medium`, `high` | `low` |
56
- | `routes.<tier>` | `model`, optional `effort` | As in the route table above |
56
+ | `routes.<tier>` | `model`, optional `effort` (a level, or `null` for the session effort) | As in the route table above |
57
57
  | `models.<alias>` | `id`, `input`, optional `output`, `cacheRead`, `contextWindow`, `billing`, `efforts` | Three defaults above |
58
58
  | `cache` | `writeMultiplier`, `ttlMs`, `warmMarginMs` | `5m: 1.25`, `1h: 2`; `300000` / `3600000` ms; `30000` ms |
59
59
  | `policy` | Fields below | Values below |
@@ -78,7 +78,7 @@ Policy defaults:
78
78
  | `escalationHoldTurns` | `2` | Turns held after a repeated tool error escalates the route. |
79
79
  | `cashCapUsd` | `2` | Maximum estimated cold cache write for a `credits` model. It does not cap output or session spend. |
80
80
 
81
- The pane exposes only three tuning controls: Jev deadline, downgrade vote count, and downgrade horizon. Select **Save tuning** to preserve other keys and apply the change to future turns. The pane refuses to write through a symlink. Other supported settings require a direct edit.
81
+ The pane writes a subset of these settings. The **Tiers** tab sets `routes` and `baselineTier`: it writes only tiers that differ from the defaults and removes the rest. The **Tuning** tab sets `jev.timeoutMs`, `policy.downgradeVotes`, `policy.downgradeHorizonTurns`, and `policy.cashCapUsd`. Each save validates the whole file, keeps other keys, and applies from the next turn. A failed check names the setting and leaves the file unchanged. The pane refuses to write through a symlink. Model aliases and the other settings require a direct edit.
82
82
 
83
83
  Native cache freshness is unknown after 270 seconds or after a history reset. Claude usage does not report the cache TTL. The policy evaluates price bounds for five-minute and one-hour writes, but the one-hour case is not observed fact. See the [architecture](architecture.md#cache-and-cost) for the estimate rules.
84
84
 
@@ -86,7 +86,7 @@ Native cache freshness is unknown after 270 seconds or after a history reset. Cl
86
86
 
87
87
  The `router.json` converter changes only that file. It does not remove Claude Code gateway settings. Remove them before the first native session.
88
88
 
89
- A marketplace install keeps the plugin ID `router@alexei-led-claude-router`: update it and keep it enabled. If you load v1 from a checkout with `--plugin-dir` instead, disable the marketplace v0.8 install so only one router loads. Set `CLAUDE_CONFIG_DIR` to the intended profile directory first:
89
+ A marketplace install keeps the plugin ID `router@alexei-led-claude-router`: update it and keep it enabled. If you load v1 from a checkout with `--plugin-dir` instead, disable the marketplace install so only one router loads. Set `CLAUDE_CONFIG_DIR` to the intended profile directory first:
90
90
 
91
91
  ```sh
92
92
  CLAUDE_CONFIG_DIR=/path/to/profile claude plugin disable router@alexei-led-claude-router --scope user
@@ -94,12 +94,14 @@ CLAUDE_CONFIG_DIR=/path/to/profile claude plugin disable router@alexei-led-claud
94
94
 
95
95
  Then inspect that profile's `settings.json`. Remove the old `jev-router[1m]` model-picker row and any `model` or `env.ANTHROPIC_MODEL` value set to that alias. Remove `env.ANTHROPIC_BASE_URL` when it points to the router's loopback port. Clear `env.CLAUDE_CODE_GATEWAY_HINT_HEADERS`. Restore or remove a router-specific `statusLine` that points to the deleted script. Remove `env.ENABLE_TOOL_SEARCH` only if the old router setup added it and you do not need it for another reason. Preserve unrelated settings. Set the normal full baseline model, for example `claude-sonnet-5-5`.
96
96
 
97
- No conversion is needed if you never created `router.json`. For an existing file, run the migration command from the v1 plugin directory, a checkout or the installed plugin cache:
97
+ No conversion is needed if you never created `router.json`. For an existing file, run the migration command that ships with the installed plugin:
98
98
 
99
99
  ```sh
100
- node scripts/migrate-config.mjs ~/.claude/router.json
100
+ node ~/.claude/plugins/cache/alexei-led-claude-router/router/1.0.0/scripts/migrate-config.mjs ~/.claude/router.json
101
101
  ```
102
102
 
103
+ Use the installed version in the path. From a checkout, run `node scripts/migrate-config.mjs ~/.claude/router.json`.
104
+
103
105
  Pass the file under your active profile instead when `CLAUDE_CONFIG_DIR` points elsewhere. The command validates the converted configuration before writing it and creates an exact-byte `router.json.v0.8.backup`. It refuses to overwrite an existing backup. Route, model-price, cache, and policy overrides remain in the converted file.
104
106
 
105
107
  The converter removes old gateway and logging settings, request-feature fields, and model output caps. It moves `gateway.baselineTier` to top-level `baselineTier`. It stops without writing when it finds an unsupported old field or invalid setting.
@@ -1,6 +1,6 @@
1
1
  # Native router: behavior and evidence
2
2
 
3
- This guide describes the Mod shipped by this checkout. Claude Code 2.1.289 is the minimum tested version. The router changes `model` and `effort` on main-conversation steps. Claude Code handles the Anthropic request, credentials, stream, tool execution, and cost ledger. Subagent steps keep their original model and effort.
3
+ This guide describes the Mod shipped in the plugin. Claude Code 2.1.289 is the minimum tested version. The router changes `model` and `effort` on main-conversation steps. Claude Code handles the Anthropic request, credentials, stream, tool execution, and cost ledger. Subagent steps keep their original model and effort.
4
4
 
5
5
  ## Turn behavior
6
6
 
@@ -14,29 +14,31 @@ The default tiers are defined in [Configuration](configuration.md#built-in-defau
14
14
 
15
15
  | Control | Behavior |
16
16
  | -------------------- | ----------------------------------------------------------------------- |
17
- | `/router` | Open the details pane. Without a UI surface, print short status. |
18
- | `/router status` | Print short status. |
17
+ | `/router` | Open the pane. Without a UI surface, print short status. |
19
18
  | `/router auto` | Enable automatic routing. |
20
19
  | `/router off` | Enter Manual mode and preserve Claude's selected model. |
21
20
  | `/router pin <tier>` | Pin the next turn and tool continuations. Auto must already be enabled. |
22
- | `/router setup` | Open Claude Code's secure plugin configuration for the Jev key. |
23
21
  | `/model <name>` | Select a model and enter Manual mode. `/router auto` resumes routing. |
24
22
 
23
+ The pane's **Set Jev key** button opens Claude Code's secure plugin configuration. Claude Code refuses `$.command.run` from inside a `command.run` hook, so the Mod starts that dialog from a timer after the press returns.
24
+
25
25
  Mode belongs to a Claude Code session. Clear starts a new session in Auto. Resume restores the saved mode for that session. A new or forked session has a new ID: it starts in Auto on the baseline model and in Manual on another model, as a fresh launch does. A pin applies to one logical turn, then the prior Auto incumbent resumes. A history reset clears votes and cache evidence; the current turn keeps its route, pin and any native fallback.
26
26
 
27
27
  ## Router pane
28
28
 
29
- The status band stays compact above the prompt. The **Router** button opens a pane with model choice, actual response, reason, metrics, estimates, controls, and tuning.
29
+ The status band is one line above the prompt: a tier meter, the route, a short reason, classifier support, and context and cache use. Segments drop by priority when the band is narrow. Hovering reveals pins, Manual, and a two-row view. The band yields to surveys and does not describe subagent transcripts. A model change between turns raises a toast. A pin, or a step that changes only the effort, such as `medium` to `high` on the defaults, raises none. While the classifier runs, the turn's spinner says `Choosing model`. In Manual mode or when routing is unavailable, the prompt footer carries `router off` or `router unavailable`. The **Router** button opens the pane. The pane has four tabs, Now, Tiers, Tuning, and Usage, with Auto and Manual on every tab. The [user guide](user-guide.md#open-the-router-pane) describes each tab.
30
30
 
31
31
  | Reading | Meaning and limits |
32
32
  | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
33
- | Last reply / Selected | Actual response model versus the model requested for that step. The engine does not report actual effort. |
34
- | API cost reported by Claude | Claude Code's native usage value. A plan's list-price estimates are not subscription cash charges. |
33
+ | Now / Served | The requested model and effort. **Served** appears only when the engine answered with another model. Actual effort is not reported. |
34
+ | Jev support | Per-tier probabilities from the last classification, and the switch bar the policy required. Pins and skipped calls leave it empty. |
35
+ | Replies | The tier that served each of the last 30 main-conversation replies; a dot where the router did not choose. |
36
+ | Cost | Claude Code's native usage value. A plan's list-price estimates are not subscription cash charges. |
35
37
  | Context bar | Maximum available observed and local estimated context, compared with the routed model's window. The fit rule reserves 20%. |
36
38
  | Observed / estimated input | Claude's local context reading and the router's best current context estimate. `unknown` blocks a move to a smaller window. |
37
39
  | Cache reuse | Last response's cache-read tokens divided by its reported input counters. |
38
40
  | Cache read / written; Output | Response usage counters. Cache warmth does not prove a particular TTL. |
39
- | Input trend | Up to ten observed main-conversation input sizes, scaled to the largest one. |
41
+ | Input per reply | Up to 30 observed main-conversation input sizes, scaled from the lowest to the highest reading. |
40
42
  | Jev / Last classification | Classifier state and elapsed time. Missing-key, busy, and paused skips have no network latency reading. |
41
43
  | Next-turn difference | Configured-price range for the suggested tier versus the incumbent on the next request. Negative means estimated lower cost. |
42
44
  | Conservative payback | Conditional later-turn estimate based on configured cache prices, future reads, and the last output size. It is not measured savings. |
@@ -46,21 +48,22 @@ There is no router-owned cost ledger or cumulative savings counter. Jev charges
46
48
 
47
49
  ## Tuning
48
50
 
49
- The pane exposes three controls. Draft changes do not affect the active turn. **Save tuning** validates and writes them to `router.json` for future turns, preserving unrelated keys.
51
+ The Tiers tab edits each tier's model alias and effort and the baseline tier. The Tuning tab has four controls. Drafts do not affect the active turn. **Save routes** and **Save tuning** validate the whole file with the same loader the Mod starts with, write `router.json` for future turns, and keep unrelated keys. A route equal to the built-in default is removed from the file, so later default changes still reach it.
50
52
 
51
- | Control | Values in the pane | Effect |
52
- | ------------------------- | --------------------------- | ------------------------------------------------- |
53
- | Jev deadline | 500, 1,000, 1,500, 3,000 ms | Total advice time, including any transient retry. |
54
- | Votes before cheaper tier | 1, 2, 3 | Consecutive votes required for a downgrade. |
55
- | Payback horizon | 1, 3, 5, 10 turns | Later turns included in downgrade economics. |
53
+ | Control | Values in the pane | Effect |
54
+ | ---------------- | --------------------------- | ---------------------------------------------------- |
55
+ | Jev deadline | 500, 1,000, 1,500, 3,000 ms | Total advice time, including any transient retry. |
56
+ | Votes to go down | 1, 2, 3 | Consecutive votes required for a downgrade. |
57
+ | Payback horizon | 1, 3, 5, 10 turns | Later turns included in downgrade economics. |
58
+ | Credits cap | $0.50, $1, $2, $5 | Largest estimated cold write on a `credits` model. |
56
59
 
57
- The panel refuses to write through a symlink. Other supported configuration fields need an edit to the active profile's `router.json`.
60
+ The pane refuses to write through a symlink. A failed validation names the setting and leaves the file unchanged. New model aliases and the other supported fields need an edit to the active profile's `router.json`.
58
61
 
59
62
  ## Safety and failure states
60
63
 
61
64
  - Missing Jev key, a Jev failure, or a policy refusal keeps the current model. Network refusal is never bypassed with a helper process.
62
65
  - Three launched Jev failures open a 60-second pause. One in-flight request is allowed per active Mod instance. Pending host HTTP work blocks another request until it settles.
63
- - Unsupported Claude Code versions and detected gateway aliases/base URLs mark the router unavailable. A local gateway does not run as part of this Mod.
66
+ - Unsupported Claude Code versions and leftover v0.8 gateway settings (the `jev-router` model or the `127.0.0.1:43170` base URL) mark the router unavailable. `/router` lists the settings to remove. A local gateway does not run as part of this Mod.
64
67
  - A context-window error makes that model ineligible until the next history reset. The Mod does not retry an Anthropic request after a stream begins.
65
68
  - Unknown context retains the current model. There is no characters-to-tokens fallback.
66
69
  - Unknown model substitutions receive no cache credit for the requested model.
@@ -68,12 +71,10 @@ The panel refuses to write through a symlink. Other supported configuration fiel
68
71
 
69
72
  ## Verified checks
70
73
 
71
- The Team canary loaded the isolated native plugin with a full Sonnet baseline, reached the real Jev endpoint, and kept Sonnet on a `downgrade-pending` result. This was a routing smoke test, not a measured-savings trial.
74
+ The Team canary loaded the published 1.0.0 package with a full Sonnet baseline, reached the real Jev endpoint, and kept Sonnet on a `downgrade-pending` result. This was a routing smoke test, not a measured-savings trial.
72
75
 
73
76
  Recorded acceptance checks cover the local HTTP deadline and one-request admission, session clear/resume, circuit-breaker pause, reload, replacement, unload, engine fallback, and interrupt during Jev advice. The interrupt check closed the loopback socket within 4 ms and discarded late advice without changing the active route or UI. Results are stored under [`experiments/mod-router/results`](../experiments/mod-router/results/).
74
77
 
75
- The model probes accepted signed-thinking history and tool results across Sonnet, Opus, and Haiku. Sonnet and Opus accepted histories above 589K input tokens. Haiku deferred-tool use passed with a 128K output limit. These probes validate the tested path only. Claude Code and organization policy control other model and request combinations.
76
-
77
- The Team launcher loads the Mod from a Team-owned directory passed with `--plugin-dir`. Its disable switch is tested: when that directory is absent, `ce team` starts on native Sonnet with no router plugin. Rename the directory to a sibling `.disabled` name and restart to disable the router. Rename it back to re-enable the Mod. The destination name must be free.
78
+ A billed chain of pinned turns moved across Opus, Haiku, and Sonnet with a tool call on every turn, and no request was rejected. Claude Code builds each model's request itself; Haiku receives its own thinking mode and a 32K output cap. Sonnet and Opus accepted histories above 589K input tokens. These probes validate the tested path only. Claude Code and organization policy control other model and request combinations.
78
79
 
79
- That switch disables routing. It does not restore the v0.8 gateway. The [user guide](user-guide.md#roll-back-to-v080) gives the v0.8.0 rollback. A rehearsal loaded the v0.8.0 tag with `--plugin-dir` after disabling v1, and started its gateway from that checkout on an isolated port.
80
+ To stop routing in a session, run `/router off`. To stop loading the Mod, run `claude plugin disable router@alexei-led-claude-router` and restart.
@@ -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>