model-router

by TFoxik · ★ 1 · updated 5 days ago

PanesBandsReskinsGuardsCommandsPromptvalidates

0

Model and effort routing per kind of work, with prompt-cache and cost tracking, a cold-cache guard, and an optional learn mode that explains what each choice cost

install model-router

Install

/plugin marketplace add TFoxik/claude-model-router
/plugin install model-router@claude-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.startprompt.attachmenttool.callsession.compactagent.spawnprompt.submitcommand.runsession.endturn.startturn.stepturn.completeui.render
API calls
$.agent.list$.clock.every$.clock.now$.command.list$.command.register$.command.run$.env.get$.fs.exists$.fs.list$.fs.read$.fs.write$.model.classify$.prompt.fill$.prompt.read$.prompt.submit$.session.id$.session.messages$.session.model$.session.repo$.session.root$.session.surfaces$.session.usage$.settings.read$.state.get$.state.set$.store.get$.store.set
Draws
PaneSessionModeAbovePrompt
Can see
EnterPlanMode callsExitPlanMode callsevery tool callcompactionsubagent spawnsevery prompt
Reach
writes filesdrives Claudewrites the prompt boxreads filesreads env varsreads settingsreads the transcriptreads the prompt boxreads mod statepersists state

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/TFoxik/claude-model-router
Path in repo
repository root
Source commit
a1a8fbd the exact code the scan read
Author
@TFoxik
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.