clef-model-router

by Abel Navarro · ★ 0 · updated 2 days ago

ReskinsCommandsPromptvalidates

0

Picks the Claude model and reasoning effort for each turn with Cloudflare Clef, a fast decision model on Workers AI.

install clef-model-router

Install

/plugin marketplace add AbelNavarro/clef-model-router
/plugin install clef-model-router@clef-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
ui.rendersession.startsession.compactsession.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
compactionevery 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/AbelNavarro/clef-model-router
Path in repo
repository root
Source commit
fb0cd35 the exact code the scan read
Author
Abel Navarro @AbelNavarro
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.