sub-agentlisted
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