tzachbon/claude-model-router-hook
34 stars · Last commit 2026-03-13
Claude Code hooks that auto-switch model tier based on task complexity
README preview
<div align="center"> # Claude Model Router Hook **Automatic model switching for Claude Code. No API calls, no config.** [](LICENSE)   <video src="docs/slides/public/model-router.mov" width="887" controls></video> </div> A Claude Code hook system that classifies every prompt by task complexity and switches your active model automatically. Sub-agent model rules are injected into every session so spawned agents also use the right tier. ## Features - Classifies prompts by complexity using keyword and pattern matching (zero API calls) - Warns on tier mismatch by default; optionally auto-switches `settings.json` (`action: "autoswitch"`)