Advanced Dispatcher
Route mid-session work to the right spawned model without changing the fixed main session. Use for coding, architecture, math, algorithms, web development, b...
Description
name: advanced-dispatcher description: Route mid-session work to the right spawned model without changing the fixed main session. Use for coding, architecture, math, algorithms, web development, brainstorming, research, long-context reading, quick scripts, formatting, multi-model tradeoff evaluation, or structured build pipelines triggered by buildq:, build:, or buildx:. Default to strict no-Claude routing; allow Claude only when the current prompt explicitly includes --force-claude.
Advanced Dispatcher
Use this skill to classify work, dispatch it to the best spawned model, and return the result to the main session.
Runtime requirements
This skill assumes the runtime can spawn work on these model families:
openai-codex/*opencode-go/*- optional
anthropic/*only when--force-claudeis present
If the host is self-managed, configure whatever provider credentials your runtime expects before using this skill. Typical setups use environment variables for OpenAI, Opencode, and optionally Anthropic, but the exact variable names depend on the host/runtime wrapper. Do not hardcode secrets into the skill package.
Non-negotiable rules
- Never use Anthropic models unless the current prompt contains
--force-claude. - Reject legacy flags
--use-claude,--force-opus, and--no-opus. - Treat
--force-claudeas prompt-scoped, not session-scoped. - Prefer deterministic routing over ad hoc judgment.
- Use
longcache retention foropenai-codex/*routes. - Use
shortcache retention foropencode-go/*routes. - Do not use Claude in build pipelines; keep
--force-claudelimited to tradeoff proposal generation.
Standard routing
Choose exactly one primary route:
- Code & architecture →
openai-codex/gpt-5.4 - Math & algorithms →
opencode-go/glm-5 - Web dev & brainstorming →
opencode-go/minimax-m2.5 - Research & long context →
opencode-go/kimi-k2.5 - Quick scripts & formatting →
openai-codex/gpt-5.3-codex-spark
If a request spans categories, route by the highest-risk deliverable:
- Architecture or production code wins.
- Math or algorithm correctness beats brainstorming.
- Long-context ingestion beats light formatting.
- Formatting-only tasks stay on Spark.
Tradeoff protocol
Trigger tradeoff mode when the user asks to:
- evaluate tradeoffs
- compare approaches, options, designs, or architectures
- choose between competing solutions
- judge which architecture or design is better
Default tradeoff route
Generate proposals in parallel with:
opencode-go/glm-5openai-codex/gpt-5.3-codex
Judge both proposals with:
openai-codex/gpt-5.4
Tradeoff route with --force-claude
Use Claude only for proposal generation:
anthropic/claude-sonnet-4-6anthropic/claude-opus-4-6
Keep the judge on:
openai-codex/gpt-5.4
Do not use Claude anywhere else in the flow.
Build pipeline protocol
Use the build pipeline when the prompt starts with one of these prefixes:
buildq:→ quick pipelinebuild:→ standard pipelinebuildx:→ strict pipeline
buildq:
Use for smaller scoped coding work.
Steps:
- plan →
openai-codex/gpt-5.4 - implement →
openai-codex/gpt-5.4 - test →
opencode-go/glm-5 - simplify →
openai-codex/gpt-5.3-codex - retest →
opencode-go/glm-5
build:
Use for the normal serious coding workflow.
Steps:
- parallel-plan-a →
openai-codex/gpt-5.4 - parallel-plan-b →
opencode-go/glm-5 - judge-plan →
openai-codex/gpt-5.4 - boilerplate →
openai-codex/gpt-5.3-codex-spark - implement →
openai-codex/gpt-5.4 - test →
opencode-go/glm-5 - simplify →
openai-codex/gpt-5.3-codex - retest →
opencode-go/glm-5 - review-resolve →
openai-codex/gpt-5.4 - final-test →
opencode-go/glm-5
buildx:
Use for stricter, higher-value delivery.
Steps:
- parallel-plan-a →
openai-codex/gpt-5.4 - parallel-plan-b →
opencode-go/glm-5 - judge-plan →
openai-codex/gpt-5.4 - boilerplate →
openai-codex/gpt-5.3-codex-spark - implement →
openai-codex/gpt-5.4 - test →
opencode-go/glm-5 - simplify →
openai-codex/gpt-5.3-codex - retest →
opencode-go/glm-5 - review-resolve-a →
openai-codex/gpt-5.4 - test-a →
opencode-go/glm-5 - review-resolve-b →
opencode-go/kimi-k2.5 - final-test →
opencode-go/glm-5
Judge output contract
When a judge-plan step runs, require these sections:
- selected architecture
- why it won
- project/file structure
- implementation order
- test plan
- simplification targets
- done criteria
For buildx:, also include:
- risk list
- likely failure modes
- review checklist
Simplify contract
The simplify step must:
- remove dead code
- remove speculative abstractions
- reduce duplication
- shorten over-engineered interfaces
- delete non-needed helpers
- prefer fewer files when clarity is not lost
- preserve tested behavior
The simplify step must not:
- rewrite architecture unnecessarily
- add clever abstractions
- expand scope
Session transitions
If the user shifts into a sustained new domain, summarize the active state with openai-codex/gpt-5.3-codex-spark and suggest a fresh session only when repeated cross-domain dispatching would be wasteful.
Context discipline
- Fetch only the files needed for the routed task.
- Do not ingest entire repositories unless the task explicitly requires it.
- Treat one-off quick fixes as stateless unless the user asks to preserve them.
Implementation contract
dispatcher.py is the routing source of truth. It must:
- produce deterministic
RoutePlanobjects - expose route choice, cache retention, rationale, and pipeline steps
- support parallel proposal generation plus a separate judge in tradeoff mode
- support
buildq:,build:, andbuildx:pipeline modes - reject empty prompts, unknown domains, and legacy flags
- keep routing updates easy by centralizing model and trigger definitions
Validation checklist
Before shipping updates:
- Run
tests/test_dispatcher.py. - Run one end-to-end smoke test for a tradeoff request.
- Run smoke tests for
buildq:,build:, andbuildx:. - Confirm Claude is unreachable unless
--force-claudeis present. - Confirm Claude never appears in build pipelines.
- Confirm all OpenAI Codex routes use
longretention. - Confirm all
opencode-goroutes useshortretention.
Reviews (0)
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!