Skip to content
Agent Orchestration
Skill

/model-routing

Split the Plan/Act/Verify loop across three model tiers — frontier planner, cheap executor, frontier judge — via env vars read by run.sh.

From plugin
loopkit
75953 skills1 agent4 commands2 MCP

Claude Code

$ npx -y skills add Archive228/loopkit --skill model-routing --agent claude-code

SKILL.md

model-routing.SKILL.md
name: model-routing
description: Split the Plan/Act/Verify loop across three model tiers — frontier planner, cheap executor, frontier judge — via env vars read by run.sh.
when_to_use: when a long unattended loop is being tuned for cost, or when you want a stronger judge than executor.

Model routing

`run.sh` reads three optional env vars and threads them into each `claude` invocation as `--model`. All default to unset, in which case the CLI default model is used (behaviour unchanged from a bare run).

The three knobs

  • `CLAUDE_PLANNER_MODEL` — reserved for `/spec` workflows that draft PROMPT.md up front. Not read by the current `run.sh` loop, but claimed here so future planner passes bind to it.
  • `CLAUDE_EXECUTOR_MODEL` — used on the "do the next step" call. This is the workhorse; it runs on every iteration. Pick something cheap and fast.
  • `CLAUDE_JUDGE_MODEL` — used on the `/verify` call. Runs once per iteration to adversarially check the executor's diff. Pick a frontier model — a weak judge is worse than no judge.

Recommended shape

planner  = frontier   (Opus-class, runs once at /spec time)
executor = cheap-fast (Haiku-class, runs every turn)
judge    = frontier   (Opus-class, runs every turn but on a small diff)

Example

export CLAUDE_PLANNER_MODEL="claude-opus-4-7"
export CLAUDE_EXECUTOR_MODEL="claude-haiku-4-7"
export CLAUDE_JUDGE_MODEL="claude-opus-4-7"
./run.sh

The Elvis Executor+Judge finding

A cheap executor paired with a frontier judge outperforms a frontier executor with no judge on long loops. The judge catches the executor's premature-victory claims that a mono-model run rationalises away when it runs out of context. Cost stays low because the judge only sees the diff, not the working history.

Read more
@archive228
Ships withloopkit

33 battle-tested skills + minimal .claude harness for any coding agent (Claude Code, Cursor, Codex, Gemini CLI).

75953 skills1 agent2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
759
Star history of Archive228/loopkit on GitHub, a chart by star-history.com

Other skills on loopkit.

a11y-pass

a11y-pass

Catch the accessibility failures that ship in almost every AI-built UI. Use after building any interactive component.

@archive228@archive228Install Skill
active-memory-reminder

active-memory-reminder

Before compaction Loopkit extracts decisions into claude-decisions.json (machine-readable). Read it alongside claude-progress.txt…

@archive228@archive228Install Skill
authz-check

authz-check

Verify that an endpoint checks ownership, not just authentication. Use on any handler that reads or mutates user data.

@archive228@archive228Install Skill
bisect-regression

bisect-regression

Find the exact commit that introduced a bug. Use when something worked before and broke, and you don't know which change did it.

@archive228@archive228Install Skill
broken-window-check

broken-window-check

Before picking new work, smoke-test the last "completed" feature. If it's broken, revert and re-open it before touching anything…

@archive228@archive228Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw7d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca5d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip6d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about model-routing.

Which coding agents can use model-routing?
model-routing installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.