the-grid-cc 1.5.0 → 1.6.0

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.
@@ -1,325 +0,0 @@
1
- ---
2
- cluster: james-weatherhead-blog
3
- block: 06
4
- type: execute
5
- wave: 4
6
- depends_on: [02, 04, 05]
7
- files_modified: [.gitignore, README.md, vercel.json]
8
- autonomous: false
9
-
10
- must_haves:
11
- truths:
12
- - "Project builds successfully for production"
13
- - "All pages render without errors"
14
- - "Vercel configuration is deployment-ready"
15
- artifacts:
16
- - path: "README.md"
17
- provides: "Project documentation for setup and deployment"
18
- min_lines: 30
19
- - path: ".gitignore"
20
- provides: "Git ignore rules for build artifacts and secrets"
21
- min_lines: 10
22
- - path: "vercel.json"
23
- provides: "Vercel deployment configuration"
24
- min_lines: 5
25
- key_links:
26
- - from: "vercel.json"
27
- to: "astro.config.mjs"
28
- via: "framework detection"
29
- pattern: "astro"
30
- ---
31
-
32
- <objective>
33
- Finalize project for production deployment - verification, documentation, and deployment configuration.
34
-
35
- Purpose: Ensure blog is production-ready with comprehensive documentation and verified build.
36
- Output: Deployment-ready blog with README, verified build, and Vercel config.
37
- </objective>
38
-
39
- <context>
40
- All feature blocks completed:
41
- - Block 01: Project initialization ✓
42
- - Block 02: Layout system with dark mode ✓
43
- - Block 03: Content collection and blog posts ✓
44
- - Block 04: Static pages and tag filtering ✓
45
- - Block 05: RSS feed ✓
46
-
47
- This final block:
48
- 1. Verifies entire site builds without errors
49
- 2. Creates comprehensive README for users/developers
50
- 3. Confirms Vercel configuration from Block 01
51
- 4. Tests production build locally
52
- 5. Prepares for Vercel deployment
53
-
54
- This is a verification and documentation block - no new features, just ensuring everything works together.
55
- </context>
56
-
57
- <threads>
58
-
59
- <thread type="auto">
60
- <name>Thread 1: Comprehensive production build verification</name>
61
- <files>.gitignore</files>
62
- <action>
63
- Verify production build and clean up configuration:
64
-
65
- 1. Run full build pipeline:
66
- ```bash
67
- cd /Users/jacweath/grid/blog
68
- npm run build
69
- ```
70
-
71
- 2. Verify build outputs:
72
- - Check dist/ directory created
73
- - Verify all pages generated (index, blog, about, posts, tags, rss.xml)
74
- - Check for build warnings or errors
75
- - Verify syntax highlighting assets included
76
-
77
- 3. Test production build locally:
78
- ```bash
79
- npm run preview
80
- ```
81
- - Visit all pages: /, /blog, /about, /blog/sample-post, /blog/tags/{tag}, /rss.xml
82
- - Test dark mode toggle on each page
83
- - Check for console errors
84
- - Verify navigation links work
85
-
86
- 4. Update .gitignore if needed:
87
- - Ensure dist/ excluded
88
- - Ensure .astro/ excluded
89
- - Ensure .vercel/ excluded
90
- - Add any OS-specific files (.DS_Store, Thumbs.db)
91
-
92
- AVOID: Do not ignore node_modules in package-lock.json (commit lock file). Do not add IDE configs to gitignore (use global gitignore). WHY: Lock files ensure reproducible builds; IDE configs are personal preference, not project-level.
93
- </action>
94
- <verify>
95
- Run: npm run build
96
- Check: Exit code 0 (success)
97
- Check: dist/ contains index.html, blog/, rss.xml
98
- Run: npm run preview
99
- Visit: All pages load without errors
100
- Check: Console has no errors
101
- Check: Dark mode works on all pages
102
- </verify>
103
- <done>
104
- - npm run build completes successfully
105
- - All pages generated in dist/ directory
106
- - npm run preview serves production build
107
- - All pages accessible and functional
108
- - No console errors or build warnings
109
- - .gitignore updated with all necessary exclusions
110
- </done>
111
- </thread>
112
-
113
- <thread type="auto">
114
- <name>Thread 2: Create comprehensive README documentation</name>
115
- <files>README.md</files>
116
- <action>
117
- Create README.md with project documentation:
118
-
119
- 1. Project overview section:
120
- - Project name: James Weatherhead Blog
121
- - Description: Minimal technical blog built with Astro
122
- - Tech stack: Astro, Tailwind CSS, TypeScript
123
- - Features: Dark mode, markdown posts, tags, RSS feed
124
-
125
- 2. Prerequisites section:
126
- - Node.js 18+ required
127
- - npm or pnpm
128
-
129
- 3. Getting Started section:
130
- ```bash
131
- # Install dependencies
132
- npm install
133
-
134
- # Start dev server
135
- npm run dev
136
-
137
- # Build for production
138
- npm run build
139
-
140
- # Preview production build
141
- npm run preview
142
- ```
143
-
144
- 4. Project Structure:
145
- ```
146
- /
147
- ├── src/
148
- │ ├── components/ # Reusable components
149
- │ ├── content/
150
- │ │ └── blog/ # Markdown blog posts
151
- │ ├── layouts/ # Layout components
152
- │ ├── pages/ # Route pages
153
- │ └── styles/ # Global styles
154
- ├── public/ # Static assets
155
- └── astro.config.mjs # Astro configuration
156
- ```
157
-
158
- 5. Content Management:
159
- - How to add new blog post (create .md in src/content/blog/)
160
- - Frontmatter schema explanation
161
- - Tag usage
162
-
163
- 6. Deployment section:
164
- - Vercel deployment instructions
165
- - Environment variables (if any)
166
- - Custom domain setup (brief)
167
-
168
- 7. Features section:
169
- - Dark mode toggle
170
- - Syntax highlighting
171
- - RSS feed at /rss.xml
172
- - Tag-based filtering
173
-
174
- AVOID: Do not add contributing guidelines yet (single author). Do not add license section unless specified. WHY: Personal blog doesn't need complex governance docs; add if project becomes open source.
175
- </action>
176
- <verify>
177
- Check: README.md exists with all sections
178
- Check: Installation commands are accurate
179
- Check: Project structure matches actual structure
180
- Run: Follow getting started steps to verify accuracy
181
- </verify>
182
- <done>
183
- - README.md created with comprehensive documentation
184
- - All sections present: overview, prerequisites, getting started, structure, deployment
185
- - Installation and build commands verified
186
- - Content management instructions clear
187
- - Deployment instructions for Vercel included
188
- </done>
189
- </thread>
190
-
191
- <thread type="auto">
192
- <name>Thread 3: Verify and document Vercel configuration</name>
193
- <files>vercel.json</files>
194
- <action>
195
- Verify Vercel deployment configuration:
196
-
197
- 1. Check vercel.json from Block 01:
198
- - Ensure framework: "astro"
199
- - Ensure buildCommand: "npm run build"
200
- - Ensure outputDirectory: "dist"
201
-
202
- 2. Verify astro.config.mjs:
203
- - Adapter: @astrojs/vercel/serverless (or /static if fully static)
204
- - Site URL: Update if final domain known (e.g., https://jamesweatherhead.com)
205
-
206
- 3. Create deployment checklist in README:
207
- ```markdown
208
- ## Deployment to Vercel
209
-
210
- 1. Push code to GitHub repository
211
- 2. Import project in Vercel dashboard
212
- 3. Vercel auto-detects Astro framework
213
- 4. Set environment variables (if any):
214
- - SITE_URL: https://yourdomain.com
215
- 5. Deploy
216
- 6. Configure custom domain (optional)
217
- ```
218
-
219
- 4. Test local build mimics Vercel:
220
- - Ensure no local-only dependencies
221
- - Verify all imports are relative (not absolute)
222
- - Check no hardcoded localhost URLs
223
-
224
- AVOID: Do not add CI/CD pipelines yet (Vercel handles this). Do not add preview deployment config (Vercel provides automatically). WHY: Vercel's built-in CI/CD is sufficient for blog; manual configuration adds complexity.
225
- </action>
226
- <verify>
227
- Check: vercel.json has correct framework and build settings
228
- Check: astro.config.mjs has site URL configured
229
- Check: README.md has deployment instructions
230
- Run: npm run build (simulate Vercel build)
231
- Check: No errors referencing localhost or local paths
232
- </verify>
233
- <done>
234
- - vercel.json verified with correct configuration
235
- - astro.config.mjs has site URL set
236
- - README.md includes deployment checklist
237
- - Build succeeds without local-only dependencies
238
- - Project ready for Vercel deployment
239
- </done>
240
- </thread>
241
-
242
- <thread type="checkpoint:human-verify" gate="blocking">
243
- <what-built>
244
- Production-ready blog with:
245
- - Verified production build (all pages generate correctly)
246
- - Comprehensive README documentation
247
- - Vercel deployment configuration
248
- - Complete project ready for deployment
249
- </what-built>
250
- <how-to-verify>
251
- 1. cd /Users/jacweath/grid/blog
252
-
253
- 2. Clean build test:
254
- ```bash
255
- rm -rf dist/
256
- npm run build
257
- ```
258
- - Should complete without errors
259
- - Check dist/ contains all expected files
260
-
261
- 3. Preview production build:
262
- ```bash
263
- npm run preview
264
- ```
265
- - Visit http://localhost:4321
266
- - Test all pages: /, /blog, /about, /blog/sample-post
267
- - Test tag filtering: click tags, verify filtered posts
268
- - Test RSS feed: visit /rss.xml
269
- - Test dark mode toggle on each page
270
- - Check browser console for errors (should be none)
271
-
272
- 4. Review documentation:
273
- - Read README.md
274
- - Verify instructions are clear and accurate
275
- - Check project structure matches reality
276
-
277
- 5. Verify deployment readiness:
278
- - Check vercel.json exists with correct settings
279
- - Check .gitignore excludes build artifacts
280
- - Verify no hardcoded localhost URLs in code
281
-
282
- 6. Final checklist:
283
- - [ ] Build completes successfully
284
- - [ ] All pages load in preview
285
- - [ ] Dark mode works everywhere
286
- - [ ] Navigation links functional
287
- - [ ] Tags filter correctly
288
- - [ ] RSS feed validates
289
- - [ ] README accurate
290
- - [ ] No console errors
291
- </how-to-verify>
292
- <resume-signal>Type "approved" if blog is production-ready and documentation is complete, or describe issues (e.g., "build fails", "page missing", "README unclear")</resume-signal>
293
- </thread>
294
-
295
- </threads>
296
-
297
- <verification>
298
- Complete verification checklist:
299
- 1. npm run build completes with exit code 0
300
- 2. dist/ directory contains all pages and assets
301
- 3. npm run preview serves production build successfully
302
- 4. All pages load without errors (/, /blog, /about, posts, tags, rss.xml)
303
- 5. Dark mode toggle works on all pages
304
- 6. Navigation links functional across site
305
- 7. Tag filtering displays correct posts
306
- 8. RSS feed accessible and validates
307
- 9. README.md complete with all sections
308
- 10. vercel.json configured correctly
309
- 11. .gitignore excludes all build artifacts
310
- 12. No hardcoded localhost or local-only dependencies
311
- 13. Browser console has no errors
312
- 14. User approves blog is deployment-ready
313
- </verification>
314
-
315
- <success_criteria>
316
- - Production build succeeds without errors
317
- - All pages render correctly in preview
318
- - Dark mode functional across entire site
319
- - Navigation and filtering work as expected
320
- - RSS feed validates and loads in feed readers
321
- - README provides clear setup and deployment instructions
322
- - Vercel configuration ready for deployment
323
- - No console errors or warnings
324
- - User confirms blog is ready to deploy to Vercel
325
- </success_criteria>
package/DEMO_SCRIPT.md DELETED
@@ -1,162 +0,0 @@
1
- # THE GRID - Demo Recording Script
2
-
3
- ## Target: 60-second GIF/Video for README
4
-
5
- ### Setup Before Recording
6
- - Clean terminal (black background, cyan/white text if possible)
7
- - Font size large enough to read
8
- - Window sized to ~800x600
9
- - Clear any previous .grid/ state
10
- - Have `asciinema` or screen recording ready
11
-
12
- ---
13
-
14
- ## THE SCRIPT
15
-
16
- ### Scene 1: The Hook (5 seconds)
17
- ```
18
- $ claude
19
- ```
20
- *Wait for Claude Code to load*
21
-
22
- ### Scene 2: Enter The Grid (5 seconds)
23
- ```
24
- /grid
25
- ```
26
-
27
- **Expected Output:**
28
- ```
29
- THE GRID
30
- ════════
31
-
32
- Master Control online.
33
-
34
- What would you like to build?
35
-
36
- End of Line.
37
- ```
38
-
39
- ### Scene 3: The Ask (5 seconds)
40
- Type:
41
- ```
42
- Build me a CLI that analyzes a GitHub repo and shows contributor stats
43
- ```
44
-
45
- ### Scene 4: Mode Selection (5 seconds)
46
- **Expected Output:**
47
- ```
48
- How involved do you want to be?
49
-
50
- HANDS OFF - I make all decisions and build it. You see the finished result.
51
- HANDS ON - We discuss choices together before building.
52
- ```
53
-
54
- Type:
55
- ```
56
- hands off
57
- ```
58
-
59
- ### Scene 5: The Magic (30 seconds)
60
- *Let it run - this is the money shot*
61
-
62
- **What viewers should see:**
63
- - "Researching best practices..."
64
- - "Spawning Planner Program..."
65
- - Task(Plan github-analyzer) with tool uses expanding
66
- - Multiple agents potentially spawning
67
- - Files being created
68
- - Tests running
69
-
70
- *Speed this up 2-4x in post if needed*
71
-
72
- ### Scene 6: The Result (10 seconds)
73
- **Expected Output:**
74
- ```
75
- BUILD COMPLETE
76
- ══════════════
77
-
78
- Project: github-analyzer
79
- Stack: Python 3 + requests + rich
80
- Files:
81
- - analyzer.py (CLI tool)
82
- - README.md
83
-
84
- Usage: python analyzer.py <repo-url>
85
-
86
- [Shows example output]
87
- ```
88
-
89
- Type:
90
- ```
91
- python analyzer.py https://github.com/anthropics/claude-code
92
- ```
93
-
94
- *Show it actually working*
95
-
96
- ---
97
-
98
- ## ALTERNATIVE DEMOS (Pick most impressive)
99
-
100
- ### Option B: Full-Stack in 2 Minutes
101
- ```
102
- Build a todo app with React frontend and Express API
103
- ```
104
- - Shows parallel agent spawning
105
- - Multiple files created
106
- - Actually runs
107
-
108
- ### Option C: The Meta Demo
109
- ```
110
- Build a CLI that generates ASCII art from text
111
- ```
112
- - Simple enough to complete quickly
113
- - Visual output is satisfying
114
- - Easy to verify it works
115
-
116
- ---
117
-
118
- ## POST-PRODUCTION
119
-
120
- 1. **Speed up** the waiting/building parts (2-4x)
121
- 2. **Add captions** at key moments:
122
- - "Tell Master Control what to build"
123
- - "HANDS OFF = zero decisions"
124
- - "Agents spawn automatically"
125
- - "Working code in 60 seconds"
126
- 3. **Loop** the GIF for README
127
-
128
- ---
129
-
130
- ## RECORDING TOOLS
131
-
132
- **For GIF:**
133
- ```bash
134
- # Install asciinema + agg
135
- brew install asciinema
136
- cargo install --git https://github.com/asciinema/agg
137
-
138
- # Record
139
- asciinema rec demo.cast
140
-
141
- # Convert to GIF
142
- agg demo.cast demo.gif --speed 2
143
- ```
144
-
145
- **For Video:**
146
- - OBS Studio
147
- - macOS built-in screen recording
148
- - Loom (if you want voiceover)
149
-
150
- ---
151
-
152
- ## KEY MESSAGES TO CONVEY
153
-
154
- 1. **One command** to start: `/grid`
155
- 2. **One word** to delegate: `hands off`
156
- 3. **Zero decisions** - it just builds
157
- 4. **Working code** - not stubs, real output
158
- 5. **TRON aesthetic** - memorable branding
159
-
160
- ---
161
-
162
- *End of Line.*
package/HN_POST.md DELETED
@@ -1,104 +0,0 @@
1
- # Hacker News Post Drafts
2
-
3
- ## OPTION A: The Direct Approach
4
-
5
- **Title:** Show HN: The Grid – TRON-themed agent orchestration for Claude Code
6
-
7
- **Text:**
8
- I built The Grid because I was tired of babysitting AI coding sessions. Every time Claude needed a decision about frameworks, folder structure, or deployment—another context switch.
9
-
10
- The Grid adds a simple mode to Claude Code: HANDS OFF.
11
-
12
- You say what you want. Master Control (the orchestrator) spawns specialized agents—Planner, Executor, Recognizer—to do the work. You get working code, not questions.
13
-
14
- ```
15
- /grid
16
- > Build me a CLI that converts JSON to YAML
17
- > hands off
18
-
19
- [2 minutes later]
20
-
21
- BUILD COMPLETE
22
- Files: converter.py (207 lines)
23
- Tests: All passing
24
- ```
25
-
26
- Built with Claude, for Claude Code users. TRON theme because why not.
27
-
28
- GitHub: https://github.com/JamesWeatherhead/grid
29
- Install: `npx the-grid-cc`
30
-
31
- ---
32
-
33
- ## OPTION B: The Problem-First Approach
34
-
35
- **Title:** Show HN: The Grid – Stop babysitting your AI coding sessions
36
-
37
- **Text:**
38
- Problem: Claude Code is powerful but chatty. "Which framework?" "Where should I put this?" "Should I use TypeScript?" Death by a thousand decisions.
39
-
40
- Solution: The Grid adds orchestration to Claude Code with two modes:
41
- - HANDS OFF: AI makes all technical decisions, you approve the result
42
- - HANDS ON: Collaborate on choices
43
-
44
- Under the hood, it spawns specialized subagents (Planner, Executor, Verifier) with fresh context windows. Master Control stays lean while heavy work happens in parallel.
45
-
46
- The TRON theme keeps it fun. "End of Line."
47
-
48
- Try it: `npx the-grid-cc` then `/grid` in Claude Code.
49
-
50
- ---
51
-
52
- ## OPTION C: The Technical Hook
53
-
54
- **Title:** Show HN: The Grid – Parallel AI agent orchestration for Claude Code
55
-
56
- **Text:**
57
- The Grid orchestrates Claude Code subagents to build software autonomously.
58
-
59
- Key features:
60
- - Spawns parallel agents via Claude's Task tool (real subprocess isolation)
61
- - Wave-based execution (computed during planning, not runtime)
62
- - Goal-backward verification (checks outcomes, not just task completion)
63
- - Fresh 200k context per agent (no degradation from long sessions)
64
-
65
- Architecture is simple: You → Master Control → Programs (Planner/Executor/Recognizer)
66
-
67
- HANDS OFF mode: describe what you want, get working code. No framework debates. No folder structure discussions.
68
-
69
- GitHub: https://github.com/JamesWeatherhead/grid
70
-
71
- ---
72
-
73
- ## POSTING STRATEGY
74
-
75
- **Best time to post:** Tuesday-Thursday, 9-11am ET
76
-
77
- **Title rules:**
78
- - Start with "Show HN:"
79
- - No ALL CAPS (except Show HN)
80
- - Under 80 chars
81
- - Lead with benefit or unique angle
82
-
83
- **Engagement:**
84
- - Be ready to answer questions for first 2 hours
85
- - Be honest about limitations
86
- - Thank people for feedback (even criticism)
87
-
88
- **Avoid:**
89
- - Defensive responses
90
- - Marketing speak
91
- - "We're excited to announce"
92
-
93
- ---
94
-
95
- ## BACKUP TITLES
96
-
97
- 1. "Show HN: The Grid – One word ('hands off') to make Claude Code fully autonomous"
98
- 2. "Show HN: The Grid – Orchestrate Claude Code agents with a TRON-themed CLI"
99
- 3. "Show HN: The Grid – Parallel AI agents that actually build working code"
100
- 4. "Show HN: I built an orchestrator so Claude Code stops asking me questions"
101
-
102
- ---
103
-
104
- *End of Line.*