Claude Code Team - orchestrate multiple Claude sessions
npm install claude-code-team
Orchestrate multiple Claude sessions with hierarchical team structure.
Руководство на русском (GUIDE.md) — установка, примеры, troubleshooting.
``bash`
npm install -g claude-code-team
`bash`
cct init my-project
cd my-project
claude --dangerously-skip-permissions
`bash`
cd existing-project
cct init .
claude --dangerously-skip-permissions
``
> Analyze Smart Traffic market in Central Asia
``
Orchestrator (you talk to this)
↓ creates & manages
Leads (Team Leads - coordinate domains)
↓ create & manage
Workers (Specialists - do actual work)
| Level | Creates | Manages | Does Work |
|-------|---------|---------|-----------|
| Orchestrator | Leads | Leads | NO |
| Leads | Workers | Workers | NO |
| Workers | — | — | YES |
After cct init:``
my-project/
├── CLAUDE.md # Orchestrator instructions
├── features/ # Capabilities catalog
│ ├── agents.md # Available agent roles
│ ├── skills.md # Available skills
│ ├── mcps.md # Available MCP tools
│ └── commands.md # Available commands
├── templates/
│ └── lead.md # Lead template (for orchestrator)
├── leads/ # Empty (leads created on demand)
├── .context/ # Shared project context
├── .outputs/ # Lead outputs
└── .sessions/ # Session IDs
After orchestrator runs:
``
my-project/
├── CLAUDE.md
├── features/
├── templates/
├── .context/
│ └── project.md # Project context (written by orchestrator)
├── .sessions/
│ ├── orchestrator.id
│ └── ba_lead.id
├── .outputs/
│ ├── ba_analysis.md # Lead output
│ └── ba_lead.status # Completion signal
└── leads/
└── ba_lead/
├── CLAUDE.md # Lead instructions
├── .outputs/ # Worker outputs
│ ├── market.md
│ └── competitors.md
└── workers/
├── market_analyst/
│ └── CLAUDE.md
└── competitive_analyst/
└── CLAUDE.md
1. User gives task to Orchestrator
2. Orchestrator writes .context/project.md and creates Leadsfeatures/
3. Leads create Workers from catalog.outputs/
4. Workers execute tasks, write to Lead's .outputs/
5. Leads aggregate worker results, write to root
6. Orchestrator reads Lead outputs, responds to User
CCT organizes work through phases. Each phase creates a specialized Lead.
| Phase | Command | Lead | Output |
|-------|---------|------|--------|
| Discovery | /cct.discover | BA Lead | .outputs/discovery.md |/cct.design
| Design | | Design Lead | .outputs/design.md |/cct.spec
| Specification | | Spec Lead | .outputs/spec.md |/cct.architect
| Architecture | | Architect Lead | .outputs/architecture.md |/cct.implement
| Implementation | | Dev Lead | code in repo |/cct.test
| Testing | | QA Lead | .outputs/test-plan.md |/cct.docs
| Documentation | | Docs Lead | docs/ folder |/cct.review
| Review | | Review Lead | .outputs/review- |/cct.brainstorm
| Brainstorm | | Brainstorm Lead | .outputs/brainstorm.md |
Not all phases required. User chooses what's needed:
- Bug fix: only /cct.implement/cct.spec
- New feature: → /cct.architect → /cct.implement
- New product: all phases
Review command — validates phase output before proceeding:
`bash`
/cct.review # Auto-selects reviewers based on last phase
/cct.review --with=Security # Add extra reviewer
Brainstorm command — parallel exploration with specified roles:
`bash`
/cct.brainstorm "auth system" --roles=BA,Architect,Security
`bash1. Start orchestrator
cd my-project
claude --dangerously-skip-permissions
With brainstorm:
`bash
Explore options before committing to approach
> /cct.brainstorm "authentication" --roles=BA,Architect,Security
→ Parallel exploration, aggregated to .outputs/brainstorm.md
> cat .outputs/brainstorm.md
Then proceed with /cct.spec
`$3
1. Delegation over doing — Orchestrator and Leads delegate, only Workers produce output
2. Isolation — Each agent has own context, doesn't interfere with others
3. Transparency — All results in
.outputs/, review between phases
4. User control — User decides which phases and when to proceedSession Types
| Type | How Created | By Whom |
|------|-------------|---------|
| User session |
claude (interactive) | Human |
| CCT session | claude --session-id $ID -p "TASK" | Orchestrator/Lead |- Orchestrator runs in user session (you talk to it)
- Leads and Workers run as CCT sessions (created programmatically)
- CCT sessions can be resumed with
-r $ID` for Q&AMIT