Command Palette

Search for a command to run...

Назад к скиллам
скилл № 91318

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от 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, or lemon-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

  1. Select the harness that can actually execute the work. Use opencode when the requested provider is not native to the current harness.
  2. Select a profile: budget, balanced, quality, or research.
  3. Apply explicit provider, model, and effort overrides. Explicit values win over profile defaults.
  4. Validate the exact model ID against the matrix. Never silently replace an unavailable model with a similarly named one.
  5. 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.
  6. Emit one ROUTE-MAP v1 block and, when requested, render the harness-specific subagent configuration.

Fast decision path

Use the cheapest path whose overhead can pay for itself:

  1. Bypass model routing for deterministic local commands and tiny tasks; execute them locally.
  2. Use the static taskRouting table by default. It adds no network hop and remains the fail-open path.
  3. Use a learned decision router only for substantive turns where model or effort choice can materially change cost, latency, or quality.
  4. Apply an explicit user route override when present; explicit values win over scorer preferences.
  5. 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.
  6. Apply decisionRouting.safetyFloor as the final monotonic clamp. It may raise, but never lower, the effective route.
  7. 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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить smart-sub-agents с