smart-sub-agents
Creates and routes portable subagents by harness, provider, model, and effort, with optional calibrated typed-decision routing and safety floors. Use when a…
от Andersonlimahw★ 19 звёзд на GitHub
Установить smart-sub-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Smart Sub-Agents
Use this skill to turn a vague delegation request into a reproducible route:
harness: opencode
provider: deepseek
model: deepseek-v4-flash
effort: max
The source of truth is references/provider-matrix.json. It separates two concepts that are often incorrectly mixed:
- Harness: the tool that owns the subagent (
claude-code,codex,opencode,antigravity,gemini-cli, orlemon-code). - Provider/model: the model service and model ID used by that harness (
anthropic/claude-opus-5,openai/gpt-5.6, and so on).
It also separates the optional decision scorer from the executor. A scorer may choose a route, but it never appears as a worker model because it does not generate the task result. Read references/decision-routing.md before enabling probability-based routing.
Routing protocol
- Select the harness that can actually execute the work. Use
opencodewhen the requested provider is not native to the current harness. - Select a profile:
budget,balanced,quality, orresearch. - Apply explicit
provider,model, andeffortoverrides. Explicit values win over profile defaults. - Validate the exact model ID against the matrix. Never silently replace an unavailable model with a similarly named one.
- Map the normalized effort to the provider's native control. If the provider only supports a boolean thinking switch or model-specific variants, record that limitation in the route.
- Emit one
ROUTE-MAP v1block and, when requested, render the harness-specific subagent configuration.
Fast decision path
Use the cheapest path whose overhead can pay for itself:
- Bypass model routing for deterministic local commands and tiny tasks; execute them locally.
- Use the static
taskRoutingtable by default. It adds no network hop and remains the fail-open path. - Use a learned decision router only for substantive turns where model or effort choice can materially change cost, latency, or quality.
- Apply an explicit user route override when present; explicit values win over scorer preferences.
- Otherwise, if confidence is below the calibrated gate, the router times out, or its output is invalid, use the configured balanced fallback. Do not jump to the most expensive model merely because the router is uncertain.
- Apply
decisionRouting.safetyFlooras the final monotonic clamp. It may raise, but never lower, the effective route. - Reassess at phase boundaries (plan, implementation, verification), not after every tool call. De-escalate when the remaining work becomes mechanical, subject to the safety floor.
Ask independent typed questions together: tier, effort, task risk, tool complexity, and whether parallel reasoning will amortize startup cost. Reuse the shared task state across those questions when the scorer supports prefix caching or parallel suffixes. Treat option probabilities as routing signals, not proof of correctness. Start in shadow, measure against validation outcomes, calibrate per workload, then move to advisory or enforce. Never copy the example confidence gate into production without local calibration.
Recommended profile defaults:
| Profile | Effort | Use for |
|---|---|---|
budget |
low |
Formatting, bounded checks, repetitive work |
balanced |
medium |
Normal implementation and integration |
quality |
high |
Architecture, security, difficult debugging |
research |
max |
Long-horizon research or adversarial synthesis |
max is a quality/cost choice, not a promise that every provider accepts a literal max request parameter. The renderer preserves the requested level and exposes the effective native mapping.
Normalizing the examples
The following common inputs are normalized only when the catalog has an explicit alias:
| Input | Canonical route |
|---|---|
openai / gpt-5.6 lunce |
openai / gpt-5.6-luna |
opencode / kimi k3 |
moonshotai / kimi-k2 (Kimi K3 is not in the verified matrix) |
anthropic / Opus % |
anthropic / claude-opus-5 |
deepseek api / deepseek v4 flash |
deepseek / deepseek-v4-flash |
google / Gemini 3.5 Pro |
google / gemini-2.5-pro or google / gemini-3.1-pro-preview |
These are corrections, not fuzzy guesses. If an alias is not listed, ask for the exact provider/model ID or run the catalog validator before routing.
Harness configuration
Use the local renderer to generate artifacts without mutating global configuration:
python3 plugins/smart-sub-agents/scripts/validate_catalog.py
python3 plugins/smart-sub-agents/scripts/render_agents.py \
--harness opencode \
--provider deepseek \
--model deepseek-v4-flash \
--effort max \
--output-dir .smart-sub-agents/generated
To create one route for every supported harness using a profile:
python3 plugins/smart-sub-agents/scripts/render_agents.py \
--harness all --profi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- README.md
- agents/smart-route.md
- plugin.json
- references/decision-routing.md
- references/provider-matrix.json
- references/provider-matrix.md
- scripts/install_worker_matrix.py
- scripts/render_agents.py
- scripts/sync_provider_matrix.py
- scripts/validate_catalog.py
FAQ
Что делает скилл smart-sub-agents?
Creates and routes portable subagents by harness, provider, model, and effort, with optional calibrated typed-decision routing and safety floors. Use when a task needs explicit model selection, multi-provider delegation, dynamic effort, parallel subagents, probability-based routing, or configuration for Claude Code, Codex, OpenCode, Antigravity, Gemini CLI, or lemon-code.
Как установить скилл smart-sub-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл smart-sub-agents запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…