claude-code-team 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/claude-code-team)
|
|
4
4
|
|
|
5
|
-
Orchestrate multiple Claude sessions
|
|
5
|
+
Orchestrate multiple Claude sessions with hierarchical team structure.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -31,22 +31,42 @@ claude --dangerously-skip-permissions
|
|
|
31
31
|
### Give orchestrator a task
|
|
32
32
|
|
|
33
33
|
```
|
|
34
|
-
>
|
|
34
|
+
> Analyze Smart Traffic market in Central Asia
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
## Hierarchy
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Orchestrator (you talk to this)
|
|
41
|
+
↓ creates & manages
|
|
42
|
+
Leads (Team Leads - coordinate domains)
|
|
43
|
+
↓ create & manage
|
|
44
|
+
Workers (Specialists - do actual work)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
| Level | Creates | Manages | Does Work |
|
|
48
|
+
|-------|---------|---------|-----------|
|
|
49
|
+
| Orchestrator | Leads | Leads | NO |
|
|
50
|
+
| Leads | Workers | Workers | NO |
|
|
51
|
+
| Workers | — | — | YES |
|
|
42
52
|
|
|
43
53
|
## Project Structure
|
|
44
54
|
|
|
45
55
|
After `cct init`:
|
|
46
56
|
```
|
|
47
57
|
my-project/
|
|
48
|
-
├── CLAUDE.md
|
|
49
|
-
|
|
58
|
+
├── CLAUDE.md # Orchestrator instructions
|
|
59
|
+
├── features/ # Capabilities catalog
|
|
60
|
+
│ ├── agents.md # Available agent roles
|
|
61
|
+
│ ├── skills.md # Available skills
|
|
62
|
+
│ ├── mcps.md # Available MCP tools
|
|
63
|
+
│ └── commands.md # Available commands
|
|
64
|
+
├── templates/
|
|
65
|
+
│ └── lead.md # Lead template (for orchestrator)
|
|
66
|
+
├── leads/ # Empty (leads created on demand)
|
|
67
|
+
├── .context/ # Shared project context
|
|
68
|
+
├── .outputs/ # Lead outputs
|
|
69
|
+
└── .sessions/ # Session IDs
|
|
50
70
|
```
|
|
51
71
|
|
|
52
72
|
After orchestrator runs:
|
|
@@ -54,23 +74,43 @@ After orchestrator runs:
|
|
|
54
74
|
my-project/
|
|
55
75
|
├── CLAUDE.md
|
|
56
76
|
├── features/
|
|
57
|
-
├──
|
|
58
|
-
├── .outputs/ # Worker results
|
|
77
|
+
├── templates/
|
|
59
78
|
├── .context/
|
|
60
|
-
│ └── project.md
|
|
61
|
-
├──
|
|
62
|
-
│
|
|
63
|
-
│
|
|
64
|
-
├──
|
|
65
|
-
|
|
79
|
+
│ └── project.md # Project context (written by orchestrator)
|
|
80
|
+
├── .sessions/
|
|
81
|
+
│ ├── orchestrator.id
|
|
82
|
+
│ └── ba_lead.id
|
|
83
|
+
├── .outputs/
|
|
84
|
+
│ ├── ba_analysis.md # Lead output
|
|
85
|
+
│ └── ba_lead.status # Completion signal
|
|
86
|
+
└── leads/
|
|
87
|
+
└── ba_lead/
|
|
88
|
+
├── CLAUDE.md # Lead instructions
|
|
89
|
+
├── .outputs/ # Worker outputs
|
|
90
|
+
│ ├── market.md
|
|
91
|
+
│ └── competitors.md
|
|
92
|
+
└── workers/
|
|
93
|
+
├── market_analyst/
|
|
94
|
+
│ └── CLAUDE.md
|
|
95
|
+
└── competitive_analyst/
|
|
96
|
+
└── CLAUDE.md
|
|
66
97
|
```
|
|
67
98
|
|
|
68
99
|
## How It Works
|
|
69
100
|
|
|
70
|
-
1. **
|
|
71
|
-
2. **Orchestrator**
|
|
72
|
-
3. **
|
|
73
|
-
4. **
|
|
101
|
+
1. **User** gives task to Orchestrator
|
|
102
|
+
2. **Orchestrator** writes `.context/project.md` and creates Leads
|
|
103
|
+
3. **Leads** create Workers from `features/` catalog
|
|
104
|
+
4. **Workers** execute tasks, write to Lead's `.outputs/`
|
|
105
|
+
5. **Leads** aggregate worker results, write to root `.outputs/`
|
|
106
|
+
6. **Orchestrator** reads Lead outputs, responds to User
|
|
107
|
+
|
|
108
|
+
## Workers vs Subagents
|
|
109
|
+
|
|
110
|
+
| Type | Command | Use When |
|
|
111
|
+
|------|---------|----------|
|
|
112
|
+
| Worker | `claude -p "TASK" &` | One-shot, no Q&A |
|
|
113
|
+
| Subagent | `claude --session-id $ID -p "TASK"` | Need iteration |
|
|
74
114
|
|
|
75
115
|
## License
|
|
76
116
|
|