/teammates:spawn <name> <agent-type-id> [--description="<short desc>"]from teammates
Spawn a teammate on the active team from an installed agent type.
Ships in teammates. Installing the plugin adds it to Claude Code.
Deferred tool schemas must be loaded before use. Call:
ToolSearch(query="select:Agent,SendMessage", max_results=2)
If the call fails or does not return schemas for both Agent and
SendMessage, abort with the message
"teammate mode unavailable in this harness".
From $ARGUMENTS extract:
$name — REQUIRED teammate slug. Validate against
^[a-z][a-z0-9-]{1,39}$. Reject if invalid.$agent_type — REQUIRED. The id to pass as subagent_type to the
Agent tool (e.g. general-purpose, code-reviewer, any harness- or
plugin-installed agent).--description="..." — OPTIONAL short description. Store in
$description. If missing, default to
"teammate spawned from agent type $agent_type".Unlike /create-teammate, this command does NOT produce an agent
definition file on disk. The teammate's behavior comes from the
installed agent type.
./.claudius/teammates/team.json. If missing or empty, abort
with "no active team; run /team-create first".$team = team.name and $teammates = teammates[].name == $name, suggest $name-2
(then -3, etc.) and abort so the user can re-run with the free
name.Call Agent with the requested subtype and the teammate identity. The teammate must be told up front to follow the envelope-v1 contract:
Agent(
subagent_type="$agent_type",
name="$name",
team_name="$team",
prompt="You are teammate $name on team $team, instantiated from agent type $agent_type. Follow teammates:teammate-conventions envelope-v1 for all inter-teammate messages. Wait for an envelope-v1 message before acting."
)
Append to team.json#teammates:
{
"name": "$name",
"agent_file": null,
"spawn_source": "agent-type:$agent_type",
"spawned_at": "<ISO-8601 UTC now>",
"status": "idle",
"last_message_ts": null
}
Notes:
agent_file is null for spawn-from-type teammates. There is no
generated file under ./.claudius/teammates/agents/ for them./save-state MUST record spawn_source so restore can re-spawn the
teammate via the original agent type.Write atomically: serialize to ./.claudius/teammates/team.json.tmp
and rename over team.json. Preserve schema_version and existing
teammates.
Emit a short success block:
## Teammate Spawned
- **Name**: $name
- **Team**: $team
- **Agent Type**: $agent_type
- **Status**: idle
### Next Steps
Send the teammate its first task:
`/send-message $name "<envelope-v1 body>"`
Envelope and status formats are defined by the
teammates:teammate-conventions skill; reference it rather than
duplicating the shapes here.
What the command file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each command page
21 commands in this plugin
/broadcastPhase 1 — Load toolsSend the same message to every teammate on the active team; report per-recipient results./config-teamPhase 1 — Parse argsInspect or update teammates-plugin project config (gitignore, team.json defaults)./create-teamPhase 1 — Load toolsCreate a new teammate team, optionally bootstrapped from a preset./create-teammatePhase 1 — Load toolsGenerate a new teammate agent file (with baked-in conventions) and spawn it on the active team./find-bottleneckPhase 1 — Load dataIdentify teammates blocking team progress by age of blocked/long-running/error status./inspectPhase 1 — PreflightShow a teammate's latest status, last messages, and agent-file metadata.npx claudepluginhub jaodsilv/claudius --plugin teammatesOther plugins' commands for the same job