@alexeiled/claude-router 1.4.1 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +9 -3
- package/CHANGELOG.md +25 -0
- package/README.md +21 -7
- package/docs/architecture.md +10 -9
- package/docs/configuration.md +18 -6
- package/docs/native-router.md +17 -17
- package/docs/router-band.svg +67 -50
- package/docs/router-pane-classifier.svg +46 -22
- package/docs/router-pane-now.svg +18 -6
- package/docs/router-pane-routing.svg +20 -7
- package/docs/user-guide.md +62 -44
- package/hooks/native-router.mjs +20 -10
- package/lib/band.mjs +40 -18
- package/lib/classifier-apis.mjs +151 -0
- package/lib/classifier-client.mjs +4 -5
- package/lib/classifier-contract.mjs +11 -45
- package/lib/config.mjs +56 -22
- package/lib/display.mjs +19 -8
- package/lib/panel.mjs +14 -12
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "router",
|
|
3
3
|
"displayName": "Router",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"description": "Model and effort routing for the main conversation, advised by a prompt classifier (Jev, Clef or
|
|
4
|
+
"version": "1.5.1",
|
|
5
|
+
"description": "Model and effort routing for the main conversation, advised by a prompt classifier (Jev, Clef, Clef Flash, OpenAI or local Ollama). Preserves subagent model choices.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Alexei Ledenev",
|
|
8
8
|
"url": "https://github.com/alexei-led"
|
|
9
9
|
},
|
|
10
10
|
"repository": "https://github.com/alexei-led/claude-router",
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"keywords": ["router", "jev", "typesafe", "clef", "cloudflare", "effort", "mods"],
|
|
12
|
+
"keywords": ["router", "jev", "typesafe", "clef", "cloudflare", "openai", "ollama", "effort", "mods"],
|
|
13
13
|
"userConfig": {
|
|
14
14
|
"typesafe_api_key": {
|
|
15
15
|
"type": "string",
|
|
@@ -27,6 +27,12 @@
|
|
|
27
27
|
"type": "string",
|
|
28
28
|
"title": "Cloudflare account ID (Clef, Clef Flash)",
|
|
29
29
|
"description": "The Cloudflare account that runs Workers AI. Not a secret."
|
|
30
|
+
},
|
|
31
|
+
"openai_api_key": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"title": "OpenAI API key (OpenAI classifier)",
|
|
34
|
+
"description": "OpenAI API key for the gpt-6-luna classifier. Used only when the classifier is OpenAI; the bounded prompt text then goes to OpenAI. Ollama needs no key.",
|
|
35
|
+
"sensitive": true
|
|
30
36
|
}
|
|
31
37
|
},
|
|
32
38
|
"types": "./types/index.d.ts"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.1 (2026-10-09)
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- The band and pane name the mode **Routing on** and **Routing off**, not Auto and Manual. The footer reads `routing off`. The commands `/router auto` and `/router off` are unchanged.
|
|
8
|
+
- In the pane, the mode buttons use the hotkeys `o` (Routing on) and `f` (Routing off). They were `a` and `m`.
|
|
9
|
+
- A fresh session on a model no tier routes to starts with routing off, and the band says why: `Sonnet 5.5 is not a routing tier`. The note stays until the mode changes.
|
|
10
|
+
- The **Routing off** button sits on the band line while routing is on. It was reachable only on hover.
|
|
11
|
+
- The model-change toast reads `Model changed: old → new · reason`.
|
|
12
|
+
- The band uses the design prototype's colors: tier chips, filled buttons, an accent color while a turn is classified. Yellow is reserved for warnings.
|
|
13
|
+
|
|
14
|
+
## 1.5.0 (2026-10-08)
|
|
15
|
+
|
|
16
|
+
Two classifiers are new: OpenAI and a local Ollama model. Jev stays the default, and nothing changes until you select one of the new classifiers.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- OpenAI classifier: `gpt-6-luna` through OpenAI's Decisions API. Save an OpenAI API key with `/plugin configure router`, then select the OpenAI row on the Classifier tab. The prompt text goes to OpenAI. This path has not been run against a live key yet.
|
|
21
|
+
- Ollama classifier: a local model that needs no key. The prompt text stays on your machine. Checked with Ollama 0.35.1 and `qwen3.5:9b`.
|
|
22
|
+
- `classifiers.<id>.api` selects the wire protocol: `system-one`, `openai-decisions`, or `ollama`. An entry without `api` keeps `system-one`. `keyOption: null` means the classifier needs no key.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- The Classifier tab's deadline choices include 5,000 ms, the default for Ollama.
|
|
27
|
+
|
|
3
28
|
## 1.4.1 (2026-10-08)
|
|
4
29
|
|
|
5
30
|
### Fixed
|
package/README.md
CHANGED
|
@@ -3,9 +3,23 @@
|
|
|
3
3
|
[](https://github.com/alexei-led/claude-router/actions/workflows/ci.yml)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
**A Claude Code Mod that chooses a model and effort for each main-conversation turn, advised by a prompt classifier: Jev,
|
|
6
|
+
**A Claude Code Mod that chooses a model and effort for each main-conversation turn, advised by a prompt classifier: Jev, Cloudflare's Clef and Clef Flash, OpenAI, or a local Ollama model.**
|
|
7
7
|
|
|
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.
|
|
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; an Ollama classifier calls an Ollama server that you run. Subagent model choices pass through unchanged.
|
|
9
|
+
|
|
10
|
+
## Supported classifiers
|
|
11
|
+
|
|
12
|
+
The active classifier is asked once per logical turn. Pick one on the pane's **Classifier** tab or in `router.json`; only the active one receives prompt text.
|
|
13
|
+
|
|
14
|
+
| Classifier | Service | Credential | Prompt text goes to |
|
|
15
|
+
| ---------- | ------------------------------------------ | ------------------------------------------- | ---------------------------- |
|
|
16
|
+
| Jev | [typesafe.ai](https://typesafe.ai) | Jev API key | typesafe.ai |
|
|
17
|
+
| Clef | Cloudflare Workers AI, 27B | Cloudflare API token and account ID | Cloudflare |
|
|
18
|
+
| Clef Flash | Cloudflare Workers AI, 9B | Cloudflare API token and account ID | Cloudflare |
|
|
19
|
+
| OpenAI | OpenAI, `gpt-6-luna` (public beta) | OpenAI API key | OpenAI (`api.openai.com`) |
|
|
20
|
+
| Ollama | A local [Ollama](https://ollama.com) model | None | Stays on this machine |
|
|
21
|
+
|
|
22
|
+
Jev is the default. [Configuration](docs/configuration.md#classifiers) gives the endpoints, timeouts, and how to add another service that speaks one of the supported protocols.
|
|
9
23
|
|
|
10
24
|

|
|
11
25
|
|
|
@@ -24,11 +38,11 @@ sequenceDiagram
|
|
|
24
38
|
participant API as Anthropic
|
|
25
39
|
Dev->>Code: Prompt
|
|
26
40
|
Code->>Mod: Main or subagent step
|
|
27
|
-
alt Main conversation
|
|
41
|
+
alt Main conversation, routing on
|
|
28
42
|
Mod->>Cls: Bounded prompt and dialogue
|
|
29
43
|
Cls-->>Mod: Tier advice
|
|
30
44
|
Mod-->>Code: Selected model and effort
|
|
31
|
-
else
|
|
45
|
+
else Routing off or subagent
|
|
32
46
|
Mod-->>Code: Original model and effort
|
|
33
47
|
end
|
|
34
48
|
Code->>API: Native request and tools
|
|
@@ -49,14 +63,14 @@ These are routing defaults. They do not claim equal model quality. [Configuratio
|
|
|
49
63
|
|
|
50
64
|
## Install
|
|
51
65
|
|
|
52
|
-
You need Claude Code 2.1.289 or newer and credentials for one
|
|
66
|
+
You need Claude Code 2.1.289 or newer and credentials for one [supported classifier](#supported-classifiers).
|
|
53
67
|
|
|
54
68
|
```sh
|
|
55
69
|
claude plugin marketplace add alexei-led/claude-router
|
|
56
70
|
claude plugin install router@alexei-led-claude-router
|
|
57
71
|
```
|
|
58
72
|
|
|
59
|
-
Start Claude Code on the full baseline model, for example `claude --model claude-haiku-5-5`. Run `/plugin configure router` and save the key. For
|
|
73
|
+
Start Claude Code on the full baseline model, for example `claude --model claude-haiku-5-5`. Run `/plugin configure router` and save the key. For any other classifier, save its credentials, or run `ollama serve` with a pulled model, then pick the classifier on the pane's Classifier tab. A new session on a model that one of the tiers routes to starts with routing on; on another model it starts with routing off and says why, and `/router auto` turns routing on.
|
|
60
74
|
|
|
61
75
|
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`.
|
|
62
76
|
|
|
@@ -72,7 +86,7 @@ claude --plugin-dir "$PWD" --model claude-haiku-5-5
|
|
|
72
86
|
|
|
73
87
|
In Claude Code, run `/plugin configure router` and save your classifier 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
88
|
|
|
75
|
-
Run `/router` to open the pane: route status, per-tier controls, tuning, and usage. Run `/model` to select a model and
|
|
89
|
+
Run `/router` to open the pane: route status, per-tier controls, tuning, and usage. Run `/model` to select a model and turn routing off, and `/router auto` to turn it back on. For controls, metrics, tuning, and troubleshooting, see the [user guide](docs/user-guide.md).
|
|
76
90
|
|
|
77
91
|
Before a push, run the same checks as CI. `npm run setup` installs Biome and TypeScript into `tools/`; the plugin root keeps no lockfile, so Claude Code installs nothing with the plugin. `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
92
|
|
package/docs/architecture.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Architecture
|
|
2
2
|
|
|
3
|
-
Claude Code owns the model request. The router Mod asks the active classifier (Jev by default
|
|
3
|
+
Claude Code owns the model request. The router Mod asks the active classifier (Jev by default; Cloudflare's Clef or Clef Flash; OpenAI; or a local Ollama model) for tier advice, applies local routing policy, and changes only the next main-conversation step's model and effort. Every subagent step passes through with Claude's model selection unchanged.
|
|
4
4
|
|
|
5
5
|
## Request flow
|
|
6
6
|
|
|
@@ -14,12 +14,12 @@ sequenceDiagram
|
|
|
14
14
|
participant API as Anthropic
|
|
15
15
|
Dev->>Code: Prompt
|
|
16
16
|
Code->>Mod: turn.start and turn.step
|
|
17
|
-
alt Main conversation,
|
|
17
|
+
alt Main conversation, routing on
|
|
18
18
|
Mod->>Cls: Current prompt and bounded dialogue
|
|
19
19
|
Cls-->>Mod: Tier advice
|
|
20
20
|
Note over Mod: Apply votes, context fit, cache costs and failure rules
|
|
21
21
|
Mod-->>Code: Forward model and effort
|
|
22
|
-
else
|
|
22
|
+
else Routing off, subagent, or unavailable
|
|
23
23
|
Mod-->>Code: Forward model and effort unchanged
|
|
24
24
|
end
|
|
25
25
|
Code->>API: Native authenticated request
|
|
@@ -28,11 +28,11 @@ sequenceDiagram
|
|
|
28
28
|
Mod-->>Dev: Status band and details pane
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
The Mod does not construct an Anthropic request or proxy its response. Claude Code owns authentication, request fields, streaming, tools, model fallback, and its native usage ledger. No local gateway process or port is part of the runtime.
|
|
31
|
+
The Mod does not construct an Anthropic request or proxy its response. Claude Code owns authentication, request fields, streaming, tools, model fallback, and its native usage ledger. No local gateway process or port is part of the runtime. The Ollama classifier calls an Ollama server that you run; the Mod starts none.
|
|
32
32
|
|
|
33
|
-
The active classifier 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. Only the active classifier is asked: Jev sends that text to typesafe.ai, Clef and Clef Flash to Cloudflare Workers AI. The keys are sensitive plugin options; the Cloudflare account ID is a plain one that fills the endpoint. The Mod does not receive Claude's Anthropic credentials.
|
|
33
|
+
The active classifier 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. Only the active classifier is asked: Jev sends that text to typesafe.ai, Clef and Clef Flash to Cloudflare Workers AI, OpenAI to api.openai.com. Ollama runs on this machine, so the text stays here. The Jev, Cloudflare, and OpenAI keys are sensitive plugin options; the Cloudflare account ID is a plain one that fills the endpoint. Ollama takes no key. The Mod does not receive Claude's Anthropic credentials.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Each classifier names its wire protocol, `api`, and `classifier-apis.mjs` holds one adapter per protocol. `system-one` (Jev, Clef, Clef Flash) sends the typed `state` and `questions` request and reads `answers.route`; Cloudflare's REST API wraps that answer in `{ result, success, errors }`, which the parser unwraps. `openai-decisions` (OpenAI) sends the state as `input` text and reads a `choice` answer plus a `predicate` for the continuation. `ollama` asks for one letter with thinking off and reads the log-probability of each letter from the top 20 candidates. A letter's probability is its share of the letters found there; a letter missing from the list counts as zero. The Ollama adapter asks no continuation question, so `continuation` is null there. Every adapter returns the same advice shape, so the routing policy is unchanged.
|
|
36
36
|
|
|
37
37
|
Claude Code builds each request for the model the Mod selects, so no request rewriting is needed: Haiku 4.5 got its own thinking mode and a 32K output cap. On Claude Code 2.1.289, a billed chain of pinned turns (Opus, Haiku 4.5, Sonnet at `xhigh`, Sonnet, Haiku 4.5) 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.
|
|
38
38
|
|
|
@@ -41,7 +41,8 @@ Claude Code builds each request for the model the Mod selects, so no request rew
|
|
|
41
41
|
| Component | Responsibility |
|
|
42
42
|
| ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
43
43
|
| [Native hooks](../hooks/native-router.mjs) | Turn identity, controls, lifecycle, per-step rewrites, response observation, pane actions, and every host call. |
|
|
44
|
-
| [Classifier contract](../lib/classifier-contract.mjs) |
|
|
44
|
+
| [Classifier contract](../lib/classifier-contract.mjs) | Route criteria and instructions shared by every protocol, credentials and endpoint filling, and retry rules. |
|
|
45
|
+
| [Classifier APIs](../lib/classifier-apis.mjs) | One adapter per wire protocol: request payload, answer validation, and the shared advice shape. |
|
|
45
46
|
| [Classifier client](../lib/classifier-client.mjs) | Classifier HTTP, deadline, in-flight admission, and circuit breaker. |
|
|
46
47
|
| [Router controller](../lib/route.mjs) | Context fit, model identity, engine fallback, cache observations, and one-turn pins. |
|
|
47
48
|
| [Policy](../lib/policy.mjs) | Tier votes, escalation, and switching gates. |
|
|
@@ -68,13 +69,13 @@ An explicit context-window failure marks that model ineligible until the next hi
|
|
|
68
69
|
|
|
69
70
|
`$.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.
|
|
70
71
|
|
|
71
|
-
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
|
|
72
|
+
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 with routing on. A fresh session on a model that a configured tier routes to starts with routing on. A fresh session on any other model starts with routing off, and the band names the reason. Session start sets the mode; the band and pane only read it, even when they draw first. Resume restores the selected session's saved mode. Hot reload retains valid `$.state`. Running `/model` turns routing off, including an explicit choice of the baseline. `/router auto` resumes routing. `/router off` also turns routing off. Pins apply to the next turn and its tool continuations. The prior route resumes afterward.
|
|
72
73
|
|
|
73
74
|
Subagent events pass directly to Claude Code. They do not create classifier requests or change main-conversation metrics. This is the selected scope because Mods do not expose whether a subagent model was explicit or inherited.
|
|
74
75
|
|
|
75
76
|
## Classifier deadline and failure handling
|
|
76
77
|
|
|
77
|
-
Each advice attempt has a total deadline, including any transient retry: 1,500 ms for Jev
|
|
78
|
+
Each advice attempt has a total deadline, including any transient retry: 1,500 ms for Jev, 3,000 ms for Clef, Clef Flash and OpenAI, and 5,000 ms for Ollama by default. Ollama's first call after its model unloads can exceed that while the model loads. A timeout does not retry. `Retry-After` is honored only when it fits the remaining budget. Three launched failures pause the classifier for 60 seconds. Missing-key, missing-account, busy, and paused skips do not count as failures. Each classifier has its own failure count, pause, and in-flight slot. A turn that started under one classifier finishes with it, even if the pane switches meanwhile. Switching the classifier, or starting a session with another one, starts the new one from a clean count.
|
|
78
79
|
|
|
79
80
|
The pinned host API does not expose a per-request abort option for `$.http.fetch`. The Mod returns to the incumbent at its own deadline and blocks another advice request while that wire call remains pending. Claude Code's observed host timeout is about 30 seconds. Recorded reload and unload checks closed pending sockets after 24.7 and 28.5 seconds. Replacement closed one after 31.6 seconds. These runs do not show immediate per-call cancellation. A plugin network-policy refusal degrades routing and is never bypassed with a subprocess.
|
|
80
81
|
|
package/docs/configuration.md
CHANGED
|
@@ -9,7 +9,8 @@ The router works with its built-in defaults. Configure the key of the active cla
|
|
|
9
9
|
| Jev API key | Sensitive plugin option `typesafe_api_key` | Run `/plugin configure router`, or use **Set up** or **Credentials → Edit** in the router pane. |
|
|
10
10
|
| Cloudflare API token | Sensitive plugin option `cloudflare_api_token` | The same dialog. Used by Clef and Clef Flash. |
|
|
11
11
|
| Cloudflare account ID | Plugin option `cloudflare_account_id` | The same dialog, or the config menu row. Not a secret. |
|
|
12
|
-
|
|
|
12
|
+
| OpenAI API key | Sensitive plugin option `openai_api_key` | The same dialog. Used only by the OpenAI classifier. Ollama needs no key. |
|
|
13
|
+
| Router settings and classifier | `router.json` in the active Claude Code profile | Edit the file directly, or use the pane's Routing and Classifier tabs. |
|
|
13
14
|
| Anthropic credentials and API cost | Claude Code | The Mod leaves these to Claude Code. |
|
|
14
15
|
|
|
15
16
|
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.
|
|
@@ -21,6 +22,7 @@ The Mod reads each value from its plugin option first. When the option is empty,
|
|
|
21
22
|
| `typesafe_api_key` | `TYPESAFE_API_KEY`, `CLAUDE_PLUGIN_OPTION_TYPESAFE_API_KEY` |
|
|
22
23
|
| `cloudflare_api_token` | `CLOUDFLARE_API_TOKEN`, `CLAUDE_PLUGIN_OPTION_CLOUDFLARE_API_TOKEN` |
|
|
23
24
|
| `cloudflare_account_id` | `CLOUDFLARE_ACCOUNT_ID`, `CLAUDE_PLUGIN_OPTION_CLOUDFLARE_ACCOUNT_ID` |
|
|
25
|
+
| `openai_api_key` | `OPENAI_API_KEY`, `CLAUDE_PLUGIN_OPTION_OPENAI_API_KEY` |
|
|
24
26
|
|
|
25
27
|
Export the variables before you start `claude`. Without the key or the account ID of the active classifier, the Mod keeps Claude's current model and reports which value is missing.
|
|
26
28
|
|
|
@@ -59,13 +61,15 @@ Prices are configured list-price inputs for estimates. They are not a subscripti
|
|
|
59
61
|
|
|
60
62
|
## Classifiers
|
|
61
63
|
|
|
62
|
-
`classifier` names the active entry of `classifiers`.
|
|
64
|
+
`classifier` names the active entry of `classifiers`. Each entry names its wire protocol in `api`: `system-one` for Jev, Clef and Clef Flash, `openai-decisions` for OpenAI, and `ollama` for a local Ollama server. Every protocol is converted to the same advice, so the routing policy does not change with the classifier. Cloudflare wraps the System One answer in `{ result, success, errors }`; Router reads both forms.
|
|
63
65
|
|
|
64
66
|
| `classifier` | Endpoint | Request `model` | Key option | `timeoutMs` |
|
|
65
67
|
| ------------ | -------------------------------------------------------------------------------------------------------- | --------------- | ---------------------- | ----------: |
|
|
66
68
|
| `jev` | `https://api.typesafe.ai/v1/systemone` | `jev-1.13.0` | `typesafe_api_key` | `1500` |
|
|
67
69
|
| `clef` | `https://api.cloudflare.com/client/v4/accounts/{cloudflare_account_id}/ai/run/@cf/cloudflare/clef` | `clef` | `cloudflare_api_token` | `3000` |
|
|
68
70
|
| `clef-flash` | `https://api.cloudflare.com/client/v4/accounts/{cloudflare_account_id}/ai/run/@cf/cloudflare/clef-flash` | `clef-flash` | `cloudflare_api_token` | `3000` |
|
|
71
|
+
| `openai` | `https://api.openai.com/v1/decisions` | `gpt-6-luna` | `openai_api_key` | `3000` |
|
|
72
|
+
| `ollama` | `http://127.0.0.1:11434/api/chat` | `qwen3.5:9b` | none | `5000` |
|
|
69
73
|
|
|
70
74
|
`jev` is the default. Select another one with a row on the pane's **Classifier** tab, or in `router.json`:
|
|
71
75
|
|
|
@@ -73,9 +77,9 @@ Prices are configured list-price inputs for estimates. They are not a subscripti
|
|
|
73
77
|
{ "classifier": "clef-flash" }
|
|
74
78
|
```
|
|
75
79
|
|
|
76
|
-
An entry has
|
|
80
|
+
An entry has six fields: `label` (the name the band and pane show), `api`, `endpoint`, `model`, `keyOption`, and `timeoutMs`. An entry without `api` speaks `system-one`. `endpoint` must use `https`; plain `http` is accepted only for `localhost`, `127.0.0.1`, or `[::1]`, because the key travels with each request. A `{name}` in `endpoint` is filled from the plugin option of that name, URL-encoded. `keyOption` names the plugin option sent as the bearer token, or is `null` when the service takes no key. Override one field of a built-in entry and the rest stay, for example `"classifiers": { "clef": { "timeoutMs": 4000 } }`.
|
|
77
81
|
|
|
78
|
-
You can add an entry for another service that speaks the
|
|
82
|
+
You can add an entry for another service that speaks one of the three protocols. Its `keyOption` and endpoint placeholders must be one of `typesafe_api_key`, `cloudflare_api_token`, `cloudflare_account_id`, or `openai_api_key`, or `null` for no key. Claude Code lets a Mod read only the options its manifest declares and environment variables it names in code, so an entry cannot bring a key of its own. Nor can it add request headers. For example, a company proxy in front of Jev:
|
|
79
83
|
|
|
80
84
|
```json
|
|
81
85
|
{
|
|
@@ -94,7 +98,15 @@ You can add an entry for another service that speaks the same API. Its `keyOptio
|
|
|
94
98
|
|
|
95
99
|
The active classifier receives the current prompt and recent dialogue, as described in the [architecture](architecture.md#request-flow). Give a Cloudflare token Workers AI permissions only. The routing policy thresholds were tuned against Jev; another classifier's probabilities can place the same prompt differently.
|
|
96
100
|
|
|
97
|
-
To check a classifier outside Claude Code, run `node scripts/probe-classifier.mjs [classifier]` from a checkout. It reads `router.json` and the upper-case variables `TYPESAFE_API_KEY`, `CLOUDFLARE_API_TOKEN`, and `
|
|
101
|
+
To check a classifier outside Claude Code, run `node scripts/probe-classifier.mjs [classifier]` from a checkout. It reads `router.json` and the upper-case variables `TYPESAFE_API_KEY`, `CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_ACCOUNT_ID`, and `OPENAI_API_KEY` from the environment or `./.env`; it does not read plugin options or the `CLAUDE_PLUGIN_OPTION_*` names. It sends the router's real request, and prints the status, latency, and parsed answer. It never prints the key or the full endpoint.
|
|
102
|
+
|
|
103
|
+
### OpenAI
|
|
104
|
+
|
|
105
|
+
`openai` sends the prompt and recent dialogue to OpenAI's Decisions API, `POST /v1/decisions`, with `gpt-6-luna`. Save an OpenAI API key in `openai_api_key`. The Decisions API is in public beta, and this adapter follows its guide, not a live check of every response shape.
|
|
106
|
+
|
|
107
|
+
### Ollama
|
|
108
|
+
|
|
109
|
+
`ollama` needs no key and keeps the text on this machine. Run `ollama serve`, pull the model named in `model`, and select the classifier. `model` is any tag you have pulled, such as `qwen3.5:9b`; change it under `classifiers.ollama.model`. The endpoint must stay on `localhost`, `127.0.0.1`, or `[::1]`, so a server on another machine on your network is not reachable through this entry. Each request turns thinking off. If Ollama rejects that setting for a model, the request fails and the router keeps the baseline. Ollama unloads an idle model after its keep-alive period, and the first request after that can exceed `timeoutMs` while the model loads; the router then keeps the baseline for that turn.
|
|
98
110
|
|
|
99
111
|
## Optional `router.json`
|
|
100
112
|
|
|
@@ -117,7 +129,7 @@ The Mod validates the whole file. Unknown keys and invalid values make routing u
|
|
|
117
129
|
| `cache` | `writeMultiplier`, `ttlMs`, `warmMarginMs` | `5m: 1.25`, `1h: 2`; `300000` / `3600000` ms; `30000` ms |
|
|
118
130
|
| `policy` | Fields below | Values below |
|
|
119
131
|
| `classifier` | An id in `classifiers` | `jev` |
|
|
120
|
-
| `classifiers.<id>` | `label`, `endpoint`, `model`, `keyOption`, `timeoutMs`
|
|
132
|
+
| `classifiers.<id>` | `label`, `api`, `endpoint`, `model`, `keyOption`, `timeoutMs` | [Classifiers](#classifiers) above |
|
|
121
133
|
| `context` | `recentTurns`, `maxTextChars` | `6`, `1200` |
|
|
122
134
|
|
|
123
135
|
Policy defaults:
|
package/docs/native-router.md
CHANGED
|
@@ -4,29 +4,29 @@ This guide describes the Mod shipped in the plugin. Claude Code 2.1.289 is the m
|
|
|
4
4
|
|
|
5
5
|
## Turn behavior
|
|
6
6
|
|
|
7
|
-
At the first main step of a logical turn, the Mod reads recent message text and asks the active classifier (Jev, Clef,
|
|
7
|
+
At the first main step of a logical turn, the Mod reads recent message text and asks the active classifier (Jev, Clef, Clef Flash, OpenAI, or Ollama) for a tier. It applies local policy and saves the route. Tool continuations reuse that route. Before each continuation, context fit is checked again. A large tool result can move the step to a model with a larger window.
|
|
8
8
|
|
|
9
|
-
The classifier receives the current prompt and at most six preceding user or assistant text messages. Each item is limited to 1,200 characters. It does not receive system messages, tool inputs, or tool results. Claude Code's Anthropic credentials never enter the classifier request.
|
|
9
|
+
The classifier receives the current prompt and at most six preceding user or assistant text messages. Each item is limited to 1,200 characters. It does not receive system messages, tool inputs, or tool results. Claude Code's Anthropic credentials never enter the classifier request. Jev, Clef, Clef Flash, and OpenAI receive the text on their services; Ollama receives it on this machine. [Configuration](configuration.md#classifiers) lists each host.
|
|
10
10
|
|
|
11
11
|
The default tiers are defined in [Configuration](configuration.md#built-in-defaults). Policy uses vote hysteresis, repeated tool errors, context fit, model availability, and switching-cost estimates. The [architecture](architecture.md#request-flow) explains the event boundary and failure handling.
|
|
12
12
|
|
|
13
13
|
## Controls and session modes
|
|
14
14
|
|
|
15
|
-
| Control | Behavior
|
|
16
|
-
| -------------------- |
|
|
17
|
-
| `/router` | Open the pane. Without a UI surface, print short status.
|
|
18
|
-
| `/router auto` | Enable automatic routing.
|
|
19
|
-
| `/router off` |
|
|
20
|
-
| `/router pin <tier>` | Pin the next turn and tool continuations.
|
|
21
|
-
| `/model <name>` | Select a model and
|
|
15
|
+
| Control | Behavior |
|
|
16
|
+
| -------------------- | ----------------------------------------------------------------------------- |
|
|
17
|
+
| `/router` | Open the pane. Without a UI surface, print short status. |
|
|
18
|
+
| `/router auto` | Enable automatic routing. |
|
|
19
|
+
| `/router off` | Turn routing off and keep Claude's selected model. |
|
|
20
|
+
| `/router pin <tier>` | Pin the next turn and tool continuations. Routing on must already be enabled. |
|
|
21
|
+
| `/model <name>` | Select a model and turn routing off. `/router auto` turns it back on. |
|
|
22
22
|
|
|
23
23
|
The pane's **Set up** and **Credentials → Edit** buttons open 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
24
|
|
|
25
|
-
Mode belongs to a Claude Code session. Clear starts a new session
|
|
25
|
+
Mode belongs to a Claude Code session. Clear starts a new session with routing on. Resume restores the saved mode for that session. A new or forked session has a new ID: it starts with routing on for a model that one of the tiers routes to and with routing off for any other model, as a fresh launch does. A pin applies to one logical turn, then the prior route 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 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.
|
|
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. A **Routing off** button sits on the band while routing is on, and hovering reveals pins and a two-row view. A fresh session on a model no tier routes to shows `<model> is not a routing tier` on the band until the mode changes. 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 `routing off` or `routing unavailable`. The **Router** button opens the pane. The pane has four tabs, Now, Routing, Classifier, and Usage, with Routing on and Routing off 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
|
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -50,12 +50,12 @@ There is no router-owned cost ledger or cumulative savings counter. Classifier c
|
|
|
50
50
|
|
|
51
51
|
The Routing tab edits each tier's model alias and effort, the baseline tier, and three policy controls as one draft. The draft does not affect the active turn, survives a tab change or closing the pane, and is dropped at a new session. **Save** validates the whole file with the same loader the Mod starts with, writes `router.json` for future turns, and keeps unrelated keys. A route or policy value equal to the built-in default is removed from the file, so later default changes still reach it. The Classifier tab writes the classifier choice and its deadline at once. **Undo** reverts the settings the last pane write changed, from any tab, until the next write or a new session.
|
|
52
52
|
|
|
53
|
-
| Control | Values in the pane
|
|
54
|
-
| ---------------- |
|
|
55
|
-
| Deadline | 500, 1,000, 1,500, 3,000 ms | The active classifier's total advice time, including any transient retry. Saved at once. |
|
|
56
|
-
| Votes to go down | 1, 2, 3
|
|
57
|
-
| Payback horizon | 1, 3, 5, 10 turns
|
|
58
|
-
| Credits cap | $0.50, $1, $2, $5
|
|
53
|
+
| Control | Values in the pane | Effect |
|
|
54
|
+
| ---------------- | ---------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
55
|
+
| Deadline | 500, 1,000, 1,500, 3,000, 5,000 ms | The active classifier's total advice time, including any transient retry. Saved at once. |
|
|
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. |
|
|
59
59
|
|
|
60
60
|
The classifier section lists every configured classifier as a row with its service host and whether its key and endpoint settings are complete. Selecting a row writes `classifier` to `router.json` at once, or removes it for the default, through the same validation, and resets the new classifier's failure count. A turn already being classified finishes with its own classifier; its readings stay off the pane. **Undo** returns to the previous classifier. The deadline saves at once too, and a built-in classifier's default deadline is written as no override. **Sends** names the host that receives prompt text.
|
|
61
61
|
|
package/docs/router-band.svg
CHANGED
|
@@ -1,47 +1,55 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 922 379" role="img" aria-labelledby="title desc">
|
|
2
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
|
|
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 routing off.</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
8
|
<rect width="922" height="379" rx="8" fill="#1c1c1c"/>
|
|
9
|
-
<text class="cap" x="20" y="30">
|
|
9
|
+
<text class="cap" x="20" y="30">Routing on: routed to the high tier on a clear jump</text>
|
|
10
10
|
<rect x="12" y="38" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
11
11
|
<text x="24.0" y="56" fill="#e0708a" xml:space="preserve">▂</text>
|
|
12
12
|
<text x="31.8" y="56" fill="#e0708a" xml:space="preserve">▄</text>
|
|
13
13
|
<text x="39.6" y="56" fill="#e0708a" xml:space="preserve">▆</text>
|
|
14
14
|
<text x="47.4" y="56" fill="#e0708a" xml:space="preserve">█</text>
|
|
15
|
-
<
|
|
15
|
+
<rect x="55.2" y="42" width="46.8" height="18" rx="4" fill="#e0708a"/>
|
|
16
|
+
<text x="55.2" y="56" fill="#0d1016" font-weight="700" xml:space="preserve"> high </text>
|
|
16
17
|
<text x="102.0" y="56" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh</text>
|
|
17
18
|
<text x="226.8" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
18
|
-
<
|
|
19
|
-
<text x="
|
|
20
|
-
<text x="
|
|
21
|
-
<text x="
|
|
22
|
-
<text x="
|
|
23
|
-
<text x="
|
|
24
|
-
<text x="
|
|
25
|
-
<text x="
|
|
26
|
-
<text x="
|
|
27
|
-
<text
|
|
19
|
+
<rect x="265.8" y="42" width="117.0" height="18" rx="4" fill="#2e3340"/>
|
|
20
|
+
<text x="265.8" y="56" fill="#d0d0d0" xml:space="preserve">[ Routing off ]</text>
|
|
21
|
+
<text x="382.8" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
22
|
+
<text x="421.8" y="56" fill="#7c7c7c" xml:space="preserve">↑ jump</text>
|
|
23
|
+
<text x="468.6" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
24
|
+
<text x="507.6" y="56" fill="#7c7c7c" xml:space="preserve">Jev 88% ≥ 82%</text>
|
|
25
|
+
<text x="609.0" y="56" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
26
|
+
<text x="648.0" y="56" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
27
|
+
<text x="679.2" y="56" fill="#87d787" xml:space="preserve">40%</text>
|
|
28
|
+
<text x="702.6" y="56" fill="#d0d0d0" xml:space="preserve"> · cache </text>
|
|
29
|
+
<text x="772.8" y="56" fill="#87d787" xml:space="preserve">100%</text>
|
|
30
|
+
<text x="819.6" y="56" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
31
|
+
<text class="cap" x="20" y="95">Two rows, with the hover row shown: recent replies by tier, pins, Routing off</text>
|
|
28
32
|
<rect x="12" y="103" width="897.6" height="67" rx="5" fill="#232323"/>
|
|
29
33
|
<text x="24.0" y="121" fill="#e0708a" xml:space="preserve">▂</text>
|
|
30
34
|
<text x="31.8" y="121" fill="#e0708a" xml:space="preserve">▄</text>
|
|
31
35
|
<text x="39.6" y="121" fill="#e0708a" xml:space="preserve">▆</text>
|
|
32
36
|
<text x="47.4" y="121" fill="#e0708a" xml:space="preserve">█</text>
|
|
33
|
-
<
|
|
37
|
+
<rect x="55.2" y="107" width="46.8" height="18" rx="4" fill="#e0708a"/>
|
|
38
|
+
<text x="55.2" y="121" fill="#0d1016" font-weight="700" xml:space="preserve"> high </text>
|
|
34
39
|
<text x="102.0" y="121" fill="#d0d0d0" xml:space="preserve">Opus 5.5 · xhigh</text>
|
|
35
40
|
<text x="226.8" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
36
|
-
<
|
|
37
|
-
<text x="
|
|
38
|
-
<text x="
|
|
39
|
-
<text x="
|
|
40
|
-
<text x="
|
|
41
|
-
<text x="
|
|
42
|
-
<text x="
|
|
43
|
-
<text x="
|
|
44
|
-
<text x="
|
|
41
|
+
<rect x="265.8" y="107" width="117.0" height="18" rx="4" fill="#2e3340"/>
|
|
42
|
+
<text x="265.8" y="121" fill="#d0d0d0" xml:space="preserve">[ Routing off ]</text>
|
|
43
|
+
<text x="382.8" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
44
|
+
<text x="421.8" y="121" fill="#7c7c7c" xml:space="preserve">↑ jump</text>
|
|
45
|
+
<text x="468.6" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
46
|
+
<text x="507.6" y="121" fill="#7c7c7c" xml:space="preserve">Jev 88% ≥ 82%</text>
|
|
47
|
+
<text x="609.0" y="121" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
48
|
+
<text x="648.0" y="121" fill="#d0d0d0" xml:space="preserve">ctx </text>
|
|
49
|
+
<text x="679.2" y="121" fill="#87d787" xml:space="preserve">40%</text>
|
|
50
|
+
<text x="702.6" y="121" fill="#d0d0d0" xml:space="preserve"> · cache </text>
|
|
51
|
+
<text x="772.8" y="121" fill="#87d787" xml:space="preserve">100%</text>
|
|
52
|
+
<text x="819.6" y="121" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
45
53
|
<text x="24.0" y="140" fill="#7c7c7c" xml:space="preserve">replies </text>
|
|
46
54
|
<text x="86.4" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
47
55
|
<text x="94.2" y="140" fill="#5f9fe0" xml:space="preserve">█</text>
|
|
@@ -65,55 +73,64 @@
|
|
|
65
73
|
<text x="234.6" y="140" fill="#e0708a" xml:space="preserve">█</text>
|
|
66
74
|
<text x="242.4" y="140" fill="#7c7c7c" xml:space="preserve"> 3 switches · tax ≈ $0.48 · cache saved ≈ $1.52</text>
|
|
67
75
|
<text x="24.0" y="159" fill="#7c7c7c" xml:space="preserve">pin next turn </text>
|
|
76
|
+
<rect x="133.2" y="145" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
68
77
|
<text x="133.2" y="159" fill="#d0d0d0" xml:space="preserve">[ micro ]</text>
|
|
78
|
+
<rect x="211.2" y="145" width="54.6" height="18" rx="4" fill="#2e3340"/>
|
|
69
79
|
<text x="211.2" y="159" fill="#d0d0d0" xml:space="preserve">[ low ]</text>
|
|
80
|
+
<rect x="273.6" y="145" width="78.0" height="18" rx="4" fill="#2e3340"/>
|
|
70
81
|
<text x="273.6" y="159" fill="#d0d0d0" xml:space="preserve">[ medium ]</text>
|
|
82
|
+
<rect x="359.4" y="145" width="62.4" height="18" rx="4" fill="#2e3340"/>
|
|
71
83
|
<text x="359.4" y="159" fill="#d0d0d0" xml:space="preserve">[ high ]</text>
|
|
72
|
-
<
|
|
73
|
-
<text x="
|
|
84
|
+
<rect x="445.2" y="145" width="117.0" height="18" rx="4" fill="#2e3340"/>
|
|
85
|
+
<text x="445.2" y="159" fill="#d0d0d0" xml:space="preserve">[ Routing off ]</text>
|
|
86
|
+
<rect x="570.0" y="145" width="70.2" height="18" rx="4" fill="#2e3340"/>
|
|
87
|
+
<text x="570.0" y="159" fill="#d0d0d0" xml:space="preserve">[ 1 row ]</text>
|
|
74
88
|
<text class="cap" x="20" y="198">A pin waits for the next turn; ✕ cancels it</text>
|
|
75
89
|
<rect x="12" y="206" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
76
90
|
<text x="24.0" y="224" fill="#5f9fe0" xml:space="preserve">▂</text>
|
|
77
91
|
<text x="31.8" y="224" fill="#5f9fe0" xml:space="preserve">▄</text>
|
|
78
92
|
<text x="39.6" y="224" fill="#7c7c7c" xml:space="preserve">▆</text>
|
|
79
93
|
<text x="47.4" y="224" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
80
|
-
<
|
|
94
|
+
<rect x="55.2" y="210" width="39.0" height="18" rx="4" fill="#5f9fe0"/>
|
|
95
|
+
<text x="55.2" y="224" fill="#0d1016" font-weight="700" xml:space="preserve"> low </text>
|
|
81
96
|
<text x="94.2" y="224" fill="#d0d0d0" xml:space="preserve">Haiku 5.5 · high</text>
|
|
82
97
|
<text x="219.0" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
83
|
-
<
|
|
84
|
-
<text x="
|
|
85
|
-
<text x="
|
|
86
|
-
<text x="
|
|
87
|
-
<text x="
|
|
88
|
-
<text x="
|
|
89
|
-
<text x="
|
|
90
|
-
<text x="
|
|
91
|
-
<text x="
|
|
92
|
-
<text
|
|
93
|
-
<text x="718.2" 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 up</text>
|
|
98
|
+
<rect x="258.0" y="210" width="117.0" height="18" rx="4" fill="#2e3340"/>
|
|
99
|
+
<text x="258.0" y="224" fill="#d0d0d0" xml:space="preserve">[ Routing off ]</text>
|
|
100
|
+
<text x="375.0" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
101
|
+
<text x="414.0" y="224" fill="#7c9cff" xml:space="preserve">⏵ next turn: </text>
|
|
102
|
+
<text x="515.4" y="224" fill="#d7af5f" font-weight="700" xml:space="preserve">medium</text>
|
|
103
|
+
<text x="570.0" y="224" fill="#d0d0d0" xml:space="preserve">✕</text>
|
|
104
|
+
<text x="577.8" y="224" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
105
|
+
<text x="616.8" y="224" fill="#7c7c7c" xml:space="preserve">= fits</text>
|
|
106
|
+
<text x="679.2" y="224" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
107
|
+
<text class="cap" x="20" y="263">No classifier key: routing keeps the model and offers Set up</text>
|
|
95
108
|
<rect x="12" y="271" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
96
|
-
<text x="24.0" y="289" fill="#
|
|
109
|
+
<text x="24.0" y="289" fill="#f0b429" xml:space="preserve">⚠ Jev: no API key</text>
|
|
97
110
|
<text x="156.6" y="289" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
98
|
-
<
|
|
111
|
+
<rect x="195.6" y="275" width="78.0" height="18" rx="4" fill="#87afff"/>
|
|
112
|
+
<text x="195.6" y="289" fill="#0d1016" font-weight="700" xml:space="preserve">[ Set up ]</text>
|
|
99
113
|
<text x="273.6" y="289" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
100
114
|
<text x="312.6" y="289" fill="#5f9fe0" xml:space="preserve">▂</text>
|
|
101
115
|
<text x="320.4" y="289" fill="#5f9fe0" xml:space="preserve">▄</text>
|
|
102
116
|
<text x="328.2" y="289" fill="#7c7c7c" xml:space="preserve">▆</text>
|
|
103
117
|
<text x="336.0" y="289" fill="#7c7c7c" xml:space="preserve">█</text>
|
|
104
|
-
<
|
|
118
|
+
<rect x="343.8" y="275" width="39.0" height="18" rx="4" fill="#5f9fe0"/>
|
|
119
|
+
<text x="343.8" y="289" fill="#0d1016" font-weight="700" xml:space="preserve"> low </text>
|
|
105
120
|
<text x="382.8" y="289" fill="#d0d0d0" xml:space="preserve">Haiku 5.5 · high</text>
|
|
106
121
|
<text x="507.6" y="289" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
107
|
-
<text x="546.6" y="289" fill="#
|
|
122
|
+
<text x="546.6" y="289" fill="#f0b429" xml:space="preserve">keeping model</text>
|
|
108
123
|
<text x="663.6" y="289" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
109
|
-
<text class="cap" x="20" y="328">
|
|
124
|
+
<text class="cap" x="20" y="328">Routing off: /model chose the model; Routing on resumes routing</text>
|
|
110
125
|
<rect x="12" y="336" width="897.6" height="29" rx="5" fill="#232323"/>
|
|
111
126
|
<text x="24.0" y="354" fill="#7c7c7c" xml:space="preserve">○ </text>
|
|
112
|
-
<text x="39.6" y="354" fill="#d0d0d0" xml:space="preserve">
|
|
113
|
-
<
|
|
114
|
-
<text x="
|
|
115
|
-
<text x="
|
|
116
|
-
<text x="351.6" y="354" fill="#7c7c7c" xml:space="preserve">
|
|
117
|
-
<text x="
|
|
118
|
-
<
|
|
127
|
+
<text x="39.6" y="354" fill="#d0d0d0" xml:space="preserve">Routing </text>
|
|
128
|
+
<rect x="102.0" y="340" width="23.4" height="18" rx="4" fill="#2a3040"/>
|
|
129
|
+
<text x="102.0" y="354" fill="#8b93a7" xml:space="preserve">off</text>
|
|
130
|
+
<text x="125.4" y="354" fill="#d0d0d0" xml:space="preserve"> · every turn uses Sonnet 5.5</text>
|
|
131
|
+
<text x="351.6" y="354" fill="#7c7c7c" xml:space="preserve"> (/model)</text>
|
|
132
|
+
<text x="421.8" y="354" fill="#7c7c7c" xml:space="preserve"> · </text>
|
|
133
|
+
<rect x="460.8" y="340" width="109.2" height="18" rx="4" fill="#87afff"/>
|
|
134
|
+
<text x="460.8" y="354" fill="#0d1016" font-weight="700" xml:space="preserve">[ Routing on ]</text>
|
|
135
|
+
<text x="585.6" y="354" fill="#d0d0d0" xml:space="preserve">Router</text>
|
|
119
136
|
</svg>
|