| name | model-routing |
| description | Opt the current project into down-tier model delegation by installing a standalone .claude/rules/model-delegation.md rule, optionally with pre-shaped .claude/agents/ definitions (fast-executor, task-coder) and an optional agent-state feedback layer. The rule tells Claude to route well-specified data and coding tasks to a cheaper model in a subagent, keeping judgment-heavy work in the main loop. Use when the user says "set up model routing", "set up model delegation", "use cheaper models for subagents", "delegate to a lower-power model", or wants to remove or update that rule. |
| metadata | {"author":"Fred Bliss","version":"0.3.0","last_verified":"2026-07-05T00:00:00.000Z"} |
Install, update, or remove a per-project model-delegation rule. The rule is a plain .claude/rules/ file: it loads at session start in that project only, needs no plugin installed to keep working, and is removed by deleting the file.
The install has three independent layers. The base rule is standalone — no external tool, no CLI. Two layers are opt-in: pre-shaped agents and an agent-state feedback section. Add only what the project wants; the base is complete on its own.
Design rationale: VISION.md "route to the cheapest capable model" — decomposition quality and model tiering are complements; well-scoped leaf tasks don't need the frontier model.
Install
- Determine the project root: the git repository root, or the working directory if not in a git repo. If the user names a different target project, use that.
- Base rule (always). Read
references/model-delegation.md (relative to this skill) and write its content verbatim to <project-root>/.claude/rules/model-delegation.md, creating .claude/rules/ if needed. Verbatim copy keeps installs identical across projects — do not regenerate or paraphrase the rule text. This layer is fully standalone; nothing below is required for it to work.
- If the target file already exists and differs, show the user the diff and ask before overwriting — it may carry local edits.
- Agents layer (opt-in). Ask whether to also install the pre-shaped delegation agents (or install without asking if the user said "with agents"). If yes, copy verbatim
references/agents/fast-executor.md and references/agents/task-coder.md to <project-root>/.claude/agents/, same diff-and-confirm treatment. These give delegation targets tailored execute-to-spec system prompts instead of a bare model override; the rule prefers them automatically when present.
- Feedback layer (opt-in). Ask whether to add agent-state outcome recording (or add it if the user said "with feedback" / "with agent-state"). Only worth it if they have or will install the
agent-state CLI. If yes, append the contents of references/feedback-addon.md verbatim to the installed <project-root>/.claude/rules/model-delegation.md. Do NOT add this by default — it is always-loaded text that only matters when the CLI is present, so keep it out of projects that won't use it.
- Tell the user which layers were installed: the rule (and any agents) load automatically at the next session start. For the current session, adopt the rule's behavior immediately since you have just read it.
Update
Same as install; step 3's diff-and-confirm handles the existing files. To add the feedback layer to an already-installed base rule, append references/feedback-addon.md (skip if that section is already present).
Remove
Delete <project-root>/.claude/rules/model-delegation.md, and <project-root>/.claude/agents/fast-executor.md / task-coder.md if they were installed. Nothing else to clean up.
What the rule says
Delegation criteria in brief (full text in references/model-delegation.md): route tasks that are well-specified, mechanical, and verifiable to the cheapest capable model in a subagent; keep design, ambiguity, user interaction, and verification of returned work in the main loop on the strongest model. Tiers are named only as examples so the rule survives model-lineup changes. The base rule stops there — no external dependency.
The optional feedback layer (references/feedback-addon.md) adds agent-state delegation record ... after verification so acceptance rates per model/domain can tune the criteria over time. It is opt-in precisely because it is always-loaded text that only pays off when the agent-state CLI is installed.