Model Routing

July 12, 2026 · View on GitHub

speq-skill / Docs / Model Routing


Model Routing

speq-skill routes work between a main session, workflow skills, and specialist sub-agents. Routing is hardcoded in the generated Claude and Codex plugin artifacts.


Principle

Orchestration is cheap. Reasoning is expensive.

Workflow skills coordinate the work — gather context, ask clarifying questions, verify preconditions, dispatch specialist roles. Planning, expert implementation, and review use the heavier reasoning tier because mistakes there compound downstream.


Claude routing

Skill or agentModelEffortNotes
/speq:plansonnetinheritedThin orchestration
/speq:implementsonnetinheritedThin orchestration
/speq:recordsonnetinheritedThin orchestration
/speq:missioninheritedinheritedInteractive bootstrap
/speq:plan-prsonnetinheritedThin orchestration — headless
/speq:implement-prsonnetinheritedThin orchestration — headless
/speq:auditsonnetinheritedThin orchestration — health check
Utility skillsinheritedinheritedReference material for the caller
planner-agentopusxhighSpec deltas, ADRs, task decomposition
plan-revieweropusxhighAdversarial plan review
implementer-agentsonnethighStandard implementation tasks
implementer-expert-agentopusxhighTasks tagged [expert]
code-revieweropusxhighAdversarial implementation review
audit-agentopushighMission ↔ spec-library sync
recorder-agentsonnetmediumDeterministic spec merge and archive
git-agentsonnetmediumGeneric git/GitHub operations — no reasoning premium

Codex routing

Skill or agentModelEffortNotes
/speq:plangpt-5.4mediumThin orchestration
/speq:implementgpt-5.4mediumThin orchestration
/speq:recordgpt-5.4mediumThin orchestration
/speq:missioninheritedinheritedInteractive bootstrap
/speq:plan-prgpt-5.4mediumThin orchestration — headless
/speq:implement-prgpt-5.4mediumThin orchestration — headless
/speq:auditgpt-5.4mediumThin orchestration — health check
Utility skillsinheritedinheritedReference material for the caller
planner-agentgpt-5.5xhighSpec deltas, ADRs, task decomposition
plan-reviewergpt-5.5xhighAdversarial plan review
implementer-agentgpt-5.4highStandard implementation tasks
implementer-expert-agentgpt-5.5xhighTasks tagged [expert]
code-reviewergpt-5.5xhighAdversarial implementation review
audit-agentgpt-5.5highMission ↔ spec-library sync
recorder-agentgpt-5.4mediumDeterministic spec merge and archive
git-agentgpt-5.4mediumGeneric git/GitHub operations — no reasoning premium

Expert task tagging

planner-agent marks tasks requiring deep reasoning with [expert]:

- [ ] 2.1 Add CLI flag parsing
- [ ] 2.2 Implement lock-free queue for concurrent spec writes [expert]

When /speq:implement processes a task group:

  • Untagged tasks route to implementer-agent
  • [expert] tasks route to implementer-expert-agent
  • Expert tasks run first when they establish invariants that standard tasks depend on

Use [expert] for concurrency, subtle correctness, cross-file refactors, novel algorithms, and security-sensitive work. Avoid it for routine CLI plumbing, fixtures, docs, or straightforward use of existing patterns.


Packaging

The checked-in source currently lives in .claude/skills and .claude/agents. scripts/plugin/build.sh treats that as the shared source and generates platform-specific outputs:

  • Claude artifacts under dist/marketplace/plugins/speq-skill
  • Codex artifacts under dist/marketplace/codex/plugins/speq-skill
  • Codex marketplace manifest under dist/marketplace/codex/.agents/plugins/marketplace.json

Both generated outputs expose /speq:* skills. Claude-specific workflow syntax is translated out of the Codex output during generation.