Install model-routing
Install adds one skill folder and one harness default, so a subagent spawn with no model never inherits a frontier driver's model. It is installed together with tiered-delegation, which defines the lean profiles. The rules: SKILL.md.
Requirements
Stdlib
python3(3.9+). Read-only, no network.tiered-delegationinstalled beside it.
Install
Put the
model-routingfolder where your harness looks for skills, and installtiered-delegationbeside it.Set the harness default from the table in
SKILL.md(Claude Code shown), then start a new session:"env": {"CLAUDE_CODE_SUBAGENT_MODEL": "sonnet"}Put it in
~/.claude/settings.json.Optional: register a tool that has its own runner/operator profiles in
~/.config/tiered-delegation/profiles.json(schema inpick_agent.py --help), so--needs <tool>routes to them.
Check it works
python3 <skill>/scripts/pick_model.py --task "grep every caller of Foo and count them"
python3 <skill>/scripts/test_pick_model.py
Uninstall
Delete the folder and the env setting.
Per-harness locations
Claude Code:
~/.claude/skills/model-routing.Codex, opencode:
~/.agents/skills/model-routing.Others: any fixed folder with a pointer in
AGENTS.mdorGEMINI.md.
What is in it
| Path | What it is |
|---|---|
SKILL.md | When to pick, the tiers, harness wiring per harness, what not to set |
references/context-claude-code-subagent-model.md | How Claude Code resolves a subagent's model, and how to re-verify after an upgrade |
scripts/pick_model.py | Classifies a brief as sprinter / workhorse / architect and prints the model alias (or role with --harness any) |
scripts/pick_agent.py | The leanest profile for a kind of work; extra tools register in a profiles file (--help) |
scripts/test_pick_model.py | The classifier's regression briefs |
Each script takes --help and --json.
Related skills
Pairs with tiered-delegation, which defines the lean profiles.