clef-model-router
by Abel Navarro · ★ 0 · updated 2 days ago
0
Picks the Claude model and reasoning effort for each turn with Cloudflare Clef, a fast decision model, on Workers AI or fully local (llama-server, Ollama).
Install
/plugin marketplace add dwain-barnes/clef-model-router/plugin install clef-model-router@clef-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
ui.rendersession.startsession.endprompt.submitturn.startturn.stepturn.completecommand.run- API calls
$.clock.now$.clock.sleep$.command.register$.env.get$.fs.list$.fs.read$.fs.write$.http.fetch$.session.id$.session.model$.session.usage$.settings.read$.state.get$.state.set$.store.get$.store.set$.ui.invalidate$.ui.toast- Draws
PromptHint- Can see
every prompt- Reach
- level 3 of 3 other: $.state.getother: $.state.setnetworkwrites filesreads filesreads env varsreads settingspersists 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/dwain-barnes/clef-model-router
- Path in repo
- repository root
- Source commit
04a262bthe exact code the scan read- Author
- Abel Navarro @dwain-barnes
- License
- Apache-2.0
- 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.