the-grid-cc 1.7.26 → 1.7.27

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 CHANGED
@@ -57,15 +57,13 @@ npx the-grid-cc # Install (one command)
57
57
 
58
58
  You're building something complex in Claude Code. Your context window fills up. Claude starts forgetting your original goals. You lose the forest for the trees.
59
59
 
60
- **Sound familiar?**
61
-
62
60
  ## The Solution
63
61
 
64
62
  The Grid spawns fresh subagents for heavy work while keeping your main conversation focused on goals.
65
63
 
66
64
  ```
67
- YOU ←→ Master Control ←→ Worker Agents
68
-
65
+ YOU <-> Master Control <-> Worker Agents
66
+ |
69
67
  Your context stays clean (~15%)
70
68
  Workers get fresh 200k windows
71
69
  Master Control remembers your goals
@@ -76,57 +74,28 @@ YOU ←→ Master Control ←→ Worker Agents
76
74
 
77
75
  ---
78
76
 
79
- ## Your First Session
80
-
81
- Here's exactly what happens when you use The Grid for the first time:
77
+ ## Quick Start
82
78
 
83
79
  ```
84
- YOU: /grid
85
-
86
- GRID: THE GRID
87
- ════════
88
-
89
- Master Control online.
90
-
91
- What would you like to build?
92
-
93
- YOU: A REST API with user authentication
94
-
95
- GRID: How involved do you want to be?
96
-
97
- AUTOPILOT - I handle everything. Zero questions.
98
- GUIDED - I drive, ask only when essential.
99
- HANDS ON - We decide together.
80
+ > /grid
81
+ THE GRID
82
+ ========
83
+ Master Control online.
84
+ What would you like to build?
100
85
 
101
- YOU: autopilot
86
+ > build a mass rename cli tool
102
87
 
103
- GRID: Building...
104
- ├─ Analyzing requirements
105
- ├─ Spawning Planner → creating execution plan
106
- ├─ Spawning Executors → implementing code (parallel)
107
- │ ├─ executor-1: Setting up Express + TypeScript
108
- │ ├─ executor-2: Creating auth routes + JWT
109
- │ └─ executor-3: Writing tests
110
- ├─ Spawning Recognizer → verifying quality
111
- └─ Running Refinement Swarm
112
- ├─ Visual: checked all routes
113
- ├─ E2E: tested login/logout flows
114
- └─ Personas: simulated "new user" experience
88
+ [MC spawns Planner -> analyzes -> spawns Executor -> builds]
115
89
 
116
- BUILD COMPLETE
117
- ══════════════
90
+ - mass-rename-cli/ created
91
+ - 847 files renamed in test run
92
+ - Published to npm
118
93
 
119
- Project: auth-api
120
- Stack: Express + TypeScript + JWT + Prisma
121
- Files: 14 created
122
- Tests: 12 passing
123
-
124
- Ready to use. End of Line.
94
+ Total tokens: 12,847 (across 3 agents)
95
+ Your context: stayed at 15%
125
96
  ```
126
97
 
127
- **Time from `/grid` to working code: ~10-15 minutes** (depending on complexity)
128
-
129
- **Your context usage: ~15%** (workers did the heavy lifting)
98
+ **Time to working code: ~10-15 minutes** | **Your context usage: ~15%**
130
99
 
131
100
  ---
132
101
 
@@ -138,67 +107,49 @@ GRID: Building...
138
107
  | **GUIDED** | Answer rare questions | Drive + decide | Most projects |
139
108
  | **HANDS ON** | Make key decisions | Present options | Learning / control |
140
109
 
141
- ### AUTOPILOT
142
- Zero questions. You describe what you want, Grid figures out users, tech stack, architecture. You see finished code.
143
-
144
- ### GUIDED
145
- Grid drives but asks when genuinely ambiguous: "This could be a blog or a docs site - which?" Then builds.
146
-
147
- ### HANDS ON
148
- Collaborative. Grid proposes, you approve. More control, more questions.
110
+ **AUTOPILOT**: Zero questions. Describe what you want, see finished code.
111
+ **GUIDED**: Grid drives but asks when genuinely ambiguous.
112
+ **HANDS ON**: Collaborative. Grid proposes, you approve.
149
113
 
150
114
  ---
151
115
 
152
116
  ## How It Works
153
117
 
154
118
  ```
155
- ┌─────────────────────────────────────────────────────────────┐
156
- MASTER CONTROL
157
- Your single interface. Stays lean. Remembers goals.
158
- └─────────────────────────────────────────────────────────────┘
159
-
119
+ +-------------------------------------------------------------+
120
+ | MASTER CONTROL |
121
+ | Your single interface. Stays lean. Remembers goals. |
122
+ +-------------------------------------------------------------+
123
+ |
160
124
  Spawns specialized workers:
