smart-dispatch
Routes tasks to the cheapest adequate agent, model, or provider using deterministic bypasses, calibrated escalation, and optional typed option scoring through…
от Andersonlimahw★ 19 звёзд на GitHub
Установить smart-dispatch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Smart Agent & Model Dispatch (Pro Edition)
Stage input — consume the EXEC-MAP contract if present
If an EXEC-MAP v1 block from senior-prompt-engineer is in context, consume it instead of re-deriving complexity:
EXEC-MAP.effortseeds the tier (trivial/low → Tier 0; medium/high → Tier 1).EXEC-MAP.modelsis the per-phase routing intent (plan→Opus/quality,impl→Sonnet/balanced,mechanical→Haiku/budget); honor it unless validation proves it wrong.EXEC-MAP.executorpicks the provider/CLI; map model tiers to that CLI's tiers.EXEC-MAP.mcplists tools to wire up.- Preserve
router,router_mode,router_confidence, androuter_fallbacklosslessly in the dispatch contract; do not rename or recompute them. Treat the map as a starting routing decision, not gospel — escalation rules (Tier 1) still override it when validation keeps failing. With no EXEC-MAP, derive routing from the request as usual.
Optional combination parameter: combine_smart_subagents
When smart-sub-agents is installed, support this parameter in the dispatch request:
combine_smart_subagents: ask | always | never
The default is ask, but ask only when the task has explicit provider/model/effort requirements, needs more than one provider/harness, or would materially benefit from isolated parallel subagents. Use this exact question once:
Combine this dispatch with
smart-sub-agentsto pin the harness, provider, model, and effort and render a subagent configuration? (yes/no)
yesoralways: invokesmart-sub-agents, consume itsROUTE-MAP v1, and preserve its explicit route unless validation proves it unavailable.noornever: continue with the normal smart-dispatch matrix and do not ask again for the same task.- If the user already supplied
combine_smart_subagents, honor it without asking.
The combined route must log both the requested and effective harness/provider/model/effort. A provider fallback is visible and auditable; STOP/Ctrl+C or an explicit cancellation must not retry or fall back.
If smart-sub-agents is unavailable, state that fact and continue with the standard dispatch table. Do not recreate its catalog inside this skill.
Tier 0 — Automated Boilerplate & Verification (RTK Bypass)
0.1 Local-First Rule
Before dispatching to an AI agent for Tier 0 tasks, attempt to solve it using local CLI tools.
- Lint: Run
npm run lint --fixoreslint --fix. - Formatting: Run
prettier --write. - Typecheck: Run
tscand check if errors are trivial.
0.2 RTK Bypass Dispatch (The "Hammer")
If local tools fail or aren't enough, use Gemini-Flash YOLO via RTK.
- Lint/Typecheck/I18n/Tests: Route to
rtk gemini --yolo.
0.3 Verification Mandate
Any agent dispatched in YOLO/Bypass mode MUST execute the relevant validation command before completion.
- If it fixed types, it must run
tsc --noEmit. - If it fixed lint, it must run
npm run lint. - If it fixed tests, it must run
npm run test <file>.
0.4 Decision-router benefit gate
Do not pay for a separate routing inference when a local command, explicit user route, or obvious static row already decides the task. For substantive or ambiguous turns, smart-sub-agents may use its optional learned decision router. Keep these invariants:
- A typed decision scorer chooses
tier,effort, risk, and delegation shape; the selected worker still performs the work. - Explicit user routes override scorer preferences; without one, low confidence, timeout, malformed output, or missing credentials fails open to
balanced. - Safety floors apply last as a monotonic lower bound and cannot be downgraded.
- Run the learned router once per meaningful phase, not once per tool call.
- Start new policies in shadow mode and calibrate thresholds from validation outcomes; raw confidence is not portable across workloads.
- Log requested/effective route, confidence, latency, validation result, and fallback reason without logging secrets or full prompt bodies.
Tier 1 — Escalation & Intelligence Mapping
1.0 Task-Type → Model Routing (default table)
Always pick the cheapest tier that passes validation; escalate per 1.1. Tiers map per provider:
| Tier | Claude worker | Codex worker | OpenCode Zen | OpenCode Go | Gemini |
|---|---|---|---|---|---|
| budget | haiku_worker_{low|medium|high} |
luna_worker_{low…max} |
zen_flash_* / zen_luna_* |
go_luna_* / go_flash_* |
Flash-Lite |
| balanced | sonnet_worker_{low…xhigh} |
terra_worker_{low…max} |
zen_terra_* / zen_grok_* |
go_grok_* / go_glm_* / go_kimi_* |
Flash |
| quality | opus_worker_{low…max} |
sol_worker_{low…max} |
zen_sol_* / zen_opus_* |
go_pro_* / go_qwen_max_* |
Pro |
Use named workers when the harness supports custom agents. Prefer the cheapest worker that still fits the task. Codex: Luna mechani
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- plugin.json
FAQ
Что делает скилл smart-dispatch?
Routes tasks to the cheapest adequate agent, model, or provider using deterministic bypasses, calibrated escalation, and optional typed option scoring through smart-sub-agents. Use for features, fixes, refactors, or multi-step development where model tier, effort, cost, latency, or verification strategy matters.
Как установить скилл smart-dispatch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл smart-dispatch запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…