Enabling Teams
Teams are a ClineCore feature. Enable them in the session config:How Teams Work
When teams are enabled, the coordinator agent gets additional tools:| Tool | Description |
|---|---|
team_spawn_teammate | Create a new agent with a specific role and task |
team_delegate_task | Assign a task to an existing teammate |
team_check_status | Check the status of delegated tasks |
team_get_result | Retrieve the result of a completed task |
Team Persistence
Team state persists across sessions:Via CLI
Sub-Agents vs Teams
The SDK offers two levels of multi-agent coordination:| Feature | Sub-Agents | Teams |
|---|---|---|
| Enable with | enableSpawnAgent: true | enableAgentTeams: true |
| Persistence | Within session only | Across sessions |
| Coordination | Parent-child | Peer-to-peer with task board |
| Shared state | None | Task board, mailbox, mission log |
| Best for | One-off delegation | Complex, multi-session projects |
When to Use Teams
Teams add overhead. Use them when:- The task naturally decomposes into independent subtasks
- Different subtasks benefit from different system prompts or specializations
- Work spans multiple sessions or days
- You want a persistent record of task delegation and completion

