Team

CK-native orchestration engine (v2.1.0) that spawns independent Claude Code sessions as teammates, each with their own context window, task ownership, and cross-session memory.

What This Skill Does

Agent Teams lets you run multiple Claude Code instances in parallel—each tackling a different workstream simultaneously. Teammates share a task list and communicate via messaging. Unlike subagents (fire-and-forget), teammates are persistent, event-driven, and capable of discussion.

Templates auto-execute on spawn (v2.1.0 change—was manual in v1.x).

Templates

TemplateTeammatesBest ForToken Budget
research2-4 researchersCompetitive analysis, multi-source investigation150-300K (haiku)
cook1 lead + N devsParallel feature implementation400-800K (sonnet+haiku)
review2-3 reviewersCode quality, security, performance audits100-200K (haiku)
debug3 debuggers (default)Root cause analysis via competing hypotheses200-400K (sonnet)

Usage

/ck:team <template> <context> [flags]

Flags:

  • --devs N — number of developer teammates
  • --researchers N — number of researcher teammates
  • --reviewers N — number of reviewer teammates
  • --debuggers N — number of debugger teammates
  • --plan-approval — require lead approval before implementation starts
  • --delegate — lead only coordinates, never touches code directly

Examples:

  • /ck:team cook "implement auth + notifications + dashboard" --devs 3
  • /ck:team research "compare React state management options" --researchers 2
  • /ck:team review --reviewers 2
  • /ck:team debug "race condition in payment flow" --plan-approval

Requirements

Agent Teams must be enabled in your Claude Code environment:

# Claude Code < 2.1.33 (use env var)
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 claude

# Claude Code >= 2.1.33 (enabled by default)

Event-Driven Monitoring

Teams fire hooks you can observe:

EventWhenUse For
TaskCompletedTeammate finishes a taskProgress tracking, triggering dependents
TeammateIdleTeammate has no pending tasksReassign work, wind down

Agent Memory

Teammates persist knowledge across sessions via .claude/agent-memory/<name>/. Each teammate maintains:

  • Previous context and findings
  • Decisions made
  • Files owned

Memory is teammate-scoped—not shared between teammates unless explicitly passed.

When to Use vs Subagents

SituationAgent TeamsSubagents
3+ independent parallel workstreamsYesNo
Workers need to discuss findingsYesNo
Competing hypotheses to evaluateYesNo
Cross-layer work (API + UI + DB)YesYes
Single focused taskNoYes
Sequential chain (A then B then C)NoYes
Tight token budgetNoYes

Display Modes

Teams render based on your terminal:

  • auto — detects best mode for your environment
  • in-process — inline output (navigate with Shift+Up/Down)
  • tmux — split-pane view per teammate
  • split — separate terminal windows

Error Recovery

If a teammate crashes or goes idle unexpectedly:

  1. Check TaskList for orphaned in-progress tasks
  2. Reassign via TaskUpdate to another teammate or claim yourself
  3. Teammate agent memory preserves context for handoff
  • Cook — implementation engine used by cook teams
  • Planning — create plans before delegating to teams