ClaudeCodeMod

All shelves / Mods / Usage

quality-router

By nextscape

quality-router is a Claude Code usage mod by nextscape.

Picks each prompt's effort and each subagent's model and effort with Haiku, refuses rule-breaking Workflow scripts, and shows its state on the status line.

DrawsHolds a command

Install

The marketplace name is nextscape-mods.

In Claude Code
/plugin install quality-router --marketplace nextscape/ns-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.3.1
License
MIT
Repo stars
3
Last change
2026-10-07

What it can reach

  • Draws in the session
  • Holds a command
  • Reads usage or context figures
  • Sees tool calls

Claude Code 2.1.287 or later; the author checked it on 2.1.292. It works from a new session. Haiku judges each request of 20 characters or more, and twice for each subagent it routes, on your plan or API key, about a second each; the main judgment waits up to 5 seconds. Haiku gets the start and end of the request and the end of the last reply, and the start and end of a subagent's description and prompt, through Claude Code's own connection. While it is on, it overrides the built-in /effort on the next request; turn it off with /qr off first to keep a level. Installed with effort-router, it leaves the main thread's effort to effort-router. The model guard is off by default; /qr guard on switches a main model such as Sonnet back to the top model, which uses more of your plan. Agents you defined and subagents started with a named model are left alone, and a saved Workflow in .claude/workflows/ only gets a notice. Its log in ~/.claude/quality-router/ keeps judgments and results, not the text. The author calls it experimental. The README is in Japanese.

The marketplace, nextscape-mods, also lists effort-router, git-nudge, and voice-notify. The effort and model it sets for each turn and subagent is why this page files it under usage. effort-router, by nextscape, picks only the main thread's effort, and this one hands the main effort to it when both are installed. subagent-tuner, by Kruhlikau, picks each subagent's model and effort by asking you in a pane. This one picks among medium, high, xhigh, and max for the main thread, raises the floor to xhigh while a brainstorming, planning, debugging, or code review skill runs, and goes up a level after two tool errors in a row. It sorts each Agent subagent by kind and weight and gives it a model and effort from a table, a level higher when the same subagent is started again. A Workflow script whose agent() calls fall outside the floor and ceiling for their label, such as chore: or review:, is refused with how to fix it. /qr stats and /qr log show the record, and /qr eval scores the judge on bundled examples.

Demo

The status display section of the quality-router README, in Japanese: the sample v0.3.1 · main xhigh (judged medium, skill: brainstorming) · sub 2 · gate on, and a table of what each part means: the version, the main thread's effort, the judged level before a floor raised it, the skill floor, +1 after tool errors, the model guard failing, main paused while effort-router sets the effort, the subagents routed, and the Workflow gate on.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • command.runWhen you run its slash command/quality-router/qr/effort/model
  • turn.startWhen Claude starts a turn
  • session.appendWhen an entry is written to the transcript
  • turn.stepAt each step of a turn
  • tool.callAround a tool call, where it can hold one
  • prompt.composeWhile you write a prompt
  • agent.spawnWhen a subagent starts
  • turn.completeWhen a turn ends

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
nextscape
Category
Usage
Marketplace
nextscape-mods
Repo
nextscape/ns-mods
Folder
mods/quality-router
Version
0.3.1
License
MIT
Repo stars
3
Last change
2026-10-07
Language
TypeScript
Files
37

Other mods in Usage

context-meternoash-xrcDraws two rows at the right of the band above the prompt: context fill, the rate-limit windows, session cost, the prompt cache, the model, and its effort.idle-compactnoash-xrcRuns /compact on a session idle for 55 minutes with 120k tokens or more, just before the prompt cache expires, and shows a toast when it did.swiss-knifenocodehackHolds a commandChimes and turns its strip red when Claude needs you, forecasts when plan limits run out, writes handoffs, and asks before destructive commands.sesscloneNotTahaAliReports each turn's tokens, model, and timings to a SessClone dashboard, with a line above the prompt that shows whether this session is synced.context-widgetoMaN-RodDraws the context window as a stacked bar, one color per /context category, on a card under the prompt or docked beside the transcript.cost-visibilitypatitowHolds a commandDraws a two-line band above the prompt with the plan windows, this chat's list-price cost split into main and subagents, and context. /spend opens a pane.usage-barspepperonasShows the 5-hour and 7-day limits as animated bars under the prompt, with a reset countdown, a pace mark, a projection, and six styles.clawd-dashpinkpixel-devDraws a session dashboard under the prompt: plan limits, context, cost, model, effort, git status, and file changes, beside a pixel Clawd who reacts.usage-paneT-AI-LabsOpens a /tokens pane that adds up tokens, cache hit rate, and API price by day, model, and project, and lists each session's prompts by cost and why.ribbonrobonuggetsDraws a slim band above the prompt with the 7-day and 5-hour usage left and when each resets, and whether the prompt cache is warm or cold with the next cost.hudlycfyiDraws a heads-up display above the prompt: context fill, repo state, turn progress with time estimates, and a recap with an automatic /whats-next after a break.automodemralexivyHolds a commandPicks the model and effort for each prompt, draws a bar above the prompt with context, cache countdown, cost, and savings, and denies git writes from subagents.
All 183 in Usage