tzachbon/claude-model-router-hook

Claude Code hooks that auto-switch model tier based on task complexity

27
/ 100
Experimental

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.

software-development developer-tools ai-assistant-optimization code-refactoring developer-workflow
No Package No Dependents
Maintenance 10 / 25
Adoption 6 / 25
Maturity 11 / 25
Community 0 / 25

How are scores calculated?

Stars

23

Forks

Language

Python

License

MIT

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.