Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Andersonlimahwv1.3.1MITIn 1 marketplace
Creates named subagent routes that pin harness, provider, model and effort, and installs worker agents for Claude Code, Codex, OpenCode and Gemini CLI. Installs files into your harness agent folders only when you run its installer script, and does not write global configuration by default.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Portable provider/model/effort routing for Claude Code, Codex, OpenCode, Antigravity, Gemini CLI, and lemon-code, plus a versioned worker matrix that installs tiered named workers into every harness.
The plugin keeps a curated, source-linked matrix in references/provider-matrix.json, resolves explicit routes, normalizes a small set of known aliases, and renders native or handoff artifacts without writing global configuration by default. It pairs with smart-dispatch, which announces a DISPATCH budget contract and picks the cheapest worker that still fits the task.
An optional typed-decision layer can score substantive turns before selecting an executor. It is off by default (heuristic), fails open to the balanced static route, and keeps safety floors outside the scorer. See references/decision-routing.md for the model-agnostic rollout and calibration contract.
A tier x effort grid of named subagents is generated from the matrix and installed into each harness. Claude bodies are canonical; other harnesses render/symlink.
| Harness | Pattern | Example | Location |
|---|---|---|---|
| Claude (canonical) | {haiku|sonnet|opus}_worker_{effort} | sonnet_worker_high | ~/.claude/agents/ |
| Codex | {luna|terra|sol}_worker_{effort} | luna_worker_max | ~/.codex/agents/ |
| OpenCode Zen (free) | zen_{family}_worker_{effort} | zen_sol_worker_max | ~/.config/opencode/agents/ |
| OpenCode Go (subscription) | go_{family}_worker_{effort} | go_luna_worker_high | ~/.config/opencode/agents/ |
| MiniMax Token Plan (subscription) | mm_{fast|m3|flash}_worker_{effort} | mm_flash_worker_high | ~/.config/opencode/agents/ + Claude/Agy bridges in ~/.claude/agents/, ~/.agy/agents/ |
Lane options in provider-matrix.json: agentMode: "all" makes workers callable by opencode run --agent (it ignores mode: subagent), leanTools: true allowlists core tools so MCP schemas stay out of the prompt (~118k → ~6.7k input tokens), claudeBridge: true also writes Haiku relay agents that call bridgeRunner (mm-run from minimax-subagents). Models whose runtime id is case-sensitive carry runtimeId (minimax-m3 → MiniMax-M3).
| Agy | symlink -> Claude workers + Codex-named aliases | opus_worker_high -> ~/.claude/agents/... | ~/.agy/agents/ |
Every generated file carries the marker managed-by: smart-sub-agents/worker-matrix and the installer is idempotent: re-running it never duplicates managed workers and never deletes non-managed agents.
Run from the repo root so the scripts resolve the catalog via a relative path:
cd "$(git rev-parse --show-toplevel)" # lemon-ai-hub root
# 1) Validate the catalog (providers, models, harnesses, workerMatrix, taskRouting)
python3 plugins/smart-sub-agents/scripts/validate_catalog.py
# 2) Unit tests
python3 -m unittest discover -s plugins/smart-sub-agents/tests -p 'test_*.py' -v
# 3) Sync live OpenCode Zen/Go models against `opencode models` (dry report)
python3 plugins/smart-sub-agents/scripts/sync_provider_matrix.py
# 4) Optional: persist discovered/stale flags + bump the `updated` date
python3 plugins/smart-sub-agents/scripts/sync_provider_matrix.py --write
# 5) Install workers into local harness dirs (~/.claude|codex|config/opencode|agy/agents)
python3 plugins/smart-sub-agents/scripts/install_worker_matrix.py
# 6) Validate the installed files (frontmatter + managed marker per harness)
python3 plugins/smart-sub-agents/scripts/install_worker_matrix.py --validate-only
Tip: render artifacts into the repo without touching global config first, then copy the ones you want:
python3 plugins/smart-sub-agents/scripts/render_agents.py --harness all --profile balanced --output-dir .smart-sub-agents/generated
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
The matrix is a curated snapshot, not a live provider API. Models are added, deprecated, and gain new effort options over time. Keep it current with a three-command cadence:
# 1) Report drift: newly observed OpenCode models are marked `discovered`,
# models no longer live are marked `stale`. Nothing is written yet.
python3 plugins/smart-sub-agents/scripts/sync_provider_matrix.py
# 2) Promote or remove entries in references/provider-matrix.json by hand,
# then persist the catalog and re-run the validator so it stays green:
python3 plugins/smart-sub-agents/scripts/sync_provider_matrix.py --write
# 3) Reinstall workers so harnesses reflect the promoted matrix:
python3 plugins/smart-sub-agents/scripts/install_worker_matrix.py
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin smart-sub-agentsPlugins from other owners that cover similar ground