161
-
162
- ┌─────────────┬─────────────┬─────────────┬─────────────┐
163
- ↓ ↓ ↓ ↓ ↓
164
- PLANNER EXECUTOR RECOGNIZER VISUAL PERSONA
165
- Breaks down Writes code Verifies Checks UI Simulates
166
- the work + commits quality visually real users
125
+ |
126
+ +-----------+-----------+-----------+-----------+-----------+
127
+ | | | | | |
128
+ PLANNER EXECUTOR RECOGNIZER VISUAL PERSONA
129
+ Breaks down Writes code Verifies Checks UI Simulates
130
+ the work + commits quality visually real users
167
131
  ```
168
132
 
169
133
  **Workers = subagents with fresh context.** They do heavy lifting, report back, terminate. Your main conversation stays focused.
170
134
 
171
135
  ---
172
136
 
173
- ## Features
137
+ ## Prompt Upscaling
174
138
 
175
- ### Prompt Upscaling
139
+ Every request passes through the **Upscaler** first:
176
140
 
177
- Every mission passes through the **Upscaler** - a research-backed agent that transforms vague prompts into industry-grade specifications:
178
-
179
- - **Domain Detection**: Identifies software, science, business, healthcare, finance, legal contexts
180
- - **Best Practice Research**: Searches for current industry standards using Exa
181
- - **Constraint Decomposition**: Transforms vague requirements into explicit specifications
182
- - **Industry Injection**: Auto-adds domain-specific requirements (security for code, HIPAA for healthcare, etc.)
183
- - **Self-Refine Loop**: Scores and iteratively improves enhancement quality
184
-
185
- **Example:**
186
141
  ```
