model-router
Skill103 starsChanged 3 months agoMITView on GitHub
Use when the user asks to pick a model, subscription, or reasoning effort, or to run router status, usage refresh, or resume a router session. Also use when you were launched by model-router (your task has a "Router session:" line) and your phase is complete, to route the next phase. Invoke the model-router CLI instead of choosing a model yourself.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- francoisdp/skillstheir own version, first seen Sep 11, 2026
- Renga154/model-routertheir own version, first seen Jul 20, 2026
- willianbs/skillstheir own version, first seen Jul 18, 2026
- RandomNest/aivideo-production-skillstheir own version, first seen Feb 20, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- RandomNest/aivideo-production-skills★ 15same name
- francoisdp/skills★ 2same name
- Renga154/model-router★ 0same name
- willianbs/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- typesafe-aiSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 5 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Call the explicit CLI. Do not invent routing policy, quotas, or model catalogs.
- Very specific: line 28
Default router run reads local-session quota caches.
- Distinctive: line 30
If the CLI prints two eligible routes, ask the user to choose.
- Very specific: line 34
If your task was launched by model-router, it ends with Router session: <id>.
- Very specific: line 36
Write the result the next agent needs to a file in the repo, such as the plan or handoff notes (for example docs/plans/<feature>.md).
- Very specific: line 38
Run router session <id> and confirm the phase and route you were given.
- Very specific: line 39
Run router run --session <id> "<next-phase task>" --dry-run.
- Very specific: line 40
If the user confirms, run the same command without --dry-run.
- Distinctive: line 43
Do not route again for the phase you are still in, and do not continue the next phase yourself unless the user asks you to or step 6 …
- Distinctive: line 45
Do not copy credentials, cookies, Telegram identifiers, or heartbeat records into prompts or logs.
- Very specific: line 49
Only when your task has a Router session: line and you are Claude Code on Opus or Codex on GPT 6 Astra.
- Very specific: line 52
Never run the manual form router effort <id> <level>.
- Very specific: line 55
Never word the sub-step to get max or ultra.
- Distinctive: line 59
No user confirmation is needed for these switches.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Model Router
Call the explicit CLI. Do not invent routing policy, quotas, or model catalogs.
Invoke
router run "<task>" --dry-run
router run "<task>"
router run --session <id> "<next-phase task>"
router effort --session <id> "<sub-step>" [--step-kind <k>] [--consecutive-failures <n>] [--tests-failing] [--files-touched <n>] [--diff-lines <n>] [--blocked]
router status [--usage]
router session [id] [--list]
router accounts
router usage refresh --dry-run
router usage refresh --source browser --dry-run--dry-run prints the decision and does not create a Herdr pane or consume launch quota.
router run without --dry-run still requires HERDR_ENV=1 and should wait for user confirmation before any launch that would consume subscription quota.
Default router run reads local-session quota caches. Add --usage for official CLI/API and browser collectors. Personal accounts stay eligible without known quota. Shared accounts still need known usage.
If the CLI prints two eligible routes, ask the user to choose. If it prints exclusions, report those reasons. Never override the 40% shared reserve.
End of a phase
If your task was launched by model-router, it ends with Router session: <id>. When the phase you were given is complete (for example planning is done and implementation is next):
- Write the result the next agent needs to a file in the repo, such as the plan or handoff notes (for example
docs/plans/<feature>.md). The next agent starts in a new pane and does not see this conversation. - Tell the user the phase is complete, name the file, and ask whether to route the next phase. Do not launch anything until they agree.
- Run
router session <id>and confirm the phase and route you were given. - Run
router run --session <id> "<next-phase task>" --dry-run. The task must name the next phase and reference the file, for exampleImplement the approved plan in docs/plans/billing.md. Show the user the decision card. - If the user confirms, run the same command without
--dry-run. Report the new session id, agent, and pane from the output. - If the output says
Continue in this session, the next phase runs here: continue it yourself at the stated effort, using the newRouter session:id it prints. If it says to end your turn, end it with a one-line status; the next phase is already queued. This is the only case where you continue the next phase yourself.
Do not route again for the phase you are still in, and do not continue the next phase yourself unless the user asks you to or step 6 applies.
Do not copy credentials, cookies, Telegram identifiers, or heartbeat records into prompts or logs.
Changing effort mid-phase
Only when your task has a Router session: line and you are Claude Code on Opus or Codex on GPT 6 Astra.
- When you start a sub-step that is clearly harder or easier than the work so far, run
router effort --session <id> "<one-line sub-step>"with the signal flags that apply. Use your ownRouter session:id (the latest one you were given); the router refuses a switch for any pane but yours. The sub-step is one line of plain text, at most 500 characters. - Never run the manual form
router effort <id> <level>; it is for the user and is refused inside an agent. Examples: entering debugging after two or more failed attempts, a tricky migration or concurrency change, or bulk mechanical edits and renames. - Report the flags honestly:
--step-kind(explore, edit, debug, verify, refactor),--consecutive-failures,--tests-failing,--files-touched,--diff-lines,--blocked. - On Claude Code, read
CLAUDE_EFFORTfirst and skip the call when the sub-step fits your current level. - Never word the sub-step to get
maxorultra; only the user can unlock those. - On a pane already at
maxorultrathe router skips sub-step switches (exit 4,top-tier-held); that level was the user's choice. - Exit 0: follow the printed instruction. If it says to end your turn, end it now with a one-line status; you will be resumed at the new level.
- Any non-zero exit (4 no change, 5 failed, 2 unknown session, 1 usage error): continue at your current level. Do not retry the same call.
- No user confirmation is needed for these switches.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

