Jev Model Router Mod Routes Claude Code Tasks Across Models
Alvaro Cintas describes jev-model-router, an early-access Claude Code mod built on function hooks that uses Jev to pick a model per turn based on task complexity and risk. He provides install steps, a link, and configuration notes for API keys.
Original post · 1 min read
It's called jev-model-router, an early access mod built on Claude Code's new function hooks. Before every turn, it checks in with Jev and asks:
> how mechanical the task is > how much reasoning it needs > whether it's risky
Then it routes:
→ it'll move up to a stronger model on weak evidence, and only drops to a cheaper one when it's confident the task is simple → every decision gets logged in your transcript → if the call fails, your request runs untouched
Setup:
1. copy the install command: npx claude-code-templates@latest --mod productivity/jev-model-router
2. paste it inside Claude Code
3. run claude with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 set
4. accept the trust prompt on first launch
Link: aitmpl.com/component/mod/productivity/jev-mode…
Also works with no api key, it just falls back to a built-in classifier with no confidence score.
For real jev routing, add your typesafeApiKey or gatewayApiKey to ~/.claude/settings.json.
Follow me for more AI workflows and tutorials.