agentleFS
nidhi-singh02nidhi-singh02/agent-router/skills/model-router/SKILL.md

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

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. RandomNest/aivideo-production-skills★ 15same name
    2. francoisdp/skills★ 2same name
    3. Renga154/model-router★ 0same name
    4. 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.

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
  1. Distinctive:

    Call the explicit CLI. Do not invent routing policy, quotas, or model catalogs.

    line 8
  2. Very specific:

    Default router run reads local-session quota caches.

    line 28
  3. Distinctive:

    If the CLI prints two eligible routes, ask the user to choose.

    line 30
  4. Very specific:

    If your task was launched by model-router, it ends with Router session: <id>.

    line 34
  5. Very specific:

    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).

    line 36
  6. Very specific:

    Run router session <id> and confirm the phase and route you were given.

    line 38
  7. Very specific:

    Run router run --session <id> "<next-phase task>" --dry-run.

    line 39
  8. Very specific:

    If the user confirms, run the same command without --dry-run.

    line 40
  9. Distinctive:

    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 …

    line 43
  10. Distinctive:

    Do not copy credentials, cookies, Telegram identifiers, or heartbeat records into prompts or logs.

    line 45
  11. Very specific:

    Only when your task has a Router session: line and you are Claude Code on Opus or Codex on GPT 6 Astra.

    line 49
  12. Very specific:

    Never run the manual form router effort <id> <level>.

    line 52
  13. Very specific:

    Never word the sub-step to get max or ultra.

    line 55
  14. Distinctive:

    No user confirmation is needed for these switches.

    line 59

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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):

  1. 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.
  2. 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.
  3. Run router session <id> and confirm the phase and route you were given.
  4. Run router run --session <id> "<next-phase task>" --dry-run. The task must name the next phase and reference the file, for example Implement the approved plan in docs/plans/billing.md. Show the user the decision card.
  5. If the user confirms, run the same command without --dry-run. Report the new session id, agent, and pane from the output.
  6. If the output says Continue in this session, the next phase runs here: continue it yourself at the stated effort, using the new Router 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 own Router 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_EFFORT first and skip the call when the sub-step fits your current level.
  • Never word the sub-step to get max or ultra; only the user can unlock those.
  • On a pane already at max or ultra the 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.