← ClaudeAtlas

sub-agentlisted

COSTLY: Spawns a separate sub-agent CLI session. Use ONLY for complex CODE tasks requiring 10+ iterative tool calls (multi-file refactoring with tests, code review with fixes, test-fix cycles). IMPORTANT: Always run the model discovery script first before any sub_agent call. Do NOT use for presentations, research, documentation, or any task completable in fewer than 10 tool calls.
Wide-Moat/open-computer-use · ★ 114 · AI & Automation · score 71
Install: claude install-skill Wide-Moat/open-computer-use
# Sub-Agent Skill Delegate complex, multi-step tasks to an autonomous sub-agent that can iterate until completion. ## Before Any sub_agent Call **ALWAYS run the model discovery script first:** ```bash bash /mnt/skills/public/sub-agent/scripts/list_subagent_models.sh ``` This script will: - Detect `SUBAGENT_CLI` (default `claude`) - Enumerate valid model identifiers via the CLI's native model-listing mechanism (or, for claude, return the canonical alias set: <!-- canonical-example -->`sonnet` / `opus` / `haiku`<!-- /canonical-example -->) - Output stable JSON with `cli` / `models[]` / `default_model` / `source` fields - Fail with a structured JSON error to stderr (exit 2 or 3) if the CLI is missing or its command fails — never silently falls back to a stale list **Why this matters:** Model identifiers differ per CLI. Some CLIs accept short aliases that the CLI resolves internally; others require fully-qualified `<provider>/<model-id>` strings; others accept only concrete fully-qualified ids with no aliases at all. Operators may extend the alias vocabulary for some CLIs via the `OPENCODE_MODEL_ALIASES` env var (JSON object string mapping alias to `<provider>/<model-id>`). The discovery script is the only authoritative source for what works in the current container. **Default behavior when `model` is omitted:** Run `list-subagent-models` to discover the active default for the current `SUBAGENT_CLI`. The claude runtime has a hardcoded baseline alias <!-- canonical-example