model-router

by DevstateBelgium · ★ 0 · updated 9 days ago

PanesStatus lineCommandsPromptvalidates

0

Routes each coding subtask to the cheapest Claude model and effort that can do it reliably, logs real token cost per subagent automatically, and learns routing boundaries from verified runs.

install model-router

Install

/plugin marketplace add DevstateBelgium/model-router
/plugin install model-router@model-router

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startagent.spawnturn.stepsession.endcommand.runprompt.submitui.render
API calls
$.agent.list$.clock.after$.clock.now$.command.register$.command.run$.fs.read$.prompt.submit$.state.get$.state.set$.store.get$.store.set$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
Pane
Can see
subagent spawnsevery prompt
Reach
level 2 of 3 drives Claudereads filesreads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/DevstateBelgium/model-router
Path in repo
repository root
Source commit
8271ee9 the exact code the scan read
Author
@DevstateBelgium
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.