Model Router · Documentation · Previous: Benchmarks · Next: Roadmap
# Testing Every change passes these gates before merging. CI (`.github/workflows/ci.yml`) runs them on each pull request and push to `main`. The version check runs on pull requests only. CI's jobs are `version`, `test`, `mod`, `typecheck`, `validate`, `probe` and `live`, and `live` runs only when started by hand. The live evals are paid and CI has no job for them, so they run by hand before each release that changes routing or delegation, and their results are below. | Gate | Command | What it checks | | :- | :- | :- | | Unit tests | `python3 -m unittest discover -s tests` | The runtime, the eval cases offline, and the docs and benchmarks-page gates, on Linux, macOS and Windows with Python 3.9 and 3.13. | | Mod tests | `node --experimental-strip-types --test "tests/mod/*.test.ts"` | The mod on Node 22, on the same three systems. | | Type check | `sh tests/mod/typecheck.sh` | The mod and its test against Claude Code's mod API types, pinned to a commit. | | Plugin validate | `claude plugin validate --strict .` and `claude plugin validate --strict plugins/model-router` | The marketplace and the plugin, warnings as errors, on Claude Code 2.1.329, 2.1.333 and latest. | | Version | `python3 tools/plugin_version.py origin/main` | A plugin change sets a new version. | | Docs | `python3 tools/docs_assets.py --check` | Every file the script writes is current. | | Benchmarks page | `python3 bench/analyze.py "bench/results/*.jsonl" --out docs/BENCHMARKS.md --check` | `docs/BENCHMARKS.md` matches `bench/results/`. | | Live probe | `python3 tools/live_probe.py` | One headless session with the plugin loaded, against a local endpoint that plays the model: the launcher, the mod and the hooks on the real binary, on Linux, macOS and Windows with Claude Code 2.1.333, and CI's weekly run with the newest release. Ten checks: the agent's shell writes the file, the agent runs on Haiku at high effort, the agent has no Agent tool to hand its work on with, the ledger has the spawn routed by the mod to `haiku`, the main conversation is told about the file with the number of the agent's command, the agent reports once and is not sent back, the main conversation is told with the agent's work that no check has run on it, the main conversation gets the Stop check's ask, the ledger has a gate row for each ask (`report`, `verify` and `verify-early`), and no temp file is left in the data folder. A second pass, the refusal pass, sets `delegation` to `strict` through `--settings` and has the plugin refuse a shell call past the limit with the plugin's refusal text and lets work run again once an agent starts. It has five checks: both 4,000-character shell calls run, the next call is refused with the plugin's refusal text, the ledger has the reminder and one `delegate-deny` row, the first refused request comes before the first request the agent made, by the requests the probe's local endpoint saw, with a refusal row and a spawn row in the ledger, and the shell call after the agent started runs. A third pass, on Windows and wherever `pwsh` is installed, repeats the ten checks with the PowerShell tool as the agent's shell. The script prints one `PASS` or `FAIL` line per check, so 15 `PASS` lines on a system without `pwsh` and 25 with it. A non-zero exit of `claude` fails the probe. A session has a limit of 300 seconds and the version call 30, and the CI `probe` job has 35 minutes. Every CI job has a time limit, 15 minutes for most and 60 for the unit tests. No model is called. | | Live check | `python3 tools/live_check.py --scripted` | One headless session with the plugin loaded in which the main session hands a small job to an agent. Five checks: the session ends without an error, the main session starts an agent, the agent that writes the file runs on Haiku (its `resolvedModel`), its shell writes the file in the project, and the plugin reads that write. `--scripted` plays the model with the live probe's endpoint. CI runs it after the live probe on Linux, macOS and Windows, once with the default shell (PowerShell on Windows and wherever `pwsh` is installed, else Bash) and once with `--shell bash`. Without `--scripted` it runs on a real model and needs `CLAUDE_CODE_OAUTH_TOKEN`, `ANTHROPIC_API_KEY` or the federation variables. A session has a limit of 300 seconds and the version call 30. A session that hangs has its whole process tree ended and prints a `FAIL` line. The session's shell and the plugin's hooks run with the credential in their environment, so the live job runs a fixed prompt on a runner that is thrown away after the job. The five checks are one function with unit tests. | | Live evals | `claude plugin eval plugins/model-router --trust-plugin --scaffold --allow-tools Write Edit Bash --no-publish --ablation none --runs 1` | Claude names the expected model and effort on real runs (the cases tagged `routing`), and hands work to agents or keeps a small job in the main conversation (the cases tagged `delegation`, eleven of which build a fixture folder with a script and need the edit and shell tools). Paid, so run after a routing or delegation change. `--no-publish` keeps the results local, `--ablation none` skips the ablation arm, which would double the runs, and `--runs 1` runs each case once, where a case with no `runs:` line runs 3 times. Eleven cases set `EVAL_MODEL_ROUTER_DELEGATION: strict` in their `prompt.md` front matter, which pins them to `strict` whatever the default is, since an eval passes a case only `EVAL_*` variables. An installed plugin ignores the variable: the plugin reads it only when its own files run from outside a plugin cache, which `test_the_eval_variable_cannot_start_delegation_in_an_installed_copy` covers, so the command names the checkout's path. The other seven run on the default, which is `strict`. | ## The interactive features by hand The status line, `/model-router` and the session check run only in a session with a person at the prompt, which no gate above starts. They are checked by hand in a terminal session, with the plugin loaded by `--plugin-dir` and a new config folder for each case: | Case | What happens | Claude Code | | :- | :- | :- | | A session on Haiku | The question shows before the first prompt, with the `Model Router` chip and the four options | 2.1.329, 2.1.332 | | Opus, then `medium` | `/model opus` runs alone, since the effort already holds | 2.1.332 | | Fable, then `max` | `/model fable`, then `/effort max`, which Claude Code applies to that session only | 2.1.332 | | Stay, then "Don't ask again" | The option is written, the plugin reloads, and nothing asks again in that session | 2.1.332 | | Esc at the first step | Nothing changes | 2.1.332 | | A session on Opus | No question | 2.1.332 | | `--model sonnet --effort xhigh` | No question; `/model-router` says `session: sonnet at xhigh` | 2.1.332 | | `--model opus --effort low` | The question names Opus at low | 2.1.332 | | A prompt given at launch | No question, during the turn or after it | 2.1.332 | | `--continue` on that session | No question | 2.1.332 | | One subagent call | The line under the prompt goes from `auto · mod · 0 calls` to `auto · mod · 1 call · 1 changed` | 2.1.332 | | `/model-router`, `/model-router off`, `/model-router check on` | Each replies with no model turn, and the line under the prompt follows | 2.1.332 | | A team lead on Opus with one teammate in a terminal pane of its own (`teammateMode` at `tmux`) | The teammate runs on Haiku, runs one shell command and reads ten files itself with nothing reminded or refused, and no question shows in its pane | 2.1.332 | These ran on Claude Code 2.1.329 and 2.1.332, and none was run again by hand on 2.1.333. Not run by hand: a session on Sonnet at `medium`, where the session check offers Sonnet at `high` (`session` in `config/models.json`), whether a `/tui` restart keeps the session id (mod tests cover the `session.end` change that drops a session's entry on `/clear` only), the Desktop app's Code tab and the VS Code extension's panel (the Claude Code each bundles, 2.1.330 and 2.1.331, routes a call on both paths in a headless run), the web, a background session, `--resume` and `--fork-session`, `/model-router` typed while a turn runs, a `/model` that Claude Code refuses, a `session_check` that managed settings own, an organization's default effort, and a `/config` change refused while a routed agent runs. ## Latest results The CI rows are from CI run 46624087342 at `0ad4df24` on 2026-12-01, started by hand on this branch, with Claude Code 2.1.333 except where a row names other versions. It ran every gate on Ubuntu, macOS and Windows: 16 jobs passed and 2 were skipped. The `version` job runs on a pull request only, and the `live` job runs only when started with `live` set, so a run started by hand without it skips both. The local checks ran by hand on macOS on 2026-12-01 at `0ad4df24` (Python 3.9.6). The eval round and the other live runs are older: each result below names the commit it was recorded at and the date. On a pull request and on each push to `main`, CI runs the unit tests, the mod tests and the live probe on Ubuntu, macOS and Windows, and the type check and plugin validation on Ubuntu: | Gate | Result | | :- | :- | | Unit tests | 1,291 run and pass in CI on Ubuntu, macOS and Windows, each with Python 3.9 and 3.13. 3 are skipped on Ubuntu and macOS, and 36 on Windows. By hand on macOS at `0ad4df24` (Python 3.9.6), 1,291 tests ran, 3 were skipped, and all passed. | | Mod tests | 163 pass in CI on all three systems, with none failed or skipped. By hand on macOS at `0ad4df24`, 163 of 163 pass. | | Type check | Passes in CI. | | Plugin validate | Passes in CI on Claude Code 2.1.329, 2.1.333 and the newest release. | | Docs, benchmarks page | Pass. | | Version | Skipped, since a run started by hand doesn't run it. It runs on a pull request. | | Live probe | In CI all three passes pass on all three systems with no `FAIL` line: the first pass 10 checks, the refusal pass 5, and the PowerShell pass 10 with the PowerShell tool as the agent's shell. The systems are Windows Server 2025 with Python 3.13.17, Linux 7.0.0-1020-azure with Python 3.13.18 and Darwin 25.6.0 with Python 3.13.17. By hand on macOS at `0ad4df24` (Darwin 27.2.0, Python 3.9.6, Claude Code 2.1.333) the script printed 15 `PASS` lines and no `FAIL`, and said the PowerShell pass was skipped, since `pwsh` is not installed there. | | Live check, scripted | In CI all 5 checks pass on all three systems, once with the default shell and once with `--shell bash`. By hand on macOS at `0ad4df24`, 5 of 5 pass. | | Live check, real model | On macOS, `python3 tools/live_check.py` run by hand at `0ad4df24` on 2026-12-01 (Darwin 27.2.0, Python 3.9.6, Claude Code 2.1.333) exited 0 and passed 5 of 5 checks for $0.0146 at list price. The main session and both agents (`general-purpose` and `model-router:verifier`) ran on Haiku, and the Stop check asked, with the gates `report`, `verify` and `verify-early` logged. A run at `9ba0b0bf` on the same day, on the same versions, passed 5 of 5 for $0.0695 at list price. Its main session and `general-purpose` ran on Haiku, `model-router:reviewer` ran on Opus, which is where this version puts it, and the Stop check did not ask (gates `report` and `verify-early`). On Windows the `live` job has not run on a commit of this version. | | Upstream review | The plugin was reviewed against Claude Code 2.1.334. `python3 tools/upstream_check.py --baseline compat/baseline.json` prints `Last reviewed Claude Code version: 2.1.334`, `No new releases.` and `Nothing to review.` | | Decision rounds | Three decision rounds on 2026-12-01 (104 runs) measured `delegation` on quick tasks, the `complex` level and the recommended effort for a Sonnet session, and a fourth (20 runs) measured the plugin with `delegation` off against a stock session. The first round's rule pointed to `off`, and the default stays `strict` by the owner's decision. The `complex` level runs on Opus at `high`, and `high` is the recommended effort for a Sonnet session. [docs/BENCHMARKS.md](BENCHMARKS.md#decision-rounds) has their rules and tables. | | Hook times | Measured again on 2026-12-01 with `delegation` at `off` (3 runs) and at `strict`, the default (2 runs): [docs/PERFORMANCE.md](PERFORMANCE.md). | | Live evals | Run by hand in a Linux container on Claude Code 2.1.332, with the plugin tree at `f21fba74` on 2026-12-01, all 18 cases. The default of `delegation` on that tree was `off`: the eleven cases that set the variable ran on `strict` and the other seven on `off`. The shipped default is `strict`. On 2026-12-01 the same Linux container setup, on Claude Code 2.1.332, ran the seven cases that set no eval variable, with `delegate-multi-file-change` as a control, on the plugin tree at `0ad4df24` (default `strict`). That is eight cases, one run each, for $0.93. The strict sentence was in the session note of all eight, and seven passed every grader. `route-review-subagent` failed: its Haiku session named Haiku at `medium` for the review, where the case requires Opus at `high`. Three of four graders failed, though the agent still found the bypass. That case then ran 10 more times in one batch, alternating between the tree at `0ad4df24` (`strict`) and the tree at `c831ead9` (`off`), 5 runs each, for $0.51. All 10 named Opus at `high` and passed all four graders. So the case missed in 1 of 6 runs under `strict` and in 0 of 5 under `off`. Five runs per arm are too few to show whether the miss is more common under `strict`. Under `strict`, `report-only-production-values` started no agent, no tool call was refused, and all 10 value graders passed. In `route-redo-escalates` the first redo stayed on Haiku at a higher effort and the second ran on Sonnet. In `route-judgment-memo` and `route-agent-unnamed` the agent ran on Opus at `high`. The first part ran 8 cases at each case's own run count: 20 of 21 planned runs, every grader passed. The run stopped at its 10 dollar cost cap ($10.07), which cut `large-fix-sweep` to 1 of its 2 runs. Most of that cost is `large-contract-audit`, whose two runs cost $2.29 and $4.28 with the reviewers on Opus. The second part ran the other 10 cases at one run each ($1.31): 9 passed and `route-judgment-memo` failed. That case has a Sonnet session write a memo and name the model and effort for the agent that writes it. Given a three-paragraph brief, the session named Haiku at `high` in 10 of 11 runs. Asked the memo as an open question, it named Opus in 5 of 5 runs, and one of the five left the effort off, so the plugin filled in `high` and that run failed the `named-effort-high` grader. The case's prompt asks the open question (commit `4e73f385`). Three cases ran again on the tree at `772fe751` on 2026-12-01, in a Linux container on Claude Code 2.1.332, one run each, for $0.54, with the plugin run from a plain path as `model-router@inline`: `delegate-trace-a-flow` passed with the strict sentence in its session note, `route-lookup-subagent` passed without it, and `route-judgment-memo` passed with the agent named Opus at `high`. The 18 cases as a whole were not run again after the prompt change, and the round's container ran Claude Code 2.1.332 where the local checks ran 2.1.333. In the round's traces every Agent call ran on the model it named, or on the one the redo rule moved it to: `implementer` on Haiku at `high`, `scout` on Haiku at `medium`, `reviewer` and `architect` on Opus at `high`, and in `route-redo-escalates` all three calls named Haiku at `medium`, and the first redo stayed on Haiku while the second ran on Sonnet. No `verifier` call occurred. The strict sentence of the session note was in every run of the eleven cases that set `EVAL_MODEL_ROUTER_DELEGATION: strict` and in none of the seven that did not. The round, the follow-up runs of the memo case and the three cases run again cost $14.19. The eight cases and the 10 `route-review-subagent` runs of 2026-12-01 add $1.44, which makes $15.63. The delegation cases of earlier rounds are in the tables below. | The session names the model in a routing case, so its own model and tools matter. With `min_tier` at `sonnet` the agent ran on Sonnet in 10 of 10 runs of a Haiku session, at `high` in 3 and at `medium` in 7, and a call that names Haiku runs on Sonnet on any session. Recorded at `75c51171` on 2026-11-28. The delegation cases, each on an Opus session. Every round below ran on a tree from before this version's Opus level, so `delegation` was `strict` and the `complex` level and the `reviewer` ran on Sonnet at `high`. The third arm is a session without the plugin that a one-paragraph note tells to hand work to agents, so its agents run on its own Opus. The first six cases and the one-line fix ran in five rounds with the plugin and in three without it. The two docs-page cases ran in four or five rounds with nothing else on the machine: the last three with the plugin alone, the others with both arms. The settings page ran in two rounds of 24 with the plugin and in one of 6 without it. The fix in a long file ran in two rounds with the plugin and in one without it. The third arm ran in one round. Cost is the mean per run, as Claude Code estimates it. These sessions ran on a subscription login, where the main conversation's cache is written at the one-hour rate, so a run on an API key costs less in every arm. Seconds leave out the first of the five rounds, which ran beside about 40 other sessions that slowed its Haiku and Sonnet agents. Most of a run's seconds are the wait for the model, and they move from round to round: with the plugin `delegate-multi-file-change` took 87 seconds a run in one round and 54 in another. Recorded on 2026-11-29: the first six cases, the one-line fix and the fix in a long file at `4e638dfb`, the two docs-page cases at `2cf44eae` and the settings page at `4d83068e`. An empty cell is an arm that wasn't run: | Case | Runs: plugin, no plugin | Told to hand out | Cost: plugin | No plugin | Told to hand out | Seconds: plugin | No plugin | Told to hand out | | :- | -: | -: | -: | -: | -: | -: | -: | -: | | `delegate-trace-a-flow`, a flow traced across 16 files | 15, 9 | | $0.14 | $0.13 | | 36 | 21 | | | `delegate-multi-file-change`, a feature across a small package | 15, 9 | | $0.16 | $0.18 | | 83 | 31 | | | `complex-three-part-change`, three unrelated fixes | 15, 9 | | $0.22 | $0.14 | | 47 | 22 | | | `complex-release-train`, seven changes, three of which pass only after another | 10, 6 | 2 | $0.28 | $0.32 | $0.70 | 88 | 60 | 70 | | `large-fix-sweep`, 40 fixes across 40 modules | 10, 6 | 2 | $0.32 | $0.38 | $0.39 | 92 | 134 | 78 | | `large-contract-audit`, 270 functions in 90 modules checked against their docstrings | 10, 6 | 2 | $1.06 | $1.70 | $1.55 | 115 | 108 | 94 | | `unchecked-production-settings`, a page of 38 settings read from four files, with nothing to run | 48, 6 | 3 | $0.28 | $0.20 | $0.32 | 173 | 27 | 63 | | `lists-every-changed-file`, a small feature whose check also rewrites a docs page | 18, 9 | | $0.16 | $0.15 | | 40 | 14 | | | `names-a-page-a-helper-rewrote`, a small feature whose task says to run a helper that rewrites a docs page | 15, 6 | | $0.15 | $0.14 | | 43 | 15 | | | `inline-one-line-fix`, one constant changed | 15, 9 | | $0.12 | $0.10 | | 18 | 14 | | | `inline-fix-in-a-long-file`, the same change in a file of 344 lines | 7, 4 | | $0.19 | $0.14 | | 12 | 6 | | Every run of every arm did the work right: the tests passed, the audit listed all 12 broken functions with at most 2 wrong entries, the settings page had all 38 lines right, and the replies in `lists-every-changed-file` and `names-a-page-a-helper-rewrote` said what happened to the docs page. With the plugin 172 of 178 runs pass every grader. In two, 1 of the 10 runs of the fix sweep and 1 of the 10 of the release train, the session gave all the work to one agent, where the case asks for it split across agents. Both runs' work was right and cost less than the run beside it, $0.19 against $0.31 and $0.16 against $0.29, and both took longer, 217 seconds against 64 and 113 against 65. In the release train's run the session started the agent before it read the task file, and in the 5 runs beside it that read the file first, it split the work across 4 to 7 agents. In three more, one run of the first docs-page case and two of the second, the session did the job itself and started no agent. Two moved about 6,900 and 7,200 characters in 4 calls each, under the 8,000 where `strict` refuses the next call, and the third passed 8,000 with the last of its 5 calls, so only the reminder came. Each took 15 to 18 seconds against 40 to 57 for the runs beside it, cost within 2 cents of them, and its reply was right. The sixth is one of 2 runs of the settings page that the session wrote itself, described below. So with the plugin, 151 of the 156 runs of the nine jobs with more than one step handed the work to an agent, and no run of the two one-line fixes did. The one-line fix took 5 turns with the plugin and 4 without it in every run. In the 6 runs whose transcripts were read, the fifth turn followed the Stop check's ask about an edit no check ran on, and in it the session ran a one-line check of the file. That turn and the session note are the 2 to 5 cents between the two arms. In the long file one Read moves about 10,000 characters, and one call counts for 4,000 at most, so the search, the read and the edit all ran in the main session in 7 of 7 runs. Run side by side with a build where a call counts in full, 4 runs each: that build handed the fix to an agent in 4 of 4, for $0.22 and 28 seconds a run, and this one made the fix itself in 4 of 4, for $0.19 and 14 seconds. Run three ways in one batch on macOS, 3 runs each, the fix cost $0.12 and took 7 seconds without the plugin, $0.13 and 8 seconds with the plugin and `verify_gate` off, and $0.16 and 13 seconds with the plugin as shipped. So the session note is 2 cents and 1 second of the difference, and the rest is the Stop check's ask, after which the session checked its edit in every run. Without the plugin no run checked it. The agents ran on Haiku at `medium` for the trace, on Haiku at `high` for the code changes and the settings page, and on Sonnet at `high` for the review of the settings page and for the audit, where 2 of the 54 agents ran on Haiku. In 9 runs of three of the small jobs, the Haiku agents were $0.005 to $0.008 of a run's $0.16 to $0.21, and the rest was the main session's Opus: its cached prompt, the briefs it wrote and the reports it read. Without the plugin, only the audit's runs started an agent, on the session's Opus. Told to hand work out, the session started agents in every run, all on Opus, and gave the whole fix sweep to one agent in both of its runs. Recorded at `4d83068e` on 2026-11-29. A file an agent's shell changed, on the two cases built for it. In `lists-every-changed-file` the check an agent runs rewrites a docs page, and in `names-a-page-a-helper-rewrote` a helper the task says to run does, from a copy of the project too. The session started an agent in 30 runs of the two cases, 17 of the first and 13 of the second. In 25 of them the agent's shell changed the page, the plugin kept its line about the page for the session (a `gate` row of kind `report` in all 25), and the reply said the page was changed. In the other 5 no line came and the reply said why: the agent left the helper out in 4, and in 1 it ran the helper and put the page back in the same command. No agent was sent back to write its report again. In the 83 runs of the last seven rounds where an agent's shell changed a file, the settings page's 61 included, the line reached the session beside the agent's result in all 83. Where one command alone was running when a file changed, the line gives the number of that shell command. A fixture ignores the result file its check writes, as a project ignores build output, so the line is about the page alone. In the 3 runs where the session did the job itself, its reply said what happened to the page too. Without the plugin the session does the work itself and reads its own shell's output, and its reply said what happened to the page in all 15 runs. Recorded at `4d83068e` on 2026-11-29. A session whose prompt told it to make the seven changes of `complex-release-train` itself stopped at the refusal in 3 of 3 runs, after 3 calls, and told the user the option blocks it. A session started as `model-router:scout` with `--agent`, which can't start an agent, read 43,000 characters in 21 calls and none was refused. Recorded at `151c2c28` on 2026-11-28. Work with nothing to run, on the settings page case, 48 runs with the plugin in two rounds: in 46 the `implementer` on Haiku wrote the page. The line that no check had run came beside its result in all 46, and in all 46 the session's next call started `model-router:reviewer` on Sonnet, which read the page against its four sources before the session stopped. In the other 2 the session wrote the page itself in 3 calls, under the 8,000 characters where `strict` refuses, so no agent's result carried the line. The Stop check asked in both. One session then started the reviewer. The other had an agent on Haiku write a script that worked the page out again, and it matched the page byte for byte. That run fails the grader for a second look, which counts the reviewer and the verifier only. The page was right in all 48. Run side by side in the same two rounds with a build whose line says only to run the work's check or get a review, 48 runs: there the session read the four sources itself first in 9 runs and started the review only after the Stop check asked, at $0.33 a run, and here it did so in none, at $0.28. Nine runs against none, at this count, comes up by chance about 1 time in 600. A run took 129 seconds in the first round and 218 in the second, and 135 and 221 in the build beside it, so the two rounds differ by the wait for the model. In the round where a session without the plugin ran beside one with it, 6 runs each, a run took 139 seconds with the plugin against 27. A build with no line at all, run beside one with a line, 6 runs each, started the review only after the Stop check asked in 3 of the 6. In 13 runs of five jobs whose agents run a check themselves, the line never came. The reviewer alone, given that page with 14 lines made wrong and 2 added that don't belong, named all 16 in 3 of 3 runs, for $0.08 to $0.09 a run. Recorded at `4d83068e` on 2026-11-29. What the person asks for comes first. A session whose prompt told it to compare the agent's report with the input files itself read the page and the files in 3 of 3 runs, and started the reviewer as well in 1. A session told to write the page itself, 2 runs each way: with the Stop check it looked at the page again in both, once through an agent that worked the page out again and once by its own reread, for $0.21 and $0.17, and with `verify_gate` off it stopped after writing, for $0.13 and $0.15. The page was right in all 7. Recorded at `151c2c28` on 2026-11-28. A question answered from reading alone, with nothing written (`report-only-production-values`, ten settings that each have a trap): with the plugin all ten values were right in 3 of 3 runs, for $0.15 a run, and the session read the five files itself in each. Without the plugin 3 of 3 runs were right, for $0.14. `model-router:scout` alone on Haiku had all ten right in 5 of 5 runs, for $0.003 a run. Recorded at `151c2c28` on 2026-11-28. Three tasks from `bench/tasks`, each one long chain of work that hidden tests grade, one run each way on an Opus session, recorded at `151c2c28` on 2026-11-28: | Task | Plugin | No plugin | | :- | :- | :- | | `perf-nlogn-rewrite`, a rewrite for speed | Passes, $0.52 | Passes, $0.52 | | `migrate-ledger-v3`, a data migration | Passes, $0.40 | Passes, $0.40 | | `cachefix-stale-across-services`, a stale cache across services | Passes, $0.41 | Passes, $0.33 | With the plugin the session planned and one `implementer` on Sonnet at `high` did the work. The largest task measured is a feature on a copy of this repository. The copy's tests and docs describe the `delegation` option and its plugin code doesn't have it. The session has to write the option across eight files so that 669 unit tests and 88 mod tests pass, and may not change the tests or the docs. Each run had a container of its own: 2 with the plugin and 1 without on a git repository with one commit, and the same three on a copy with no git history, where a file a command rewrites can't be put back. With the plugin 4 of 4 runs passed, for $0.64 to $1.16 and 1,044 to 1,188 seconds a run. In each the session planned and one `implementer` wrote the code, on Sonnet at `high` in 3 runs and on Haiku at `high` in 1, and no agent started another. Without the plugin 2 of 2 runs passed, for $1.50 each, in 742 and 832 seconds. No run changed a file under `tests/` or `docs/`. The copy's `tools/docs_assets.py` rewrites the docs pages when run without `--check`, and no run did that: 3 of the 4 with the plugin ran it with `--check`, which writes nothing. Recorded at `151c2c28` on 2026-11-28. Measured on the binary against a local endpoint that stands in for the API, so no model ran (recorded at `151c2c28` on 2026-11-28): - Without the plugin, a subagent whose call names no model runs on the session's own model and effort. - With `min_tier` set to `sonnet` on an Opus session at `high`, a call that names Haiku at `medium` runs on Sonnet at `medium`, one that names Haiku at `high` or nothing runs on Sonnet at `high`, `scout` and `Explore` run on Sonnet at `medium`, and a call that names Opus stays on Opus. With `max_tier` set to `haiku` as well, the call stays on Haiku. - On an Opus session at `xhigh` or `max`, a call that names nothing runs on Haiku at `high`, and a call that names a model and effort runs on them. Measured live on `complex-release-train`, each one Opus session whose checks passed: with `min_tier` at `sonnet`, two `implementer` agents ran on Sonnet at `high`, for $0.31. At `--effort xhigh` four ran on Haiku at `high`, for $0.37. Told to use one Workflow call, the session started one under `strict`, for $0.23. A team lead started two in-process teammates, both on Haiku at `high`. Recorded at `151c2c28` on 2026-11-28. On Windows the unit tests, the mod tests, the live probe and the scripted live check run in CI, on a pull request and on each push to `main`. In CI run 46624087342 at `0ad4df24` on 2026-12-01, started by hand on this branch, they passed on `windows-latest` (Windows Server 2025, Python 3.13.17 for the probe): 1,291 unit tests on Python 3.9 and on 3.13, 36 of them skipped, the 163 mod tests on Node 22, all three passes of the live probe on Claude Code 2.1.333, 10, 5 and 10 checks, and the scripted live check, 5 checks with the default shell and 5 with `--shell bash`. In the PowerShell pass of the probe the agent's shell is the PowerShell tool, so the plugin reads a PowerShell row the real binary wrote. No model ran in those jobs. The `live` job was skipped in that run, and none has finished on a commit of this version, so the Windows live check has not run for 0.2.4. The last live sessions with a real model ran in the `live` job of a CI run started by hand at `60b3c2ab` on 2026-11-30, on `windows-latest` (Windows Server 2025, Python 3.13.17, Claude Code 2.1.332), one session per shell, with costs at list price. With PowerShell as the agent's shell it passed 5 of 5 checks for $0.013: the main session ran on Haiku, `general-purpose` and `model-router:reviewer` ran on Haiku, and the Stop check did not ask (gates `report` and `verify-early`). With Bash it passed 5 of 5 for $0.010: `general-purpose` ran on Haiku, and the Stop check asked (gates `report`, `verify` and `verify-early`). On macOS, `tools/live_check.py --shell bash` run by hand at `60b3c2ab` on 2026-11-30 (Darwin 27.2.0, Python 3.9.6, Claude Code 2.1.332) passed 5 of 5 checks for $0.013 at list price, with the main session, `general-purpose` and `model-router:reviewer` on Haiku and no ask from the Stop check (gates `report` and `verify-early`). The `live` job runs `tools/live_check.py` on a real model on `windows-latest`, once with the PowerShell tool and once with Bash as the agent's shell, with a limit of 20 minutes for the job and 6 for each step. It runs only when started by hand with `gh workflow run ci.yml --ref