187
- Input: "build me a login page"
188
-
189
- Output: Secure authentication system with:
190
- - OWASP-compliant input validation
191
- - Rate limiting (5 attempts/15 min)
192
- - Argon2 password hashing
193
- - CSRF protection
194
- - Accessible (WCAG 2.1 AA)
195
- - Session security (httpOnly, secure, sameSite)
142
+ You say: "build me a login page"
143
+
144
+ Grid builds:
145
+ - OWASP-compliant input validation
146
+ - Rate limiting (5 attempts/15 min)
147
+ - Argon2 password hashing
148
+ - CSRF protection
149
+ - Accessible (WCAG 2.1 AA)
196
150
  ```
197
151
 
198
- Mode-aware behavior:
199
- - **AUTOPILOT**: Silent enhancement, proceeds immediately
200
- - **GUIDED**: Mostly silent, rare clarification if ambiguous
201
- - **HANDS ON**: Shows enhanced version for approval before proceeding
152
+ Researches best practices. Injects industry standards. You get expert-level specs from casual requests.
202
153
 
203
154
  ---
204
155
 
@@ -215,196 +166,77 @@ Mode-aware behavior:
215
166
 
216
167
  ---
217
168
 
218
- ## State Persistence
169
+ ## Speak Grid
219
170
 
220
- Grid saves state locally in `.grid/`:
171
+ | Grid Term | AI Translation |
172
+ |-----------|----------------|
173
+ | Program | Agent with a specific role |
174
+ | Identity Disc | System prompt defining behavior |
175
+ | Master Control | Orchestrator (only one who talks to you) |
176
+ | Spawning | Creating fresh agent instances |
177
+ | Derezzed | Agent completed and returned |
178
+ | Warmth | Context passed between agents |
179
+ | I/O Tower | Checkpoint requiring user input |
221
180
 
222
- ```
223
- .grid/
224
- ├── STATE.md # Current progress
225
- ├── LEARNINGS.md # Patterns from past projects
226
- ├── REFINEMENT_PLAN.md # Issues found during testing
227
- └── phases/ # Execution plans
228
- ```
229
-
230
- **Close your terminal. Come back tomorrow. Grid picks up where you left off.**
231
-
232
- > **Tip:** Add `.grid/` to your `.gitignore` - it's local working state, not project code.
181
+ *Programs serve Users. MC coordinates. The Grid connects all. The Tron metaphor maps perfectly to multi-agent AI architecture.*
233
182
 
234
183
  ---
235
184
 
236
185
  ## FAQ
237
186
 
238
187
  <details>
239
- <summary><strong>How much does this cost in API tokens?</strong></summary>
240
-
241
- Grid uses more API calls (multiple workers), but each call is *smaller* because contexts stay clean. In practice:
188
+ <summary><strong>How is this different from opening multiple Claude tabs?</strong></summary>
242
189
 
243
- - **Simple feature**: ~same tokens as manual Claude session
244
- - **Complex build**: Often *fewer* total tokens (no context bloat, no "remind me what we're building")
245
- - **Refinement Swarm**: Adds ~20-30% more tokens for visual/E2E/persona testing
246
-
247
- The Grid is free and open source. You pay normal Claude API costs.
190
+ Tabs share nothing. Grid agents share warmth - learnings, patterns, gotchas flow between them. Plus they run in parallel with fresh 200k context windows each.
248
191
  </details>
249
192
 
250
193
  <details>
251
- <summary><strong>What if something goes wrong?</strong></summary>
252
-
253
- **Worker fails mid-task:**
254
- - State is saved in `.grid/`
255
- - Run `/grid` again - it resumes from last checkpoint
256
- - Or delete `.grid/` to start fresh
194
+ <summary><strong>Does this cost more tokens?</strong></summary>
257
195
 
258
- **Worker makes a mistake:**
259
- - Recognizer catches most issues automatically
260
- - If something slips through, describe the problem and Grid spawns a fix
261
-
262
- **Grid gets confused:**
263
- - `/grid:status` shows current state
264
- - You can always override: "Stop. Let's do X instead."
265
-
266
- **Nuclear option:**
267
- - Delete `.grid/` folder
268
- - Start fresh with `/grid`
196
+ Yes, but you get more done. Parallel agents = parallel progress. Your main context stays lean while workers do heavy lifting. Complex builds often use *fewer* total tokens (no context bloat, no "remind me what we're building").
269
197
  </details>
270
198
 
271
199
  <details>
272
- <summary><strong>How is this different from just opening multiple Claude tabs?</strong></summary>
273
-
274
- You *could* manually manage multiple conversations, copy context between them, track what each is doing, merge their outputs...
275
-
276
- Grid does all that automatically:
277
- - Knows what context each worker needs
278
- - Tracks progress across workers
279
- - Merges results coherently
280
- - Maintains your original goals throughout
200
+ <summary><strong>What if something goes wrong?</strong></summary>
281
201
 
282
- It's the difference between being a CEO who delegates vs. a CEO who runs between desks doing everything.
202
+ State saves to `.grid/`. Run `/grid` again to resume. Delete `.grid/` to start fresh. `/grid:status` shows current state.
283
203
  </details>
284
204
 
285
205
  <details>
286
206
  <summary><strong>Does it work on Windows?</strong></summary>
287
207
 
288
- Yes, via WSL (Windows Subsystem for Linux). Native Windows support is untested but may work.
289
-
290
- Confirmed working:
291
- - macOS (Intel + Apple Silicon)
292
- - Linux (Ubuntu, Debian, Arch)
293
- - Windows + WSL2
208
+ Yes, via WSL. Confirmed: macOS (Intel + Apple Silicon), Linux, Windows + WSL2.
294
209
  </details>
295
210
 
296
211
  <details>
297
212
  <summary><strong>Can I use this with my existing Claude Code setup?</strong></summary>
298
213
 
299
- Yes. Grid adds commands (`/grid`, `/grid:refine`, etc.) but doesn't modify your existing prompts or workflows. Use it when you want orchestration, use normal Claude when you don't.
300
- </details>
301
-
302
- <details>
303
- <summary><strong>Why the TRON theme?</strong></summary>
304
-
305
- The metaphor fits: Master Control orchestrates, Programs execute tasks, Recognizers verify quality. Plus it's fun. You can ignore it entirely - the tool works the same regardless of theme.
214
+ Yes. Grid adds commands but doesn't modify your existing prompts or workflows.
306
215
  </details>
307
216
 
308
217
  <details>
309
218
  <summary><strong>What's the learning curve?</strong></summary>
310
219
 
311
- Minimal:
312
- 1. Install: `npx the-grid-cc` (30 seconds)
313
- 2. Start: `/grid` (instant)
314
- 3. Describe what you want (you already know how)
315
- 4. Pick a mode (AUTOPILOT if unsure)
316
-
317
- Most users are productive in their first session.
220
+ Install: 30 seconds. Start: `/grid`. Pick AUTOPILOT if unsure. Most users are productive in their first session.
318
221
  </details>
319
222
 
320
223
  ---
321
224
 
322
- ## The Language of The Grid
225
+ ## State Persistence
323
226
 
324
- The Grid speaks in Tron. Here's how modern AI concepts map to the Grid universe:
227
+ Grid saves state locally in `.grid/`:
325
228
 
326
229
  ```
