From model-router
Routes each turn and subagent to the cheapest Claude model that keeps quality, gated by a prompt-cache cost model.
10 events · 13 calls
Ships in model-router. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callmodel.completeprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startprompt.submitturn.startturn.steptool.callturn.completesession.compactsession.endagent.spawncommand.run{command=route}Every mods API method its source calls, by namespace
nowregistercompleteidusagegetsetdeletegetkeyssetstatustoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub schwepps/claude-mods --plugin model-router