the-grid-cc 1.7.27 → 1.7.28
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/.claude-plugin/README.md +78 -0
- package/.claude-plugin/marketplace.json +24 -0
- package/.claude-plugin/plugin.json +10 -18
- package/README.md +68 -15
- package/commands/grid/VERSION +1 -1
- package/commands/grid/doctor.md +228 -94
- package/commands/grid/hooks/README.md +85 -0
- package/commands/grid/hooks/budget-check.py +152 -0
- package/commands/grid/hooks/hooks.json +68 -0
- package/commands/grid/hooks/session-end.sh +108 -0
- package/commands/grid/hooks/session-start.sh +81 -0
- package/commands/grid/hooks/subagent-complete.py +148 -0
- package/commands/grid/hooks/track-progress.py +140 -0
- package/commands/grid/hooks/verify-edit.sh +69 -0
- package/commands/grid/init.md +4 -2
- package/commands/grid/map.md +303 -0
- package/commands/grid/mc.md +15 -2
- package/commands/grid/quick.md +3 -1
- package/commands/grid/refine.md +3 -1
- package/commands/grid/resume.md +11 -0
- package/commands/grid/status.md +11 -0
- package/commands/grid/update.md +2 -1
- package/output-styles/grid-mc.md +199 -0
- package/package.json +15 -9
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# The Grid - Claude Code Plugin
|
|
2
|
+
|
|
3
|
+
This directory contains the plugin manifest for installing The Grid via Claude Code's plugin system.
|
|
4
|
+
|
|
5
|
+
## Plugin Installation
|
|
6
|
+
|
|
7
|
+
### Via Claude Code Commands
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Add the Grid marketplace
|
|
11
|
+
/plugin marketplace add JamesWeatherhead/grid
|
|
12
|
+
|
|
13
|
+
# Install The Grid
|
|
14
|
+
/plugin install the-grid@grid-marketplace
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Via CLI
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
claude plugin install the-grid@grid-marketplace --scope user
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## What Gets Installed
|
|
24
|
+
|
|
25
|
+
When you install The Grid plugin, the following components are added:
|
|
26
|
+
|
|
27
|
+
### Skills (Commands)
|
|
28
|
+
- `/grid` - Start The Grid (main entry point)
|
|
29
|
+
- `/grid:quick` - Quick task execution
|
|
30
|
+
- `/grid:budget` - Budget and cost management
|
|
31
|
+
- `/grid:refine` - Refinement swarm for testing
|
|
32
|
+
- `/grid:branch` - Branch management
|
|
33
|
+
- `/grid:update` - Update The Grid
|
|
34
|
+
- `/grid:resume` - Resume interrupted missions
|
|
35
|
+
- `/grid:init` - Initialize Grid state
|
|
36
|
+
- `/grid:help` - Command reference
|
|
37
|
+
- `/grid:daemon` - Background execution mode
|
|
38
|
+
- `/grid:status` - Grid status display
|
|
39
|
+
- `/grid:mc` - Master Control interface
|
|
40
|
+
- `/grid:program_disc` - View program identity discs
|
|
41
|
+
- `/grid:doctor` - Diagnostic tool
|
|
42
|
+
- `/grid:model` - Configure model selection
|
|
43
|
+
- `/grid:debug` - Systematic bug investigation
|
|
44
|
+
|
|
45
|
+
### Agents (Identity Discs)
|
|
46
|
+
- `Planner.md` - Strategic planning agent
|
|
47
|
+
- `Executor.md` - Code implementation agent
|
|
48
|
+
- `Scout.md` - Research and discovery agent
|
|
49
|
+
- `Recognizer.md` - Quality verification agent
|
|
50
|
+
- `Visual.md` - Visual verification agent
|
|
51
|
+
- `Persona.md` - User persona simulation agent
|
|
52
|
+
|
|
53
|
+
### Hooks
|
|
54
|
+
- Pre and post execution hooks for Grid operations
|
|
55
|
+
|
|
56
|
+
## File Structure
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
.claude-plugin/
|
|
60
|
+
├── plugin.json # Plugin manifest
|
|
61
|
+
├── marketplace.json # Marketplace metadata
|
|
62
|
+
└── README.md # This file
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Requirements
|
|
66
|
+
|
|
67
|
+
- Claude Code CLI
|
|
68
|
+
- macOS, Linux, or Windows (WSL)
|
|
69
|
+
|
|
70
|
+
## More Information
|
|
71
|
+
|
|
72
|
+
- GitHub: https://github.com/JamesWeatherhead/grid
|
|
73
|
+
- npm: https://www.npmjs.com/package/the-grid-cc
|
|
74
|
+
- Documentation: See main README.md
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
MIT License - see LICENSE file for details.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "grid-marketplace",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "James Weatherhead",
|
|
5
|
+
"email": "james@thegrid.dev"
|
|
6
|
+
},
|
|
7
|
+
"metadata": {
|
|
8
|
+
"description": "The Grid - Multi-Agent Framework for Claude Code",
|
|
9
|
+
"version": "1.0.0"
|
|
10
|
+
},
|
|
11
|
+
"plugins": [
|
|
12
|
+
{
|
|
13
|
+
"name": "the-grid",
|
|
14
|
+
"source": "./",
|
|
15
|
+
"description": "Autonomous multi-agent orchestration framework with Planner, Executor, Scout, and Recognizer programs",
|
|
16
|
+
"version": "1.7.28",
|
|
17
|
+
"category": "automation",
|
|
18
|
+
"tags": ["agents", "automation", "orchestration", "multi-agent", "swarm"],
|
|
19
|
+
"homepage": "https://github.com/JamesWeatherhead/grid",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"strict": false
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "grid",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
2
|
+
"name": "the-grid",
|
|
3
|
+
"version": "1.7.28",
|
|
4
|
+
"description": "The Grid - Autonomous Multi-Agent Framework for Claude Code. Orchestrate complex missions with Planner, Executor, Scout, and Recognizer programs.",
|
|
5
5
|
"author": {
|
|
6
|
-
"name": "James Weatherhead
|
|
7
|
-
"url": "https://github.com/JamesWeatherhead
|
|
6
|
+
"name": "James Weatherhead",
|
|
7
|
+
"url": "https://github.com/JamesWeatherhead"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://github.com/JamesWeatherhead/grid",
|
|
10
|
-
"repository":
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "https://github.com/JamesWeatherhead/grid.git"
|
|
13
|
-
},
|
|
10
|
+
"repository": "https://github.com/JamesWeatherhead/grid",
|
|
14
11
|
"license": "MIT",
|
|
15
|
-
"keywords": ["agents", "
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"directories": {
|
|
20
|
-
"commands": "../commands",
|
|
21
|
-
"agents": "../agents",
|
|
22
|
-
"docs": "../docs"
|
|
23
|
-
}
|
|
12
|
+
"keywords": ["agents", "automation", "multi-agent", "orchestration", "swarm", "grid"],
|
|
13
|
+
"skills": "./commands/grid/",
|
|
14
|
+
"agents": "./agents/",
|
|
15
|
+
"hooks": "./commands/grid/hooks/hooks.json"
|
|
24
16
|
}
|
package/README.md
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
<h1 align="center">THE GRID</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<strong>
|
|
4
|
+
<strong>Ship faster. Stay sane.</strong>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
<p align="center">
|
|
12
|
-
<em>You talk to Master Control. Master Control handles the rest.</em>
|
|
8
|
+
<em>"I fight for the Users."</em>
|
|
13
9
|
</p>
|
|
14
10
|
|
|
15
11
|
<p align="center">
|
|
@@ -45,17 +41,18 @@ npx the-grid-cc # Install (one command)
|
|
|
45
41
|
<strong>That's it. Works on Mac, Windows, and Linux.</strong>
|
|
46
42
|
</p>
|
|
47
43
|
|
|
48
|
-
<br>
|
|
49
|
-
|
|
50
|
-
<p align="center">
|
|
51
|
-
<img src="assets/install-demo.png" alt="The Grid Installation" width="700"/>
|
|
52
|
-
</p>
|
|
53
|
-
|
|
54
44
|
---
|
|
55
45
|
|
|
56
46
|
## The Problem
|
|
57
47
|
|
|
58
|
-
You're building something
|
|
48
|
+
You're building something in Claude Code.
|
|
49
|
+
Sessions get long. Context fills up.
|
|
50
|
+
Claude forgets what you're building.
|
|
51
|
+
Quality degrades. Frustration builds.
|
|
52
|
+
|
|
53
|
+
**Sound familiar?**
|
|
54
|
+
|
|
55
|
+
---
|
|
59
56
|
|
|
60
57
|
## The Solution
|
|
61
58
|
|
|
@@ -69,8 +66,28 @@ YOU <-> Master Control <-> Worker Agents
|
|
|
69
66
|
Master Control remembers your goals
|
|
70
67
|
```
|
|
71
68
|
|
|
72
|
-
**Without Grid**: One exhausted conversation doing everything
|
|
73
|
-
**With Grid**: Focused Master Control delegating to specialized workers
|
|
69
|
+
**Without Grid**: One exhausted conversation doing everything.
|
|
70
|
+
**With Grid**: Focused Master Control delegating to specialized workers.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## No Ceremony
|
|
75
|
+
|
|
76
|
+
No sprint planning. No story points. No stakeholder syncs. No Jira.
|
|
77
|
+
|
|
78
|
+
Just you, Claude, and code that ships.
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Beyond Code Generation
|
|
83
|
+
|
|
84
|
+
Other tools stop at code. The Grid goes further:
|
|
85
|
+
|
|
86
|
+
**Visual Inspector** - Screenshots your app, catches visual bugs
|
|
87
|
+
**E2E Exerciser** - Clicks everything like a real user
|
|
88
|
+
**Persona Simulator** - Reviews from your target users' POV
|
|
89
|
+
|
|
90
|
+
Run `/grid:refine` after building. Catch issues before users do.
|
|
74
91
|
|
|
75
92
|
---
|
|
76
93
|
|
|
@@ -153,6 +170,14 @@ Researches best practices. Injects industry standards. You get expert-level spec
|
|
|
153
170
|
|
|
154
171
|
---
|
|
155
172
|
|
|
173
|
+
## Who Uses The Grid
|
|
174
|
+
|
|
175
|
+
*(Notable users section coming soon)*
|
|
176
|
+
|
|
177
|
+
> "The Grid is like having a senior engineering team on demand."
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
156
181
|
## Commands
|
|
157
182
|
|
|
158
183
|
| Command | What It Does |
|
|
@@ -182,6 +207,34 @@ Researches best practices. Injects industry standards. You get expert-level spec
|
|
|
182
207
|
|
|
183
208
|
---
|
|
184
209
|
|
|
210
|
+
## Installation
|
|
211
|
+
|
|
212
|
+
<details>
|
|
213
|
+
<summary><strong>Alternative: Plugin Installation</strong></summary>
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
# Add Grid marketplace
|
|
217
|
+
/plugin marketplace add JamesWeatherhead/grid
|
|
218
|
+
|
|
219
|
+
# Install The Grid
|
|
220
|
+
/plugin install the-grid@grid-marketplace
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Or via CLI:
|
|
224
|
+
```bash
|
|
225
|
+
claude plugin install the-grid@grid-marketplace --scope user
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
</details>
|
|
229
|
+
|
|
230
|
+
<br>
|
|
231
|
+
|
|
232
|
+
<p align="center">
|
|
233
|
+
<img src="assets/install-demo.png" alt="The Grid Installation" width="700"/>
|
|
234
|
+
</p>
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
185
238
|
## FAQ
|
|
186
239
|
|
|
187
240
|
<details>
|
package/commands/grid/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.7.
|
|
1
|
+
1.7.28
|
package/commands/grid/doctor.md
CHANGED
|
@@ -12,113 +12,193 @@ disable-model-invocation: true
|
|
|
12
12
|
argument-hint: "[--fix]"
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
Run comprehensive health checks on The Grid installation and
|
|
15
|
+
Run comprehensive health checks on The Grid installation and environment. Diagnoses issues and suggests (or automatically applies) fixes.
|
|
16
16
|
|
|
17
17
|
## USAGE
|
|
18
18
|
|
|
19
19
|
`/grid:doctor` - Run diagnostics and report issues
|
|
20
20
|
`/grid:doctor --fix` - Run diagnostics and attempt automatic repairs
|
|
21
21
|
|
|
22
|
-
## CHECKS
|
|
22
|
+
## DIAGNOSTIC CHECKS
|
|
23
|
+
|
|
24
|
+
### 1. Environment Check
|
|
25
|
+
Detect and validate the runtime environment:
|
|
26
|
+
|
|
27
|
+
- [ ] Detect platform (macOS, Linux, WSL, Windows)
|
|
28
|
+
- [ ] Check Node.js version and installation path
|
|
29
|
+
- [ ] Verify npm installation
|
|
30
|
+
- [ ] Check for WSL PATH issues (Windows only)
|
|
31
|
+
- [ ] Verify Claude Code CLI is installed
|
|
32
|
+
|
|
33
|
+
**Implementation:**
|
|
34
|
+
```bash
|
|
35
|
+
# Platform detection
|
|
36
|
+
uname -s # Darwin, Linux, etc.
|
|
37
|
+
uname -r # Kernel version
|
|
38
|
+
|
|
39
|
+
# Node.js
|
|
40
|
+
which node
|
|
41
|
+
node --version
|
|
42
|
+
|
|
43
|
+
# npm
|
|
44
|
+
which npm
|
|
45
|
+
npm --version
|
|
46
|
+
|
|
47
|
+
# Claude Code
|
|
48
|
+
which claude
|
|
49
|
+
claude --version 2>/dev/null || echo "Not found"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 2. Installation Check
|
|
53
|
+
Verify Grid files are properly installed:
|
|
23
54
|
|
|
24
|
-
### 1. Installation Check
|
|
25
55
|
- [ ] `~/.claude/commands/grid/` exists
|
|
26
56
|
- [ ] `~/.claude/agents/` contains grid-*.md files (expect 17)
|
|
27
57
|
- [ ] VERSION file exists and contains valid semver
|
|
28
58
|
|
|
29
|
-
|
|
59
|
+
**Implementation:**
|
|
60
|
+
```bash
|
|
61
|
+
# Commands directory
|
|
62
|
+
ls -la ~/.claude/commands/grid/
|
|
63
|
+
|
|
64
|
+
# Agent count
|
|
65
|
+
ls ~/.claude/agents/grid-*.md 2>/dev/null | wc -l
|
|
66
|
+
|
|
67
|
+
# VERSION
|
|
68
|
+
cat ~/.claude/commands/grid/VERSION
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 3. Agent Health
|
|
30
72
|
For each agent in `~/.claude/agents/grid-*.md`:
|
|
73
|
+
|
|
31
74
|
- [ ] File exists and is readable
|
|
32
75
|
- [ ] Has valid YAML frontmatter (starts with `---` block)
|
|
33
76
|
- [ ] Has `name:` field in frontmatter
|
|
34
77
|
- [ ] Has `model:` field (opus, sonnet, haiku, or inherit)
|
|
35
78
|
- [ ] Has `permissionMode:` field (plan or acceptEdits)
|
|
36
79
|
|
|
37
|
-
###
|
|
80
|
+
### 4. State Health (if .grid/ exists)
|
|
81
|
+
If an active Grid session exists:
|
|
82
|
+
|
|
38
83
|
- [ ] STATE.md exists and is parseable
|
|
39
84
|
- [ ] config.json is valid JSON (if exists)
|
|
40
85
|
- [ ] budget.json is valid JSON (if exists)
|
|
41
86
|
- [ ] No orphaned phase files (PLAN.md without corresponding directory structure)
|
|
42
87
|
|
|
43
|
-
|
|
88
|
+
**Implementation:**
|
|
89
|
+
```bash
|
|
90
|
+
# Check STATE.md
|
|
91
|
+
cat .grid/STATE.md 2>/dev/null || echo "No active session"
|
|
92
|
+
|
|
93
|
+
# Validate JSON files
|
|
94
|
+
python3 -c "import json; json.load(open('.grid/config.json'))" 2>/dev/null && echo "config.json: valid" || echo "config.json: invalid or missing"
|
|
95
|
+
|
|
96
|
+
python3 -c "import json; json.load(open('.grid/budget.json'))" 2>/dev/null && echo "budget.json: valid" || echo "budget.json: invalid or missing"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 5. Hook Health
|
|
100
|
+
Verify hooks are properly configured:
|
|
101
|
+
|
|
44
102
|
- [ ] `hooks/` directory exists
|
|
45
103
|
- [ ] `enforce-delegation.sh` exists and is executable
|
|
46
104
|
- [ ] `hooks.json` is valid JSON
|
|
47
105
|
|
|
48
|
-
###
|
|
49
|
-
|
|
50
|
-
- [ ] Budget limit is non-negative number (if set)
|
|
51
|
-
- [ ] No conflicting settings between config files
|
|
106
|
+
### 6. Dependencies
|
|
107
|
+
Check for required external tools:
|
|
52
108
|
|
|
53
|
-
|
|
109
|
+
- [ ] ripgrep (rg) is installed
|
|
110
|
+
- [ ] git is installed and configured
|
|
111
|
+
- [ ] Python 3 is available (for JSON validation)
|
|
54
112
|
|
|
55
|
-
|
|
113
|
+
**Implementation:**
|
|
114
|
+
```bash
|
|
115
|
+
# ripgrep
|
|
116
|
+
which rg && rg --version
|
|
56
117
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
118
|
+
# git
|
|
119
|
+
which git && git --version
|
|
120
|
+
|
|
121
|
+
# Python 3
|
|
122
|
+
which python3 && python3 --version
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 7. Configuration Health
|
|
126
|
+
Validate settings:
|
|
127
|
+
|
|
128
|
+
- [ ] Model tier is valid (quality, balanced, or budget)
|
|
129
|
+
- [ ] Budget limit is non-negative number (if set)
|
|
130
|
+
- [ ] No conflicting settings between config files
|
|
61
131
|
|
|
62
132
|
## OUTPUT FORMAT
|
|
63
133
|
|
|
64
134
|
```
|
|
65
|
-
GRID DOCTOR
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
[
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
[
|
|
91
|
-
[
|
|
135
|
+
GRID DOCTOR v{VERSION}
|
|
136
|
+
======================
|
|
137
|
+
|
|
138
|
+
Environment
|
|
139
|
+
-----------
|
|
140
|
+
Platform: {Darwin/Linux/WSL/Windows}
|
|
141
|
+
Node: {version} ({path})
|
|
142
|
+
npm: {version}
|
|
143
|
+
Claude CLI: {version or "not found"}
|
|
144
|
+
|
|
145
|
+
Installation
|
|
146
|
+
------------
|
|
147
|
+
Commands: ~/.claude/commands/grid/ [OK]
|
|
148
|
+
Agents: {N}/17 found [OK/WARN/FAIL]
|
|
149
|
+
VERSION: {version} [OK]
|
|
150
|
+
|
|
151
|
+
Agents
|
|
152
|
+
------
|
|
153
|
+
Frontmatter: [OK/WARN]
|
|
154
|
+
name field: {N}/17 [OK/WARN]
|
|
155
|
+
model field: {N}/17 [OK/WARN]
|
|
156
|
+
permissions: {N}/17 [OK/WARN]
|
|
157
|
+
|
|
158
|
+
State
|
|
159
|
+
-----
|
|
160
|
+
.grid/: [EXISTS/MISSING]
|
|
161
|
+
STATE.md: [OK/EMPTY/MISSING]
|
|
162
|
+
config.json: [OK/INVALID/MISSING]
|
|
163
|
+
budget.json: [OK/INVALID/MISSING]
|
|
164
|
+
|
|
165
|
+
Hooks
|
|
166
|
+
-----
|
|
167
|
+
hooks/: [OK/MISSING]
|
|
168
|
+
delegation: [OK/NOT EXECUTABLE/MISSING]
|
|
169
|
+
hooks.json: [OK/INVALID/MISSING]
|
|
170
|
+
|
|
171
|
+
Dependencies
|
|
172
|
+
------------
|
|
173
|
+
ripgrep: [OK] {version}
|
|
174
|
+
git: [OK] {version}
|
|
175
|
+
python3: [OK] {version}
|
|
176
|
+
|
|
177
|
+
Configuration
|
|
178
|
+
-------------
|
|
179
|
+
Model tier: {quality/balanced/budget}
|
|
180
|
+
Budget limit: {$amount or "none"}
|
|
92
181
|
|
|
93
182
|
---------------------------------
|
|
94
183
|
Overall: HEALTHY / NEEDS ATTENTION / UNHEALTHY
|
|
95
184
|
|
|
96
|
-
Suggestions
|
|
97
|
-
1. {Specific fix for first issue}
|
|
98
|
-
2. {Specific fix for second issue}
|
|
99
|
-
...
|
|
185
|
+
{Suggestions section if issues found}
|
|
100
186
|
|
|
101
187
|
End of Line.
|
|
102
188
|
```
|
|
103
189
|
|
|
104
|
-
## STATUS
|
|
190
|
+
## STATUS INDICATORS
|
|
105
191
|
|
|
106
|
-
|
|
107
|
-
[check] = Pass (green checkmark)
|
|
108
|
-
[warn] = Warning (yellow triangle)
|
|
109
|
-
[fail] = Fail (red X)
|
|
110
|
-
[skip] = Skipped (gray dash)
|
|
111
|
-
```
|
|
192
|
+
Use these symbols for status:
|
|
112
193
|
|
|
113
|
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
- Skip: dash
|
|
194
|
+
- `[OK]` - Pass (all good)
|
|
195
|
+
- `[WARN]` - Warning (functional but suboptimal)
|
|
196
|
+
- `[FAIL]` - Fail (broken, needs fix)
|
|
197
|
+
- `[SKIP]` - Skipped (not applicable)
|
|
118
198
|
|
|
119
199
|
## EXPECTED AGENT FILES
|
|
120
200
|
|
|
121
|
-
The Grid expects these 17 agent files
|
|
201
|
+
The Grid expects these 17 agent files in `~/.claude/agents/`:
|
|
122
202
|
|
|
123
203
|
1. grid-planner.md
|
|
124
204
|
2. grid-executor.md
|
|
@@ -167,51 +247,114 @@ When `--fix` is provided, doctor will attempt:
|
|
|
167
247
|
| Missing .grid/ directory | Create it |
|
|
168
248
|
| Invalid config.json | Reset to defaults |
|
|
169
249
|
| Non-executable hook script | `chmod +x` the script |
|
|
170
|
-
| Missing VERSION file | Create with
|
|
250
|
+
| Missing VERSION file | Create with current version |
|
|
171
251
|
| Malformed budget.json | Reset to `{}` |
|
|
252
|
+
| Missing ripgrep | Suggest install command |
|
|
172
253
|
|
|
173
254
|
Issues that CANNOT be auto-fixed:
|
|
174
255
|
- Missing agent files (requires reinstall)
|
|
175
256
|
- Invalid agent frontmatter (requires manual review)
|
|
176
257
|
- Corrupted STATE.md (requires mission restart)
|
|
258
|
+
- Missing Node.js or Claude CLI
|
|
177
259
|
|
|
178
260
|
## NO ISSUES FOUND
|
|
179
261
|
|
|
180
262
|
If all checks pass:
|
|
181
263
|
|
|
182
264
|
```
|
|
183
|
-
GRID DOCTOR
|
|
184
|
-
|
|
265
|
+
GRID DOCTOR v1.7.x
|
|
266
|
+
==================
|
|
267
|
+
|
|
268
|
+
Environment
|
|
269
|
+
-----------
|
|
270
|
+
Platform: Darwin (macOS 14.x)
|
|
271
|
+
Node: v20.x.x (/usr/local/bin/node)
|
|
272
|
+
npm: 10.x.x
|
|
273
|
+
Claude CLI: 1.x.x
|
|
274
|
+
|
|
275
|
+
Installation
|
|
276
|
+
------------
|
|
277
|
+
Commands: ~/.claude/commands/grid/ [OK]
|
|
278
|
+
Agents: 17/17 found [OK]
|
|
279
|
+
VERSION: 1.7.x [OK]
|
|
280
|
+
|
|
281
|
+
Agents
|
|
282
|
+
------
|
|
283
|
+
Frontmatter: [OK]
|
|
284
|
+
name field: 17/17 [OK]
|
|
285
|
+
model field: 17/17 [OK]
|
|
286
|
+
permissions: 17/17 [OK]
|
|
287
|
+
|
|
288
|
+
State
|
|
289
|
+
-----
|
|
290
|
+
.grid/: [SKIP] No active session
|
|
291
|
+
STATE.md: [SKIP]
|
|
292
|
+
config.json: [SKIP]
|
|
293
|
+
budget.json: [SKIP]
|
|
294
|
+
|
|
295
|
+
Hooks
|
|
296
|
+
-----
|
|
297
|
+
hooks/: [OK]
|
|
298
|
+
delegation: [OK]
|
|
299
|
+
hooks.json: [OK]
|
|
300
|
+
|
|
301
|
+
Dependencies
|
|
302
|
+
------------
|
|
303
|
+
ripgrep: [OK] 14.x.x
|
|
304
|
+
git: [OK] 2.x.x
|
|
305
|
+
python3: [OK] 3.x.x
|
|
306
|
+
|
|
307
|
+
Configuration
|
|
308
|
+
-------------
|
|
309
|
+
Model tier: balanced
|
|
310
|
+
Budget limit: none
|
|
185
311
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
checkmark 17 agent files found
|
|
189
|
-
checkmark VERSION file: 1.7.20
|
|
312
|
+
---------------------------------
|
|
313
|
+
Overall: HEALTHY
|
|
190
314
|
|
|
191
|
-
|
|
192
|
-
checkmark All agents have valid frontmatter
|
|
193
|
-
checkmark All agents have name field
|
|
194
|
-
checkmark 17/17 agents have model field
|
|
195
|
-
checkmark 17/17 agents have permissionMode field
|
|
315
|
+
The Grid is functioning within normal parameters.
|
|
196
316
|
|
|
197
|
-
|
|
198
|
-
|
|
317
|
+
End of Line.
|
|
318
|
+
```
|
|
199
319
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
320
|
+
## COMMON ISSUES AND FIXES
|
|
321
|
+
|
|
322
|
+
### Issue: "ripgrep not found"
|
|
323
|
+
**Fix:**
|
|
324
|
+
- macOS: `brew install ripgrep`
|
|
325
|
+
- Linux: `apt install ripgrep` or `cargo install ripgrep`
|
|
326
|
+
- Windows: `choco install ripgrep`
|
|
327
|
+
|
|
328
|
+
### Issue: "Agent files missing"
|
|
329
|
+
**Fix:**
|
|
330
|
+
```bash
|
|
331
|
+
# Reinstall The Grid
|
|
332
|
+
npm install -g the-grid-cc
|
|
333
|
+
# Or copy from source
|
|
334
|
+
cp -r /path/to/grid/agents/* ~/.claude/agents/
|
|
335
|
+
```
|
|
204
336
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
337
|
+
### Issue: "Invalid config.json"
|
|
338
|
+
**Fix with --fix flag:**
|
|
339
|
+
```bash
|
|
340
|
+
/grid:doctor --fix
|
|
341
|
+
# Resets to: {"modelTier": "balanced", "budgetLimit": null}
|
|
342
|
+
```
|
|
208
343
|
|
|
209
|
-
|
|
210
|
-
|
|
344
|
+
### Issue: "hooks not executable"
|
|
345
|
+
**Fix with --fix flag:**
|
|
346
|
+
```bash
|
|
347
|
+
/grid:doctor --fix
|
|
348
|
+
# Runs: chmod +x hooks/enforce-delegation.sh
|
|
349
|
+
```
|
|
211
350
|
|
|
212
|
-
|
|
351
|
+
## CONTEXT USAGE WARNING
|
|
352
|
+
|
|
353
|
+
If context usage exceeds 50%, doctor will add a warning:
|
|
213
354
|
|
|
214
|
-
|
|
355
|
+
```
|
|
356
|
+
Context Warning: {N}% context used
|
|
357
|
+
Consider running /compact before continuing.
|
|
215
358
|
```
|
|
216
359
|
|
|
217
360
|
## DATA SOURCES
|
|
@@ -226,15 +369,6 @@ End of Line.
|
|
|
226
369
|
| Budget | `.grid/budget.json` |
|
|
227
370
|
| Hooks | Grid installation `hooks/` directory |
|
|
228
371
|
|
|
229
|
-
## CONTEXT USAGE WARNING
|
|
230
|
-
|
|
231
|
-
If context usage exceeds 50%, doctor will add a warning:
|
|
232
|
-
|
|
233
|
-
```
|
|
234
|
-
Context Warning: {N}% context used
|
|
235
|
-
Consider running /compact before continuing.
|
|
236
|
-
```
|
|
237
|
-
|
|
238
372
|
## RELATED COMMANDS
|
|
239
373
|
|
|
240
374
|
- `/grid:status` - Show current mission progress
|