Model routing
How and when to delegate coding work across models — pick a small non-builder lane, a max-effort Opus/Terra builder, a cross-family reviewer, or explicit judgement, and know when a manual gate is required. Use when deciding whether to spawn a subagent, which model/effort to hand a task, how to route a code review, or when to escalate. Also covers reaching Codex from Claude.From its SKILL.md
npx -y skills add matteoscurati/delegation-kit --skill model-routingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
8.1 KB, as published. Nobody here has run it
Model-routing: which model does which job
You are orchestrating coding work across several models. Route by the exact role
boundary first, then by evidence and cost. The dated evidence snapshot
and lane mapping live in model-routing.md plus config/model-evidence.json at
the kit root. Use delegation-evidence lane <lane> when installed; evidence is
advisory and the versioned routing gate remains authoritative.
Use delegation-route resolve --lane <lane> for the operational decision. Review
lanes additionally require --producer-profile <profile> or
--producer-family <family> so the router can exclude the producer's whole
model family. It is read-only and never dispatches a model.
For native Claude/Codex agents, the lead must resolve first; invoking an
explicit-only profile is the manual selection event. GLM/Gemini/Kimi/Grok/Qwen/DeepSeek runners enforce the
same graph directly and refuse drift.
When to delegate at all
- Default to solving simple, well-scoped work directly. Do not spawn a subagent for a routine single-file change.
- Use Sonnet or Luna only for very small, non-builder clerk, scout, or routine review work. Do not route implementation to them.
- Route bounded implementation to Opus or Terra at
max. - Review every delegated result with a sufficiently capable available model from another family. If no eligible cross-family reviewer is reachable, stop.
- Reach for multi-agent orchestration only on an explicit decision, never on autopilot. In an orchestration/ultra mode, let the orchestrator fan out — don't add a second manual delegation layer on top.
The lanes
- Very small non-builder: Sonnet/Luna for bounded extraction, repo mapping, and routine review only.
- Builder: Opus 5 or GPT-5.6 Terra at
maxthrough editing profiles. - Cross-family reviewer: Opus 5 and Terra also review at
maxthrough separate read-only profiles. Sol/high remains an advanced read-only default where its OpenAI family differs from the producer; Sonnet handles only tiny routine review. The router removes every same-family candidate. - Judgement: Fable
maxfor architecture/trade-offs/synthesis or Solmaxfor technical feasibility/repository fit/failure modes. Both aremanual-qualified, explicit-only, thinking-not-typing profiles. - Super-judgement: only for exceptional, difficult-to-reverse decisions. Fable and Sol reason independently, cross-review after both verdicts exist, and the lead decides. Never trigger it automatically.
An optional external candidate such as GLM-5.3 earns one of these lanes only
after its versioned evaluation gate allows that exact role. GLM clerk/scout are
qualified explicit-only; builder is provisional explicit-only and requires
--allow-provisional; reviewer is disabled. An installed CLI or visible model
name is not qualification. The active GLM tuple is glm-5.3/claude-zai/max;
no GLM-5.2 or GLM-5.3/high route is shipped or selectable.
Kimi K3 is provisional for clerk, scout, builder, and frontend-builder at
max; senior is a blocked candidate, while reviewer and judgement are disabled.
Provisional dispatch requires --allow-provisional. Provider quota failures are
runtime-availability failures, not quality evidence.
Qwen3.8-Max is provisional for builder only, explicit-only at xhigh, and
requires --allow-provisional. That promotion is an owner decision, not
measured capability: no DeepSWE or Terminal-Bench v2 row exists for the model.
The lane is text-only — it returns a patch the lead applies, and cannot edit a
worktree. Every other Qwen lane stays blocked until exact local lane evidence
promotes both the central and executable gates.
Its policy-annotation entry, like the corresponding Kimi, GLM, and Grok
entries, is an allowlisted evaluation-only candidate and not an operational
route.
Gemini 3.7 Flash is staged through agy with no operational lane. Scout at
medium and builder/frontend-builder at high remain blocked candidates;
reviewer and judgement are disabled. It is a prompt-only bridge: put the required tracked-file
excerpts into the brief. It uses an isolated temporary home/workspace, retains
only macOS Keychain access for OAuth, and denies every tool namespace.
DeepSeek V4 Pro is provisional for builder only, explicit-only at max, and
requires --allow-provisional. The official API runner is prompt-only and
text-only: it returns a patch the lead applies and verifies. One live exact
tuple smoke is compatibility evidence, not measured builder qualification; all
other lanes remain blocked.
Grok 4.6 is provisional for builder and frontend-builder at high through
Grok Build CLI. Dispatch requires an explicit decision and
--allow-provisional. The runner capability-probes the CLI, pins model and
effort, extracts only .text, uses an isolated HOME plus the attested custom
delegation-kit sandbox, and enforces turn and wall-clock limits. That CLI is
resolved from an optional digest-checked private archive before PATH. Its
observed version is provenance only; re-run delegation-grok pin --force to
deliberately replace the archived bytes. No other Grok lane is enabled.
The candidate/blocked policy-annotation exception is manifest-bound,
read-only, and cannot widen those operational lanes.
Sizing and escalation
- Size and separate the reviewer. Sonnet may review only a very small routine
result. Opus/Terra at
maxand Sol athighmay review material or security-sensitive work, but only when their family differs from the producer. - Route review by content and producer family. Use
routine-reviewfor tiny work,material-reviewfor implementation, andsecurityfor security/auth/ payments/migrations. Always pass producer identity; never select anything inexcluded_same_family. - Inspect provider fallback metadata. Anthropic may substitute Opus 4.8 for the requested Opus 5 reviewer on classifier-flagged cyber requests. When exact identity matters, inspect the surfaced content model or use Anthropic's CVP.
- Escalation ladder: small non-builder → builder or material reviewer → judgement. Never retry the same failure on an unsuitable worker twice.
- Delegated output is unverified until you check it. Never ship or build on a delegated diff or finding without reading it or reproducing the claim — and make the check exercise the deliverable (run the command, read the output); grepping a README, testing something adjacent, or printing True while exiting zero proves nothing.
Tie-breakers
- When evidence conflicts: required lane evidence > deliverable quality > cost.
costis per task, not per token. A model that burns more tokens at a lower price can still finish the job cheapest.
Reaching Codex from Claude (cross-provider)
If a GPT/Codex model earns a lane in your table, drive it from Claude. For
interactive or context-preserving work prefer the codex@openai-codex plugin: the
codex:codex-rescue agent (agent-invokable), plus the user-run slash commands
/codex:review and /codex:transfer — suggest these to the user, you can't invoke
them. /codex:transfer hands the session off as a resumable Codex thread, the only
path that carries the conversation across. For programmatic/parallel work use the
Codex CLI and pin
both model and effort: codex exec --ephemeral -p <profile> "<prompt>" </dev/null
(profile pins both) or codex exec -m <model> -c model_reasoning_effort=<level> -s read-only "<prompt>" </dev/null
(-s workspace-write to let it edit; add --json/-o <file> for a clean,
parseable return). Each codex exec starts fresh — run it from the repo root and
reference files by path. Use it for a cheap high-volume lane or an independent
second-opinion review from a different model family.