Model Routing System
CommunityRoute every prompt to the right model.
Software Engineering#claude code#multi-model#model routing#research evaluation#fallback protocol#prompt classification#cost-aware inference
Authoralinaqi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the problem of getting consistently good, cost-aware answers by automatically classifying each user prompt and delegating it to an appropriate model with cascading fallbacks and verification when the classifier or tools fail.
Core Features & Use Cases
- 9-tier cost/complexity routing: assigns a tiered model choice based on prompt type, including cheap local classification first and escalation to higher-quality models when needed.
- Classifier fallback + cached recovery: retries classification across multiple backends and uses a routing cache so routing continues even if Ollama is temporarily unavailable after context compaction.
- Tool fallback protocol with research evaluation: swaps to external backends (e.g., multi-backend research) and can auto-evaluate results to select better-performing options.
- Integration with Maggy routing rules: enforces task-type overrides (e.g., security/architecture to Claude, bulk to Gemini Flash-Lite) while mirroring the same tier structure in Maggy.
Quick Start
Ask Claude Code to handle your request normally and let the route-task hook classify the prompt, delegate to the selected tiered model, and fall back automatically if routing or tools fail.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Model Routing System Download link: https://github.com/alinaqi/maggy/archive/main.zip#model-routing-system Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.