327
- ┌─────────────────────────────────────────────────────────────────────────────┐
328
- │ TRON AI TERMINOLOGY │
329
- ├─────────────────────────────────────────────────────────────────────────────┤
330
- │ │
331
- │ THE GRID SPEAKS WHAT IT MEANS IN AI/LLM TERMS │
332
- │ ─────────────── ───────────────────────────── │
333
- │ │
334
- │ Program Agent / Subagent │
335
- │ An autonomous LLM instance with a specific │
336
- │ role and capabilities │
337
- │ │
338
- │ Identity Disc System Prompt │
339
- │ The instructions that define a Program's │
340
- │ identity, capabilities, and behavior │
341
- │ │
342
- │ Master Control (MC) Orchestrator Agent │
343
- │ The central coordinator that routes tasks │
344
- │ and spawns other Programs │
345
- │ │
346
- │ The Grid Multi-Agent System │
347
- │ The interconnected network of Programs │
348
- │ working together │
349
- │ │
350
- │ I/O Tower User Interface / Checkpoint │
351
- │ Where MC communicates with Users │
352
- │ (Programs never talk to Users directly) │
353
- │ │
354
- │ Derezzed Terminated / Completed │
355
- │ When a Program finishes and returns context │
356
- │ │
357
- │ Spawning Agent Instantiation │
358
- │ Creating a new Program with fresh context │
359
- │ │
360
- │ Warmth Transfer Context Passing │
361
- │ Learnings passed between Program generations │
362
- │ │
363
- │ Recognizer Verification Agent │
364
- │ Program that validates work meets goals │
365
- │ │
366
- │ Light Cycle Execution Thread │
367
- │ A Program's path through task completion │
368
- │ │
369
- │ End of Line Response Complete │
370
- │ Signals MC has finished speaking │
371
- │ │
372
- │ User You │
373
- │ The human. Programs serve Users. │
374
- │ │
375
- └─────────────────────────────────────────────────────────────────────────────┘
230
+ .grid/
231
+ ├── STATE.md # Current progress
232
+ ├── LEARNINGS.md # Patterns from past projects
233
+ ├── REFINEMENT_PLAN.md # Issues found during testing
234
+ └── phases/ # Execution plans
376
235
  ```
377
236
 
378
- ### Why Tron?
379
-
380
- The Grid isn't just aesthetic. The Tron metaphor maps perfectly to multi-agent AI:
381
-
382
- | Tron Concept | AI Reality | Why It Fits |
383
- |--------------|------------|-------------|
384
- | Programs have Discs | Agents have system prompts | Identity defines behavior |
385
- | Programs can be spawned | Agents get fresh context windows | Parallelism and isolation |
386
- | MC orchestrates | Orchestrator routes tasks | Central coordination |
387
- | Programs derez when done | Agents return and terminate | Resource management |
388
- | The Grid connects all | Multi-agent systems coordinate | Emergent capability |
389
-
390
- When you understand The Grid, you understand modern AI agent architecture.
391
-
392
- ---
393
-
394
- ## Quick Glossary
395
-
396
- | Grid Term | Plain English |
397
- |-----------|---------------|
398
- | Master Control | The orchestrating agent (your main conversation) |
399
- | Program | Worker agent (subagent doing a specific task) |
400
- | Identity Disc | System prompt (defines a Program's behavior) |
401
- | Upscaler | Prompt enhancement agent (transforms vague input into detailed specs) |
402
- | Recognizer | Quality checker (verifies work meets goals) |
403
- | Refinement Swarm | Testing suite (visual, E2E, persona simulation) |
404
- | Warmth | Context/learnings passed between Programs |
405
- | Derez | Terminate (when a Program completes its task) |
237
+ **Close your terminal. Come back tomorrow. Grid picks up where you left off.**
406
238
 
407
- You don't need to memorize these. Grid explains what it's doing as it works.
239
+ > **Tip:** Add `.grid/` to your `.gitignore` - it's local working state, not project code.
408
240
 
409
241
  ---
410
242
 
@@ -418,7 +250,7 @@ Issues and PRs welcome at [github.com/JamesWeatherhead/grid](https://github.com/
418
250
 
419
251
  ## Citation
420
252
 
421
- If you use The Grid in academic research or publications, please cite it as follows:
253
+ If you use The Grid in academic research or publications:
422
254
 
423
255
  ### BibTeX
424
256
 
@@ -433,13 +265,6 @@ If you use The Grid in academic research or publications, please cite it as foll
433
265
  }
434
266
  ```
435
267
 
436
- ### Text Citation
437
-
438
- ```
439
- Weatherhead, J. (2026). The Grid: Multi-Agent Orchestration Framework for Claude Code.
440
- GitHub. https://github.com/JamesWeatherhead/grid
441
- ```
442
-
443
268
  ---
444
269
 
445
270
  ## License
@@ -1 +1 @@
1
- 1.7.26
1
+ 1.7.27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "the-grid-cc",
3
- "version": "1.7.26",
3
+ "version": "1.7.27",
4
4
  "description": "Agent orchestration for Claude Code. You talk to Master Control. Master Control handles the rest.",
5
5
  "main": "index.js",
6
6
  "bin": {