the-grid-cc 1.7.35 → 1.7.37
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 +91 -129
- package/agents/grid-phase-coordinator.md +1398 -0
- package/commands/grid/VERSION +1 -1
- package/commands/grid/mc-v1-backup.md +2166 -0
- package/commands/grid/mc-v2.md +1228 -0
- package/commands/grid/mc.md +852 -1790
- package/docs/GRID_BLACKBOARD_SPEC.md +1287 -0
- package/docs/GRID_BLUEPRINT_GENERATOR.md +514 -0
- package/docs/GRID_BLUEPRINT_SPEC.md +1372 -0
- package/docs/GRID_DAG_EXECUTION_SPEC.md +1377 -0
- package/docs/GRID_DAG_PLAN_FORMAT.md +657 -0
- package/docs/GRID_EVENT_BUS_SPEC.md +1399 -0
- package/docs/GRID_EVENT_PROTOCOL.md +904 -0
- package/docs/GRID_MC_V2_SPEC.md +782 -0
- package/docs/GRID_SCRATCHPAD_PROTOCOL.md +1659 -0
- package/docs/GRID_STATE_SCHEMA.md +1067 -0
- package/package.json +1 -1
- package/tools/generate_blueprint.py +800 -0
package/README.md
CHANGED
|
@@ -1,60 +1,44 @@
|
|
|
1
1
|
<h1 align="center">THE GRID</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
|
|
4
|
+
<strong>Ship faster. Stay sane.</strong><br>
|
|
5
|
+
<em>"I fight for the Users."</em>
|
|
5
6
|
</p>
|
|
6
7
|
|
|
7
8
|
<p align="center">
|
|
8
|
-
|
|
9
|
+
<a href="https://www.npmjs.com/package/the-grid-cc"><img src="https://img.shields.io/npm/v/the-grid-cc?style=for-the-badge&logo=npm&logoColor=white&color=CB3837" alt="npm version"/></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/the-grid-cc"><img src="https://img.shields.io/npm/dm/the-grid-cc?style=for-the-badge&color=blue" alt="npm downloads"/></a>
|
|
11
|
+
<a href="https://github.com/JamesWeatherhead/grid/stargazers"><img src="https://img.shields.io/github/stars/JamesWeatherhead/grid?style=for-the-badge&color=yellow" alt="GitHub stars"/></a>
|
|
12
|
+
<a href="https://github.com/JamesWeatherhead/grid/blob/main/LICENSE"><img src="https://img.shields.io/badge/LICENSE-MIT-cyan.svg?style=for-the-badge" alt="MIT License"/></a>
|
|
9
13
|
</p>
|
|
10
14
|
|
|
11
|
-
<
|
|
12
|
-
<a href="https://www.npmjs.com/package/the-grid-cc">
|
|
13
|
-
<img src="https://img.shields.io/npm/v/the-grid-cc?style=for-the-badge&logo=npm&logoColor=white&color=CB3837" alt="npm version"/>
|
|
14
|
-
</a>
|
|
15
|
-
<a href="https://www.npmjs.com/package/the-grid-cc">
|
|
16
|
-
<img src="https://img.shields.io/npm/dm/the-grid-cc?style=for-the-badge&color=blue" alt="npm downloads"/>
|
|
17
|
-
</a>
|
|
18
|
-
<a href="https://github.com/JamesWeatherhead/grid/stargazers">
|
|
19
|
-
<img src="https://img.shields.io/github/stars/JamesWeatherhead/grid?style=for-the-badge&color=yellow" alt="GitHub stars"/>
|
|
20
|
-
</a>
|
|
21
|
-
</p>
|
|
15
|
+
<br>
|
|
22
16
|
|
|
23
17
|
<p align="center">
|
|
24
|
-
|
|
25
|
-
<img src="https://img.shields.io/badge/LICENSE-MIT-cyan.svg?style=for-the-badge" alt="MIT License"/>
|
|
26
|
-
</a>
|
|
18
|
+
<img src="assets/install-demo.png" alt="The Grid Installation" width="700"/>
|
|
27
19
|
</p>
|
|
28
20
|
|
|
29
21
|
<br>
|
|
30
22
|
|
|
31
|
-
|
|
23
|
+
## Install
|
|
32
24
|
|
|
33
25
|
```bash
|
|
34
|
-
npx the-grid-cc
|
|
35
|
-
/grid # Use in Claude Code
|
|
26
|
+
npx the-grid-cc
|
|
36
27
|
```
|
|
37
28
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<p align="center">
|
|
41
|
-
<strong>That's it. Works on Mac, Windows, and Linux.</strong>
|
|
42
|
-
</p>
|
|
29
|
+
Then in Claude Code:
|
|
43
30
|
|
|
44
|
-
|
|
31
|
+
```
|
|
32
|
+
/grid
|
|
33
|
+
```
|
|
45
34
|
|
|
46
|
-
|
|
47
|
-
<img src="assets/install-demo.png" alt="The Grid Installation" width="700"/>
|
|
48
|
-
</p>
|
|
35
|
+
Works on Mac, Windows (WSL), and Linux.
|
|
49
36
|
|
|
50
37
|
---
|
|
51
38
|
|
|
52
39
|
## The Problem
|
|
53
40
|
|
|
54
|
-
You're building something in Claude Code.
|
|
55
|
-
Sessions get long. Context fills up.
|
|
56
|
-
Claude forgets what you're building.
|
|
57
|
-
Quality degrades. Frustration builds.
|
|
41
|
+
You're building something in Claude Code. Sessions get long. Context fills up. Claude forgets what you're building. Quality degrades. Frustration builds.
|
|
58
42
|
|
|
59
43
|
**Sound familiar?**
|
|
60
44
|
|
|
@@ -62,48 +46,28 @@ Quality degrades. Frustration builds.
|
|
|
62
46
|
|
|
63
47
|
## The Solution
|
|
64
48
|
|
|
65
|
-
The Grid spawns fresh subagents for heavy work while keeping your main conversation focused
|
|
49
|
+
The Grid spawns fresh subagents for heavy work while keeping your main conversation focused.
|
|
66
50
|
|
|
67
51
|
```
|
|
68
|
-
YOU
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
52
|
+
YOU ←→ Master Control ←→ Worker Agents
|
|
53
|
+
│
|
|
54
|
+
Your context stays clean (~15%)
|
|
55
|
+
Workers get fresh 200k windows
|
|
56
|
+
Master Control remembers your goals
|
|
73
57
|
```
|
|
74
58
|
|
|
75
|
-
**Without Grid
|
|
76
|
-
**With Grid
|
|
59
|
+
**Without Grid:** One exhausted conversation doing everything.<br>
|
|
60
|
+
**With Grid:** Focused orchestrator delegating to specialized workers.
|
|
77
61
|
|
|
78
62
|
---
|
|
79
63
|
|
|
80
64
|
## The CUDA Parallel
|
|
81
65
|
|
|
82
|
-
> **CUDA
|
|
66
|
+
> **CUDA:** "Write your code. We figure out how to parallelize across 10,000 cores."
|
|
83
67
|
>
|
|
84
|
-
> **Grid
|
|
85
|
-
|
|
86
|
-
The user shouldn't think about agents AT ALL. They're an implementation detail. Like GPU threads.
|
|
87
|
-
|
|
88
|
-
---
|
|
68
|
+
> **Grid:** "Describe your goal. We figure out how to orchestrate across agents."
|
|
89
69
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
No sprint planning. No story points. No stakeholder syncs. No Jira.
|
|
93
|
-
|
|
94
|
-
Just you, Claude, and code that ships.
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## Beyond Code Generation
|
|
99
|
-
|
|
100
|
-
Other tools stop at code. The Grid goes further:
|
|
101
|
-
|
|
102
|
-
**Visual Inspector** - Screenshots your app, catches visual bugs
|
|
103
|
-
**E2E Exerciser** - Clicks everything like a real user
|
|
104
|
-
**Persona Simulator** - Reviews from your target users' POV
|
|
105
|
-
|
|
106
|
-
Run `/grid:refine` after building. Catch issues before users do.
|
|
70
|
+
Users shouldn't think about agents at all. They're an implementation detail—like GPU threads.
|
|
107
71
|
|
|
108
72
|
---
|
|
109
73
|
|
|
@@ -111,6 +75,7 @@ Run `/grid:refine` after building. Catch issues before users do.
|
|
|
111
75
|
|
|
112
76
|
```
|
|
113
77
|
> /grid
|
|
78
|
+
|
|
114
79
|
THE GRID
|
|
115
80
|
========
|
|
116
81
|
Master Control online.
|
|
@@ -118,86 +83,86 @@ What would you like to build?
|
|
|
118
83
|
|
|
119
84
|
> build a mass rename cli tool
|
|
120
85
|
|
|
121
|
-
[MC spawns Planner
|
|
86
|
+
[MC spawns Planner → analyzes → spawns Executor → builds]
|
|
122
87
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
88
|
+
✓ mass-rename-cli/ created
|
|
89
|
+
✓ 847 files renamed in test run
|
|
90
|
+
✓ Published to npm
|
|
126
91
|
|
|
127
92
|
Total tokens: 12,847 (across 3 agents)
|
|
128
93
|
Your context: stayed at 15%
|
|
129
94
|
```
|
|
130
95
|
|
|
131
|
-
**Time to working code: ~10-15 minutes** | **Your context usage: ~15%**
|
|
132
|
-
|
|
133
96
|
---
|
|
134
97
|
|
|
135
98
|
## Three Modes
|
|
136
99
|
|
|
137
100
|
| Mode | You Do | Grid Does | Best For |
|
|
138
|
-
|
|
101
|
+
|:-----|:-------|:----------|:---------|
|
|
139
102
|
| **AUTOPILOT** | Describe goal | Everything else | "Just build it" |
|
|
140
103
|
| **GUIDED** | Answer rare questions | Drive + decide | Most projects |
|
|
141
104
|
| **HANDS ON** | Make key decisions | Present options | Learning / control |
|
|
142
105
|
|
|
143
|
-
**AUTOPILOT**: Zero questions. Describe what you want, see finished code.
|
|
144
|
-
**GUIDED**: Grid drives but asks when genuinely ambiguous.
|
|
145
|
-
**HANDS ON**: Collaborative. Grid proposes, you approve.
|
|
146
|
-
|
|
147
106
|
---
|
|
148
107
|
|
|
149
108
|
## How It Works
|
|
150
109
|
|
|
151
110
|
```
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
111
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
112
|
+
│ MASTER CONTROL │
|
|
113
|
+
│ Your single interface. Stays lean. Remembers goals. │
|
|
114
|
+
└─────────────────────────────────────────────────────────────┘
|
|
115
|
+
│
|
|
157
116
|
Spawns specialized workers:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
117
|
+
│
|
|
118
|
+
┌───────────┬───────────┬───────────┬───────────┬───────────┐
|
|
119
|
+
│ │ │ │ │ │
|
|
161
120
|
PLANNER EXECUTOR RECOGNIZER VISUAL PERSONA
|
|
162
121
|
Breaks down Writes code Verifies Checks UI Simulates
|
|
163
122
|
the work + commits quality visually real users
|
|
164
123
|
```
|
|
165
124
|
|
|
166
|
-
|
|
125
|
+
Workers are subagents with fresh context. They do heavy lifting, report back, terminate. Your main conversation stays focused.
|
|
167
126
|
|
|
168
127
|
---
|
|
169
128
|
|
|
170
129
|
## Prompt Upscaling
|
|
171
130
|
|
|
172
|
-
Every request passes through the
|
|
131
|
+
Every request passes through the Upscaler:
|
|
173
132
|
|
|
174
133
|
```
|
|
175
134
|
You say: "build me a login page"
|
|
176
135
|
|
|
177
136
|
Grid builds:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
137
|
+
✓ OWASP-compliant input validation
|
|
138
|
+
✓ Rate limiting (5 attempts/15 min)
|
|
139
|
+
✓ Argon2 password hashing
|
|
140
|
+
✓ CSRF protection
|
|
141
|
+
✓ Accessible (WCAG 2.1 AA)
|
|
183
142
|
```
|
|
184
143
|
|
|
185
|
-
|
|
144
|
+
Research best practices. Inject industry standards. Get expert-level specs from casual requests.
|
|
186
145
|
|
|
187
146
|
---
|
|
188
147
|
|
|
189
|
-
##
|
|
148
|
+
## Beyond Code Generation
|
|
149
|
+
|
|
150
|
+
Other tools stop at code. The Grid goes further:
|
|
190
151
|
|
|
191
|
-
|
|
152
|
+
| Agent | Purpose |
|
|
153
|
+
|:------|:--------|
|
|
154
|
+
| **Visual Inspector** | Screenshots your app, catches visual bugs |
|
|
155
|
+
| **E2E Exerciser** | Clicks everything like a real user |
|
|
156
|
+
| **Persona Simulator** | Reviews from your target users' POV |
|
|
192
157
|
|
|
193
|
-
|
|
158
|
+
Run `/grid:refine` after building. Catch issues before users do.
|
|
194
159
|
|
|
195
160
|
---
|
|
196
161
|
|
|
197
162
|
## Commands
|
|
198
163
|
|
|
199
164
|
| Command | What It Does |
|
|
200
|
-
|
|
165
|
+
|:--------|:-------------|
|
|
201
166
|
| `/grid` | Start The Grid |
|
|
202
167
|
| `/grid:refine` | Test your app (visual + E2E + personas) |
|
|
203
168
|
| `/grid:debug` | Systematic bug investigation |
|
|
@@ -209,8 +174,8 @@ Researches best practices. Injects industry standards. You get expert-level spec
|
|
|
209
174
|
|
|
210
175
|
## Speak Grid
|
|
211
176
|
|
|
212
|
-
| Grid Term |
|
|
213
|
-
|
|
177
|
+
| Grid Term | Meaning |
|
|
178
|
+
|:----------|:--------|
|
|
214
179
|
| Program | Agent with a specific role |
|
|
215
180
|
| Identity Disc | System prompt defining behavior |
|
|
216
181
|
| Master Control | Orchestrator (only one who talks to you) |
|
|
@@ -219,7 +184,7 @@ Researches best practices. Injects industry standards. You get expert-level spec
|
|
|
219
184
|
| Warmth | Context passed between agents |
|
|
220
185
|
| I/O Tower | Checkpoint requiring user input |
|
|
221
186
|
|
|
222
|
-
*
|
|
187
|
+
*The Tron metaphor maps perfectly to multi-agent AI architecture.*
|
|
223
188
|
|
|
224
189
|
---
|
|
225
190
|
|
|
@@ -227,38 +192,32 @@ Researches best practices. Injects industry standards. You get expert-level spec
|
|
|
227
192
|
|
|
228
193
|
<details>
|
|
229
194
|
<summary><strong>How is this different from opening multiple Claude tabs?</strong></summary>
|
|
230
|
-
|
|
231
|
-
Tabs share nothing. Grid agents share warmth
|
|
195
|
+
<br>
|
|
196
|
+
Tabs share nothing. Grid agents share warmth—learnings, patterns, gotchas flow between them. Plus they run in parallel with fresh 200k context windows each.
|
|
232
197
|
</details>
|
|
233
198
|
|
|
234
199
|
<details>
|
|
235
200
|
<summary><strong>Does this cost more tokens?</strong></summary>
|
|
236
|
-
|
|
237
|
-
Yes, but you get more done. Parallel agents = parallel progress. Your main context stays lean while workers do heavy lifting. Complex builds often use
|
|
201
|
+
<br>
|
|
202
|
+
Yes, but you get more done. Parallel agents = parallel progress. Your main context stays lean while workers do heavy lifting. Complex builds often use <em>fewer</em> total tokens because there's no context bloat.
|
|
238
203
|
</details>
|
|
239
204
|
|
|
240
205
|
<details>
|
|
241
206
|
<summary><strong>What if something goes wrong?</strong></summary>
|
|
242
|
-
|
|
243
|
-
State saves to
|
|
207
|
+
<br>
|
|
208
|
+
State saves to <code>.grid/</code>. Run <code>/grid</code> again to resume. Delete <code>.grid/</code> to start fresh.
|
|
244
209
|
</details>
|
|
245
210
|
|
|
246
211
|
<details>
|
|
247
212
|
<summary><strong>Does it work on Windows?</strong></summary>
|
|
248
|
-
|
|
213
|
+
<br>
|
|
249
214
|
Yes, via WSL. Confirmed: macOS (Intel + Apple Silicon), Linux, Windows + WSL2.
|
|
250
215
|
</details>
|
|
251
216
|
|
|
252
|
-
<details>
|
|
253
|
-
<summary><strong>Can I use this with my existing Claude Code setup?</strong></summary>
|
|
254
|
-
|
|
255
|
-
Yes. Grid adds commands but doesn't modify your existing prompts or workflows.
|
|
256
|
-
</details>
|
|
257
|
-
|
|
258
217
|
<details>
|
|
259
218
|
<summary><strong>What's the learning curve?</strong></summary>
|
|
260
|
-
|
|
261
|
-
Install: 30 seconds. Start:
|
|
219
|
+
<br>
|
|
220
|
+
Install: 30 seconds. Start: <code>/grid</code>. Pick AUTOPILOT if unsure. Most users are productive in their first session.
|
|
262
221
|
</details>
|
|
263
222
|
|
|
264
223
|
---
|
|
@@ -275,9 +234,17 @@ Grid saves state locally in `.grid/`:
|
|
|
275
234
|
└── phases/ # Execution plans
|
|
276
235
|
```
|
|
277
236
|
|
|
278
|
-
|
|
237
|
+
Close your terminal. Come back tomorrow. Grid picks up where you left off.
|
|
238
|
+
|
|
239
|
+
Add `.grid/` to your `.gitignore`—it's local working state, not project code.
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## No Ceremony
|
|
244
|
+
|
|
245
|
+
No sprint planning. No story points. No stakeholder syncs. No Jira.
|
|
279
246
|
|
|
280
|
-
|
|
247
|
+
Just you, Claude, and code that ships.
|
|
281
248
|
|
|
282
249
|
---
|
|
283
250
|
|
|
@@ -291,14 +258,10 @@ Issues and PRs welcome at [github.com/JamesWeatherhead/grid](https://github.com/
|
|
|
291
258
|
|
|
292
259
|
## Citation
|
|
293
260
|
|
|
294
|
-
If you use The Grid in academic research or publications:
|
|
295
|
-
|
|
296
|
-
### BibTeX
|
|
297
|
-
|
|
298
261
|
```bibtex
|
|
299
262
|
@software{weatherhead2026grid,
|
|
300
263
|
author = {Weatherhead, James},
|
|
301
|
-
title = {{The Grid}: Multi-Agent Orchestration
|
|
264
|
+
title = {{The Grid}: Multi-Agent Orchestration for Claude Code},
|
|
302
265
|
year = {2026},
|
|
303
266
|
publisher = {GitHub},
|
|
304
267
|
url = {https://github.com/JamesWeatherhead/grid},
|
|
@@ -314,20 +277,19 @@ MIT License. See [LICENSE](LICENSE) for details.
|
|
|
314
277
|
|
|
315
278
|
---
|
|
316
279
|
|
|
317
|
-
|
|
318
|
-
|
|
280
|
+
<p align="center">
|
|
319
281
|
<a href="https://star-history.com/#JamesWeatherhead/grid&Date">
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
282
|
+
<picture>
|
|
283
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=JamesWeatherhead/grid&type=Date&theme=dark" />
|
|
284
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=JamesWeatherhead/grid&type=Date" />
|
|
285
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=JamesWeatherhead/grid&type=Date" width="600" />
|
|
286
|
+
</picture>
|
|
325
287
|
</a>
|
|
288
|
+
</p>
|
|
326
289
|
|
|
327
290
|
---
|
|
328
291
|
|
|
329
292
|
<p align="center">
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
<sub>End of Line.</sub>
|
|
293
|
+
<strong>"I fight for the Users."</strong><br>
|
|
294
|
+
<sub>End of Line.</sub>
|
|
333
295
|
</p>
|