| name | delegate |
| description | Spawn an appropriate subagent to handle a task. |
| disable-model-invocation | true |
| argument-hint | <task description> |
Delegate to Agent
Delegate the task to a subagent. Do not execute work directly.
- Parse everything after
/delegate as the task description
- Select a subagent role from the table below
- Invoke the subagent immediately — no preliminary reads or
commands
- Report results
Agent Selection
Route to the subagent that best matches the task. The roles
below are descriptions, not agent names — use your platform's
actual agent names.
| Task Type | Subagent Role |
|---|
| Find code/files, trace deps | Exploration / investigation |
| Design approach, architecture | Planning |
| Commands, multi-step work, refactor | General-purpose / workhorse |
| Code review * | Review specialist |
| Web research * | Research specialist |
* Fall back to your platform's general-purpose / workhorse
agent if no specialist is available.
Anti-patterns
- Reading files or running commands before delegating
- "Let me quickly check..." before spawning the subagent
Steerability for editing tasks
A fire-and-forget subagent is fine for read-only work (find,
trace, review, research) — you consume the result at the end.
For editing or iterative tasks (refactor, multi-step
implementation), a subagent the user can't interrupt ploughs
ahead while objections pile up, leaving a large diff to unwind.
For those, prefer a primitive the user can talk to mid-flight — a
named teammate (below) if the harness supports it, otherwise keep
the work in the main thread rather than a sealed subagent. See
shared/SUBAGENT-STEERABILITY.md
for the full rule.
Agent teams (if your harness supports it)
For editing or iterative tasks, spawn the delegate as a named
teammate the user can chat with directly:
- Create a team named
delegate-{short-slug} (a 2-3 word
kebab-case summary of the task, e.g. delegate-fix-auth).
- Create a single task describing the work and spawn one agent
assigned to it. The agent prompt must include the full task
description, the working directory, and instructions to use all
relevant tools and to update
docs/**/*.md or **/README.md
when behavior, public APIs, or usage patterns change.
- Have the agent report findings back to the team lead and mark
the task completed when done.
See shared/AGENT-TEAMS.md for
enablement instructions.