tzachbon/claude-model-router-hook
Claude Code hooks that auto-switch model tier based on task complexity
This project helps software developers using Claude Code to automatically switch between different Claude AI models (Haiku, Sonnet, Opus) based on the complexity of their coding tasks. It analyzes your prompts to determine if a simple task like Git operations or file lookups (Haiku) or a complex one like architecture design or deep multi-file analysis (Opus) is needed, then either recommends a model or automatically switches to it. Developers are the primary users, allowing them to optimize costs and performance without manual configuration.
Use this if you are a software developer frequently using Claude Code and want to ensure you're always using the most cost-effective and appropriate AI model for your current coding task, from simple renames to complex refactoring.
Not ideal if you prefer to manually control which Claude model you're using for every interaction or if you're not using Claude Code for your development workflows.
Stars
23
Forks
—
Language
Python
License
MIT
Category
Last pushed
Mar 13, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/agents/tzachbon/claude-model-router-hook"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
hesreallyhim/awesome-claude-code
A curated list of awesome skills, hooks, slash-commands, agent orchestrators, applications, and...
bfly123/claude_code_bridge
Real-time multi-AI collaboration: Claude, Codex & Gemini with persistent context, minimal token overhead
fengshao1227/ccg-workflow
多模型协作开发系统 - Claude 编排 + Codex 后端 + Gemini 前端,28 个命令覆盖开发全流程,一键安装零配置
njbrake/agent-of-empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI, Pi.dev, Copilot CLI Coding Agent...
harikrishna8121999/antigravity-workflows
Community-driven workflows for Antigravity AI. Like Claude Skills - reusable prompts and...