model-router
by claude-code-templates · ★ 0 · updated 7 days ago
Picks the model and the reasoning effort for each task with TypeSafe's Jev, a System One decision model reached either through TypeSafe's own API or the Vercel AI Gateway. Routes subagent models at agent.spawn and the main loop's effort and model at turn.step, in both directions, falling back to the engine's built-in classifier when no key is set.
Install
git clone https://github.com/GambetaClub/model-routerclaude --plugin-dir ./model-routerThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.startcommand.runsession.endsession.compactprompt.submitturn.startturn.stepagent.spawn- API calls
$.clock.now$.clock.sleep$.command.register$.http.fetch$.model.classify$.store.get$.store.set$.turn.abort$.ui.log$.ui.status$.ui.toast- Can see
compactionevery promptsubagent spawns- Reach
- level 3 of 3 networkdrives Claudepersists 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/GambetaClub/model-router
- Path in repo
- repository root
- Source commit
00abde6the exact code the scan read- Author
- claude-code-templates @GambetaClub
- 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.