/mixture-of-models:routing-strategyfrom Mixture of Models
Create, edit or explain a Mixture of Models routing strategy, the rules that decide which prompts leave Claude and which model takes them. Use when the user wants to route by their own criteria (cost, speed, quality, privacy, team rules, specific kinds of work), asks how routing decides, or wants to change or compare the built-in strategies (complexity, cost, speed, quality).
Ships in Mixture of Models. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The mod scores every prompt 1-10 with a small classifier, maps the score to a tier (simple, coding, critical), and routes each tier, and each kind of work below critical, to a model. A routing strategy decides what the score means and where each tier goes. It is one markdown file.
Before any strategy runs, fixed safety rules keep some turns on the main session: security work, notifications from teammates or background tasks, short session commands ("merge it", "status"), and follow-ups to a turn a child answered. A strategy cannot route those.
| Name | Scores | Thresholds (simple / coding) | Routes |
|---|---|---|---|
complexity (default) | blast radius: how much a wrong answer could break | 3 / 7 | the config's routes (GLM for simple and coding, DeepSeek for research and review, Claude for critical) |
cost | risk of a cheaper model being wrong; when unsure, lower | 4 / 8 | simple glm/5.3, coding, research and review deepseek/v4-pro, images gemini/3.8-flash, critical Claude |
speed | reasoning depth needed | 3 / 7 | simple gemini/3.8-flash, coding gpt/sol, research and images gemini/3.8-flash, critical claude/sonnet |
quality | stakes; when unsure, higher | 2 / 5 | simple glm/5.3, coding claude/sonnet, critical Claude |
/route strategies lists them with the user's own; /route strategy <name> switches (remembered across sessions). router.strategy in ~/.claude/model-config.json sets one too; a /route strategy pick wins.
Path: ~/.claude/mixture-of-models/strategies/<name>.md. A file named like a built-in replaces it.
---
name: frugal
description: One line the user sees in /route strategies.
score: risk
thresholds: {"simple": 5, "coding": 8}
routes: {"simple": "glm/5.3", "coding": "deepseek/v4-pro", "critical": "claude", "kinds": {"review": "kimi/pro"}}
---
Risk: how bad a wrong answer from a cheaper model would be. When unsure, score lower.
1-5: lookups, docs, tests, single-file edits, small fixes.
6-8: multi-file features, integrations, refactors that tests cover.
9-10: security, production, data migrations, anything irreversible.
Rules the mod checks (a file that breaks one is skipped, and the reason is logged):
--- lines, one key: value per line. thresholds and routes are JSON on one line.thresholds: whole numbers 1-9, simple below coding. A score at or below simple is the simple tier, at or below coding the coding tier, anything above is critical. Left out, the config's thresholds stay (3 / 7).routes: any of simple, coding, critical, and kinds (code, research, review, docs, data, multimodal). Left-out keys keep the config's value; kinds merge key by key. Kinds apply only below critical, and never override a tier routed to Claude.claude (the main session), claude/<member> (fable, opus, sonnet, haiku, on the user's own Claude login), a gateway family member (glm/5.3, kimi/pro, kimi/highspeed, kimi/auto, deepseek/v4-pro, gemini/3.8-flash, minimax/m3, gpt/sol, gpt/luna, gpt/astra, gpt/auto, mercury/3), codex or codex/<model>, or a plain model id the gateway serves. Family members work the same on Palgu, OpenRouter and LiteLLM; prefer them to plain ids.score: the name of what is scored; the classifier is asked for "the from 1-10".critical should stay on Claude (claude or claude/<member>) unless the user explicitly wants otherwise; say so if they ask to route it away./route strategies output if they have one already, or the existing file, before changing it.~/.claude/mixture-of-models/strategies/<name>.md with a lowercase name, the rules above, and a rubric of four to six lines./route strategy <name>; the mod re-reads the folder then, no restart. /route status shows the active strategy, and the band shows it as auto (<name>).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub alinaqi/mixture-of-models-claude-mod --plugin mixture-of-models