gsd-lite 0.6.8 → 0.6.9

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.
@@ -13,7 +13,7 @@
13
13
  "name": "gsd",
14
14
  "source": "./",
15
15
  "description": "AI orchestration tool — GSD management shell + Superpowers quality core. 5 commands, 4 agents, 5 workflows, MCP server, context monitoring.",
16
- "version": "0.6.8",
16
+ "version": "0.6.9",
17
17
  "keywords": [
18
18
  "orchestration",
19
19
  "mcp",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gsd",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "AI orchestration tool for Claude Code — GSD management shell + Superpowers quality core",
5
5
  "author": {
6
6
  "name": "sdsrss",
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Get Shit Done — AI orchestration for Claude Code
4
4
 
5
- GSD-Lite is an AI orchestration tool for [Claude Code](https://docs.anthropic.com/en/docs/claude-code). It combines structured project management with built-in quality discipline: TDD enforcement, anti-rationalization guards, multi-level code review, and automatic failure recovery — all driven by a state machine that keeps multi-phase projects on track.
5
+ GSD-Lite is an AI orchestration tool for [Claude Code](https://docs.anthropic.com/en/docs/claude-code). It combines structured project management with built-in quality discipline: TDD enforcement, anti-rationalization guards, multi-level code review, and automatic failure recovery — all driven by a 12-state workflow machine that keeps multi-phase projects on track.
6
6
 
7
7
  **Discuss thoroughly, execute automatically.** Have as many rounds of requirement discussion as needed. Once the plan is approved, GSD-Lite auto-executes: coding, self-review, independent review, verification, and phase advancement — with minimal human intervention.
8
8
 
@@ -10,7 +10,7 @@ GSD-Lite is an AI orchestration tool for [Claude Code](https://docs.anthropic.co
10
10
 
11
11
  ### Structured Execution Engine
12
12
  - **Phase-based project management** — Break work into phases with ordered tasks, dependency tracking, and handoff gates
13
- - **State machine orchestration** — 12 workflow modes with precise state transitions, persistent to `state.json`
13
+ - **12-state workflow machine** — `planning executing_task → reviewing_task → reviewing_phase → completed` with precise transitions, persistent to `state.json`
14
14
  - **Automatic task scheduling** — Gate-aware dependency resolution determines what runs next
15
15
  - **Session resilience** — Stop anytime, resume exactly where you left off — crash protection via Stop hook auto-saves state markers
16
16
 
@@ -32,13 +32,19 @@ GSD-Lite is an AI orchestration tool for [Claude Code](https://docs.anthropic.co
32
32
  - **Parallel task scheduling** — Independent tasks within the same phase are identified for concurrent dispatch
33
33
  - **Auto PR suggestion** — Phase/project completion prompts PR creation with evidence summary
34
34
 
35
- ### Context Protection
35
+ ### Context Protection & Monitoring
36
36
  - **Subagent isolation** — Each task runs in its own agent context, preventing cross-contamination
37
- - **StatusLine monitoring** — Real-time context health tracking via Claude Code StatusLine
37
+ - **Real-time context health monitoring** — StatusLine tracks context usage and project phase; composite StatusLine support coexists with other plugins
38
38
  - **Session lifecycle hooks** — Stop hook writes crash marker; SessionStart injects project status into CLAUDE.md; resume detects non-graceful exits
39
39
  - **Evidence-based verification** — Every claim backed by command output, not assertions
40
40
  - **Research with TTL** — Research artifacts include volatility ratings and expiration dates
41
41
 
42
+ ### Auto-Update & Version Management
43
+ - **Automatic update checks** — Checks GitHub Releases every 24 hours with rate-limit backoff
44
+ - **Version drift detection** — Server startup compares running version against disk and plugin registry, warns on mismatch
45
+ - **Smart cache management** — Keeps latest 3 cached versions, auto-prunes old entries
46
+ - **Idempotent installer** — Reinstall anytime without uninstalling; legacy files auto-cleaned
47
+
42
48
  ## Architecture
43
49
 
44
50
  ```
@@ -54,8 +60,8 @@ User → discuss + research (confirm requirements) → approve plan → auto-exe
54
60
  |---------|---------|
55
61
  | `/gsd:start` | Interactive start — discuss requirements, research, plan, then auto-execute |
56
62
  | `/gsd:prd <input>` | Start from a requirements doc or description text |
57
- | `/gsd:resume` | Resume execution from saved state |
58
- | `/gsd:status` | View project progress dashboard |
63
+ | `/gsd:resume` | Resume execution from saved state with workspace validation |
64
+ | `/gsd:status` | View project progress dashboard (derived from canonical state fields) |
59
65
  | `/gsd:stop` | Save state and pause execution |
60
66
  | `/gsd:doctor` | Diagnostic checks on GSD-Lite installation and project health |
61
67
 
@@ -68,6 +74,17 @@ User → discuss + research (confirm requirements) → approve plan → auto-exe
68
74
  | **researcher** | Ecosystem research (Context7 → official docs → web) | Confidence scoring + TTL |
69
75
  | **debugger** | 4-phase systematic root cause analysis | Root Cause Iron Law |
70
76
 
77
+ ### 6 Workflows
78
+
79
+ | Workflow | Purpose |
80
+ |----------|---------|
81
+ | `tdd-cycle` | RED-GREEN-REFACTOR TDD cycle enforcement |
82
+ | `review-cycle` | Two-level review gates and accept/rework decisions |
83
+ | `debugging` | 4-phase root cause analysis process |
84
+ | `research` | Research with confidence scoring and TTL expiration |
85
+ | `deviation-rules` | Anti-rationalization guards and red-flag checklists |
86
+ | `execution-flow` | Complete task execution cycle from dispatch to checkpoint |
87
+
71
88
  ### MCP Server (11 Tools)
72
89
 
73
90
  | Tool | Purpose |
@@ -84,6 +101,19 @@ User → discuss + research (confirm requirements) → approve plan → auto-exe
84
101
  | `orchestrator-handle-researcher-result` | Store research artifacts and decisions |
85
102
  | `orchestrator-handle-debugger-result` | Process root cause analysis, re-dispatch executor |
86
103
 
104
+ ### 8 References
105
+
106
+ | Reference | Content |
107
+ |-----------|---------|
108
+ | `execution-loop` | 9-step execution loop specification (single source of truth) |
109
+ | `review-classification` | Review level classification decision tree (L0/L1/L2) |
110
+ | `evidence-spec` | Evidence validation and citation rules |
111
+ | `state-diagram` | 12-state lifecycle workflow machine diagram |
112
+ | `testing-patterns` | Test structure and patterns |
113
+ | `anti-rationalization-full` | Full red-flag checklist for agents |
114
+ | `git-worktrees` | Git worktree isolation strategy |
115
+ | `questioning` | Requirements clarification patterns |
116
+
87
117
  ## Installation
88
118
 
89
119
  ### Method 1: Claude Code Plugin (Recommended)
@@ -96,7 +126,7 @@ User → discuss + research (confirm requirements) → approve plan → auto-exe
96
126
  /plugin install gsd
97
127
  ```
98
128
 
99
- Automatically registers all commands, agents, workflows, MCP server, and hooks. Run these commands inside a Claude Code session.
129
+ Automatically registers all commands, agents, workflows, MCP server, hooks, and auto-update. Run these commands inside a Claude Code session.
100
130
 
101
131
  ### Method 2: npx
102
132
 
@@ -113,12 +143,14 @@ cd gsd-lite && npm install && node cli.js install
113
143
 
114
144
  Methods 2 & 3 write components to `~/.claude/` and register the MCP server in `settings.json`.
115
145
 
146
+ The installer copies commands, agents, workflows, references, and hooks to `~/.claude/`, and sets up the MCP server runtime in `~/.claude/gsd/`.
147
+
116
148
  Uninstall: `node cli.js uninstall` or `npx gsd-lite uninstall`
117
149
 
118
150
  ## Upgrade
119
151
 
120
152
  ```bash
121
- # Plugin
153
+ # Plugin (auto-update checks GitHub Releases every 24h)
122
154
  /plugin update gsd
123
155
 
124
156
  # npx
@@ -130,6 +162,7 @@ git pull && npm install && node cli.js install
130
162
 
131
163
  - Installer is idempotent — no need to uninstall first
132
164
  - Upgrades from older versions auto-clean legacy files
165
+ - Smart cache management keeps latest 3 versions, prunes old entries
133
166
  - Restart Claude Code after updating to load new MCP server / hooks
134
167
 
135
168
  ## Quick Start
@@ -204,8 +237,10 @@ executor retries → with debugger guidance injected
204
237
  All state lives in `.gsd/state.json` — a single source of truth with:
205
238
  - Canonical fields (whitelist-controlled, schema-validated)
206
239
  - Lifecycle state machine (pending → running → checkpointed → accepted)
240
+ - Optimistic concurrency control (`_version` field with `VERSION_CONFLICT` detection)
207
241
  - Evidence references (command outputs, test results)
208
242
  - Research artifacts and decision index
243
+ - Incremental validation (simple field updates use fast path; phases use full validation)
209
244
 
210
245
  ## Comparison with GSD
211
246
 
@@ -213,20 +248,22 @@ All state lives in `.gsd/state.json` — a single source of truth with:
213
248
  |-----------|-----|----------|
214
249
  | Commands | 32 | **6** |
215
250
  | Agents | 12 | **4** |
216
- | Source files | 100+ | **~48** |
251
+ | Source files | 100+ | **~15** |
217
252
  | Installer | 2465 lines | **~290 lines** |
218
253
  | User interactions | 6+ confirmations | **Typically 2** |
219
254
  | TDD / Anti-rationalization | No | **Yes** |
220
255
  | State machine recovery | Partial | **Full (12 modes)** |
221
256
  | Evidence-based verification | No | **Yes** |
257
+ | Auto-update | No | **Yes** |
258
+ | Context health monitoring | No | **Yes** |
222
259
 
223
260
  ## Project Structure
224
261
 
225
262
  ```
226
263
  gsd-lite/
227
- ├── src/ # MCP Server + tools
228
- │ ├── server.js # MCP Server entry (11 tools)
229
- │ ├── schema.js # State schema + lifecycle validation
264
+ ├── src/ # MCP Server + tools (15 source files)
265
+ │ ├── server.js # MCP Server entry (11 tools + version drift detection)
266
+ │ ├── schema.js # State schema + lifecycle validation + incremental validation
230
267
  │ ├── utils.js # Shared utilities (atomic writes, git, file lock)
231
268
  │ └── tools/
232
269
  │ ├── state/ # State management (modular)
@@ -236,7 +273,7 @@ gsd-lite/
236
273
  │ │ └── index.js # Re-exports
237
274
  │ ├── orchestrator/ # Orchestration logic (modular)
238
275
  │ │ ├── helpers.js # Shared constants, preflight, dispatch
239
- │ │ ├── resume.js # Workflow resume state machine
276
+ │ │ ├── resume.js # Workflow resume state machine (12 modes)
240
277
  │ │ ├── executor.js # Executor result handler
241
278
  │ │ ├── reviewer.js # Reviewer result handler
242
279
  │ │ ├── debugger.js # Debugger result handler
@@ -246,19 +283,24 @@ gsd-lite/
246
283
  ├── commands/ # 6 slash commands (start, prd, resume, status, stop, doctor)
247
284
  ├── agents/ # 4 subagent prompts (executor, reviewer, researcher, debugger)
248
285
  ├── workflows/ # 6 core workflows (TDD, review, debug, research, deviation, execution-flow)
249
- ├── references/ # 8 reference docs
250
- ├── hooks/ # Session lifecycle (StatusLine + PostToolUse + SessionStart + Stop + AutoUpdate)
251
- └── lib/ # Shared hook utilities (gsd-finder)
252
- ├── tests/ # 866 tests (unit + simulation + E2E)
286
+ ├── references/ # 8 reference docs (execution-loop, state-diagram, evidence-spec, etc.)
287
+ ├── hooks/ # Session lifecycle hooks
288
+ ├── gsd-auto-update.cjs # Auto-update from GitHub Releases (24h check interval)
289
+ ├── gsd-context-monitor.cjs # Real-time context health monitoring
290
+ │ ├── gsd-session-init.cjs # Session initialization + CLAUDE.md status injection
291
+ │ ├── gsd-session-stop.cjs # Graceful shutdown with crash markers
292
+ │ ├── gsd-statusline.cjs # StatusLine display (composite-aware)
293
+ │ └── lib/ # Shared hook utilities (gsd-finder, composite statusline, semver)
294
+ ├── tests/ # 909 tests (unit + simulation + E2E integration)
253
295
  ├── cli.js # Install/uninstall CLI entry
254
- ├── install.js # Installation script
296
+ ├── install.js # Installation script (plugin-aware, idempotent)
255
297
  └── uninstall.js # Uninstall script
256
298
  ```
257
299
 
258
300
  ## Testing
259
301
 
260
302
  ```bash
261
- npm test # Run all 866 tests
303
+ npm test # Run all 909 tests
262
304
  npm run test:coverage # Tests + coverage report (94%+ lines, 83%+ branches)
263
305
  npm run lint # Biome lint
264
306
  node --test tests/file.js # Run a single test file
@@ -270,6 +312,11 @@ node --test tests/file.js # Run a single test file
270
312
  - [Engineering Tasks](docs/gsd-lite-engineering-tasks.md) — 38 implementation tasks (5 phases, all complete)
271
313
  - [Calibration Notes](docs/calibration-notes.md) — Context threshold and TTL calibration
272
314
 
315
+ ## Requirements
316
+
317
+ - Node.js >= 20.0.0
318
+ - [Claude Code](https://docs.anthropic.com/en/docs/claude-code)
319
+
273
320
  ## License
274
321
 
275
322
  MIT
package/install.js CHANGED
@@ -183,6 +183,11 @@ export function main() {
183
183
  // 6. Stable runtime for MCP server
184
184
  copyDir(join(__dirname, 'src'), join(RUNTIME_DIR, 'src'), 'runtime/src → ~/.claude/gsd/src/');
185
185
  copyFile(join(__dirname, 'package.json'), join(RUNTIME_DIR, 'package.json'), 'runtime/package.json → ~/.claude/gsd/package.json');
186
+ // Copy lock file so `npm ci` works when node_modules are not present (npx scenario)
187
+ const lockFile = join(__dirname, 'package-lock.json');
188
+ if (existsSync(lockFile)) {
189
+ copyFile(lockFile, join(RUNTIME_DIR, 'package-lock.json'), 'runtime/package-lock.json → ~/.claude/gsd/package-lock.json');
190
+ }
186
191
 
187
192
  // 7. Runtime dependencies — copy local node_modules or install fresh (npx hoists deps)
188
193
  const localNM = join(__dirname, 'node_modules');
@@ -190,8 +195,11 @@ export function main() {
190
195
  copyDir(localNM, join(RUNTIME_DIR, 'node_modules'), 'runtime/node_modules (copied)');
191
196
  } else if (!DRY_RUN) {
192
197
  log(' ⧗ Installing runtime dependencies...');
198
+ const lockFile = join(RUNTIME_DIR, 'package-lock.json');
199
+ const hasLockFile = existsSync(lockFile);
200
+ const installCmd = hasLockFile ? 'npm ci --omit=dev' : 'npm install --omit=dev --no-fund --no-audit';
193
201
  try {
194
- execSync('npm ci --omit=dev', { cwd: RUNTIME_DIR, stdio: 'pipe' });
202
+ execSync(installCmd, { cwd: RUNTIME_DIR, stdio: 'pipe' });
195
203
  log(' ✓ runtime dependencies installed');
196
204
  } catch (err) {
197
205
  log(` ✗ Failed to install runtime dependencies: ${err.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gsd-lite",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "AI orchestration tool for Claude Code — GSD management shell + Superpowers quality core",
5
5
  "type": "module",
6
6
  "bin": {