agent-method 1.5.3 → 1.5.6

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.
Files changed (64) hide show
  1. package/README.md +197 -57
  2. package/bin/wwa.js +35 -9
  3. package/docs/internal/doc-tokens.yaml +452 -0
  4. package/docs/internal/feature-registry.yaml +13 -1
  5. package/lib/cli/casestudy.js +691 -0
  6. package/lib/cli/check.js +71 -71
  7. package/lib/cli/close.js +446 -0
  8. package/lib/cli/completion.js +639 -0
  9. package/lib/cli/digest.js +66 -0
  10. package/lib/cli/docs.js +207 -0
  11. package/lib/cli/helpers.js +49 -2
  12. package/lib/cli/implement.js +159 -0
  13. package/lib/cli/init.js +25 -6
  14. package/lib/cli/plan.js +128 -0
  15. package/lib/cli/refine.js +202 -202
  16. package/lib/cli/review.js +68 -0
  17. package/lib/cli/scan.js +28 -28
  18. package/lib/cli/status.js +61 -61
  19. package/lib/cli/upgrade.js +150 -147
  20. package/lib/init.js +478 -296
  21. package/package.json +12 -4
  22. package/templates/README.md +73 -25
  23. package/templates/entry-points/.cursorrules +143 -14
  24. package/templates/entry-points/AGENT.md +143 -14
  25. package/templates/entry-points/CLAUDE.md +143 -14
  26. package/templates/extensions/analytical-system.md +1 -1
  27. package/templates/extensions/code-project.md +1 -1
  28. package/templates/extensions/data-exploration.md +1 -1
  29. package/templates/full/.context/BASE.md +33 -0
  30. package/templates/full/.context/METHODOLOGY.md +62 -5
  31. package/templates/full/.cursorrules +128 -18
  32. package/templates/full/AGENT.md +128 -18
  33. package/templates/full/CLAUDE.md +128 -18
  34. package/templates/full/Management/DIGEST.md +23 -0
  35. package/templates/full/Management/STATUS.md +46 -0
  36. package/templates/full/PROJECT.md +34 -0
  37. package/templates/full/Reviews/INDEX.md +41 -0
  38. package/templates/full/Reviews/backlog.md +52 -0
  39. package/templates/full/Reviews/plan.md +43 -0
  40. package/templates/full/Reviews/project.md +41 -0
  41. package/templates/full/Reviews/requirements.md +42 -0
  42. package/templates/full/Reviews/roadmap.md +41 -0
  43. package/templates/full/Reviews/state.md +56 -0
  44. package/templates/full/SESSION-LOG.md +29 -0
  45. package/templates/full/SUMMARY.md +7 -4
  46. package/templates/full/agentWorkflows/INDEX.md +42 -0
  47. package/templates/full/agentWorkflows/observations.md +65 -0
  48. package/templates/full/agentWorkflows/patterns.md +68 -0
  49. package/templates/full/agentWorkflows/sessions.md +92 -0
  50. package/templates/full/intro/README.md +39 -0
  51. package/templates/starter/.context/BASE.md +35 -0
  52. package/templates/starter/.context/METHODOLOGY.md +59 -5
  53. package/templates/starter/.cursorrules +135 -13
  54. package/templates/starter/AGENT.md +135 -13
  55. package/templates/starter/CLAUDE.md +135 -13
  56. package/templates/starter/Management/DIGEST.md +23 -0
  57. package/templates/starter/Management/STATUS.md +46 -0
  58. package/templates/starter/PROJECT.md +34 -0
  59. package/templates/starter/Reviews/INDEX.md +75 -0
  60. package/templates/starter/SESSION-LOG.md +29 -0
  61. package/templates/starter/SUMMARY.md +27 -0
  62. package/templates/starter/agentWorkflows/INDEX.md +61 -0
  63. package/templates/starter/intro/README.md +37 -0
  64. package/templates/full/docs/index.md +0 -46
package/README.md CHANGED
@@ -1,87 +1,112 @@
1
1
  # wwa
2
2
 
3
- A file-structure-first methodology for AI-agent-assisted development. Files are the interface — no proprietary tools, no vendor lock-in. Works with Claude Code, Cursor, or any agent that reads markdown.
3
+ A file-structure-first methodology for AI-agent-assisted development. Files are the interface — no proprietary tools, no vendor lock-in. Works with Claude Code, Cursor, Gemini, Codex, or any agent that reads markdown.
4
4
 
5
5
  `ai-agents` `prompt-engineering` `developer-tools` `context-engineering` `agent-framework` `mcp` `model-context-protocol` `cursor` `claude-code`
6
6
 
7
+ ---
8
+
7
9
  ## Who This Is For
8
10
 
9
- People who want to describe what they want and have it built correctly without losing context between sessions, re-explaining decisions, or watching the agent drift off scope.
11
+ There is real stigma around AI-assisted development, and it's warranted. Most "vibe coding" produces work that no one fully understands — not the developer, not the agent, and certainly not the next person who reads the code.
12
+
13
+ This spec-drive development project takes a different position. Three active case studies are being run to examine how development agents reason, where they lose context, and what structures keep their output connected to human-readable, auditable decisions. The methodology tracks agent behavior session over session — what worked, what was revised, what the human had to correct — and feeds that data back into improving future collaboration.
14
+
15
+ If you want to build with an agent but also want full visibility into the work being done, the decisions being made, and a path to measurably improving your agent's effectiveness over time.
10
16
 
11
- If you've ever had an AI agent forget what you told it yesterday, make the same mistake twice, or change files it shouldn't have touched — this fixes that.
17
+ ---
12
18
 
13
19
  ## Requirements
14
20
 
15
- - **Node.js >= 18**
16
- - **A supported AI runtime** — [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor](https://cursor.sh), or any agent that reads markdown files
21
+ - **Node.js >= 18** — [download](https://nodejs.org/)
22
+ - **A supported AI runtime** — [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Cursor](https://cursor.sh) / Composer, [Gemini](https://gemini.google.com), [Codex](https://openai.com/index/codex/), or any agent that reads markdown
23
+
24
+ ---
25
+
26
+ ## Installation
17
27
 
18
- ## Getting Started
28
+ ### Quick start (recommended)
29
+
30
+ Install once, use everywhere:
19
31
 
20
32
  ```bash
21
- npx wwa init
33
+ npm install -g agent-method
34
+ wwa init
22
35
  ```
23
36
 
24
- The installer guides you through everything:
37
+ The installer walks you through everything:
25
38
 
26
39
  1. **Project type** — Code, Data, Analytical, Mixed, or General
27
40
  2. **Directory** — where to set up (default: current directory)
28
- 3. **Runtime** — Claude Code, Cursor, or all (creates the right entry point)
29
- 4. **Template tier** — Starter (7 files, most projects) or Full (11+ files, complex projects)
41
+ 3. **Runtime** — Claude Code, Cursor, or Other/All (Gemini, Codex, Composer, etc.)
42
+ 4. **Template tier** — Starter (17 files, most projects) or Full (30 files, complex projects)
30
43
  5. **Integration profile** — Standard (Sonnet, recommended), Lite (Haiku), or Full (Opus)
31
44
 
32
45
  Done. Open `PROJECT.md` and start working with your AI agent.
33
46
 
34
- ### Verify
47
+ To update an existing project later:
35
48
 
36
49
  ```bash
37
- npx wwa check
50
+ wwa upgrade # adds new methodology sections, never overwrites
51
+ wwa status # check your current version
38
52
  ```
39
53
 
40
- Validates your entry point, auto-detects project type, and reports any issues.
41
-
42
- ## Staying Updated
54
+ <details>
55
+ <summary><strong>Zero-install</strong> — no global install needed</summary>
43
56
 
44
57
  ```bash
45
- npx wwa upgrade
58
+ npx agent-method init
46
59
  ```
47
60
 
48
- Brownfield-safe appends new methodology sections without overwriting your customizations. Check your current version with `npx wwa status`.
61
+ Runs directly via npx without installing anything. Useful for one-time setup or CI.
49
62
 
50
- ## Non-interactive Install (CI, Scripts, Docker)
63
+ </details>
64
+
65
+ <details>
66
+ <summary><strong>Non-interactive install</strong> — CI, scripts, Docker</summary>
67
+
68
+ Specify everything on the command line (no prompts):
51
69
 
52
70
  ```bash
53
- # Specify everything on the command line
54
- npx wwa init code ~/my-project --runtime claude --tier starter --profile standard
71
+ # Full options
72
+ wwa init code ~/my-project --runtime claude --tier starter --profile standard
55
73
 
56
- # Just the type and directory (defaults for the rest)
57
- npx wwa init code ~/my-project
74
+ # Just type and directory (defaults for the rest)
75
+ wwa init code ~/my-project
58
76
 
59
77
  # Data project for Cursor
60
- npx wwa init data ~/my-data --runtime cursor
78
+ wwa init data ~/my-data --runtime cursor
61
79
 
62
80
  # Analytical project with full methodology
63
- npx wwa init context ~/my-analysis --tier full --profile full
81
+ wwa init context ~/my-analysis --tier full --profile full
64
82
  ```
65
83
 
66
- ### Install globally
84
+ **Options:**
67
85
 
68
- Instead of `npx` each time:
86
+ | Flag | Values | Default |
87
+ |------|--------|---------|
88
+ | `--runtime` | `claude`, `cursor`, `all` | `all` |
89
+ | `--tier` | `starter`, `full` | `starter` |
90
+ | `--profile` | `lite`, `standard`, `full` | `standard` |
91
+ | `--onboarding` | `greenfield`, `brownfield`, `auto` | `auto` |
69
92
 
70
- ```bash
71
- npm install -g wwa
72
- ```
93
+ </details>
73
94
 
74
- ### Python alternative
95
+ <details>
96
+ <summary><strong>Python alternative</strong> — same commands, same templates</summary>
75
97
 
76
- Same commands, same registry, same templates:
98
+ Requires Python >= 3.9:
77
99
 
78
100
  ```bash
79
- pip install wwa-tools # requires Python >= 3.9
101
+ pip install wwa-tools
80
102
  ```
81
103
 
82
- ## Development Installation
104
+ The Python CLI is an independent implementation sharing the same registry and templates. It is **not** required for the Node.js CLI — pick whichever fits your environment.
105
+
106
+ </details>
83
107
 
84
- Clone and run locally for testing or contributing:
108
+ <details>
109
+ <summary><strong>Development install</strong> — contributing or testing locally</summary>
85
110
 
86
111
  ```bash
87
112
  git clone https://github.com/anthropics/wwa.git
@@ -98,42 +123,93 @@ bash setup.sh ~/my-project
98
123
 
99
124
  Interactive — asks project name, type, runtime, tier, lifecycle, and profile.
100
125
 
126
+ </details>
127
+
128
+ ---
129
+
130
+ ## Verify
131
+
132
+ ```bash
133
+ wwa check
134
+ ```
135
+
136
+ Validates your entry point, auto-detects project type, and reports any issues.
137
+
138
+ ---
139
+
140
+ ## Staying Updated
141
+
142
+ ```bash
143
+ wwa upgrade
144
+ ```
145
+
146
+ Brownfield-safe — appends new methodology sections without overwriting your customizations.
147
+
148
+ ```bash
149
+ wwa status # check your current version
150
+ ```
151
+
152
+ ---
153
+
101
154
  ## Commands
102
155
 
103
156
  | Command | What it does |
104
157
  |---------|-------------|
105
- | `wwa init` | Set up a new project (interactive) |
158
+ | `wwa init` | Set up a new project (interactive — copies templates, feature registry, creates doc-tokens) |
106
159
  | `wwa check` | Validate your entry point |
107
160
  | `wwa scan` | Detect project type from directory contents |
108
161
  | `wwa route "<query>"` | Show how a query routes through the pipeline |
162
+ | `wwa plan` | Display current plan status from PLAN.md |
163
+ | `wwa implement` | Show implementation guidance for current step |
164
+ | `wwa review` | Display project review dashboard |
165
+ | `wwa digest` | Show management digest |
166
+ | `wwa close` | Session close checklist, project snapshot, updates .context/doc-tokens.yaml |
109
167
  | `wwa refine` | Extract refinement report from SESSION-LOG.md |
168
+ | `wwa casestudy` | Extract case study with project tokens + methodology reference data |
169
+ | `wwa docs` | Show docs coverage report from .context/DOCS-MAP.md |
110
170
  | `wwa status` | Check if your methodology version is current |
111
171
  | `wwa upgrade` | Brownfield-safe methodology update |
172
+ | `wwa completion` | Generate shell tab-completion (bash/zsh/fish/PowerShell) |
112
173
  | `wwa serve` | Start MCP server for IDE integration |
113
174
  | `wwa watch` | Watch files, validate on save |
114
175
 
115
176
  All commands support `--json` for machine-readable output.
116
177
 
117
- ### MCP Server (AI tool integration)
178
+ <details>
179
+ <summary><strong>MCP Server</strong> — expose tools directly to your AI agent</summary>
118
180
 
119
- Expose methodology tools directly to your AI agent via the [Model Context Protocol](https://modelcontextprotocol.io):
181
+ Add to your IDE's MCP config (VS Code, Cursor, Claude Code, Cline):
120
182
 
121
183
  ```json
122
184
  {
123
185
  "mcpServers": {
124
186
  "wwa": {
125
- "command": "npx",
126
- "args": ["wwa", "serve"]
187
+ "command": "wwa",
188
+ "args": ["serve"]
127
189
  }
128
190
  }
129
191
  }
130
192
  ```
131
193
 
132
- 8 tools available. Works with VS Code, Cursor, Claude Code, Cline. See [MCP Integration Guide](docs/guides/mcp-integration.md).
194
+ **8 tools available:**
195
+
196
+ | Tool | What it does |
197
+ |------|-------------|
198
+ | `route_query` | Classify a query and return read/write sets |
199
+ | `validate_entry_point` | Check entry point for issues |
200
+ | `detect_project` | Auto-detect project type from files |
201
+ | `resolve_cascade` | Show what files to update after a change |
202
+ | `check_capability` | Verify model meets task requirements |
203
+ | `lookup_feature` | Look up a methodology feature by ID |
204
+ | `list_workflows` | List available guided workflows |
205
+ | `refactor_markdown` | Analyze files over 300 lines, suggest splits |
206
+
207
+ See [MCP Integration Guide](docs/guides/mcp-integration.md) for full setup.
133
208
 
134
- ### Pipeline commands (advanced)
209
+ </details>
135
210
 
136
- For debugging individual pipeline stages:
211
+ <details>
212
+ <summary><strong>Pipeline commands</strong> — debug individual pipeline stages</summary>
137
213
 
138
214
  ```bash
139
215
  wwa pipeline classify "<query>" --project-type code
@@ -143,6 +219,12 @@ wwa pipeline cascade --trigger phase_completion
143
219
  wwa pipeline test fixtures/
144
220
  ```
145
221
 
222
+ These are primarily for debugging and development. Most users won't need them.
223
+
224
+ </details>
225
+
226
+ ---
227
+
146
228
  ## What You Get
147
229
 
148
230
  ```
@@ -153,20 +235,57 @@ your-project/
153
235
  STATE.md # Decisions, blockers, current position
154
236
  ROADMAP.md # Phase breakdown with gate criteria
155
237
  PLAN.md # Current task with verification criteria
238
+ SUMMARY.md # Session audit trail
239
+ SESSION-LOG.md # Session metrics for case study data
156
240
  .context/
157
241
  BASE.md # Core context — always loaded with entry point
158
242
  METHODOLOGY.md # Workflows, conventions overflow
243
+ feature-registry.yaml # Feature registry (populated from package)
244
+ doc-tokens.yaml # Project metrics (updated by wwa close)
245
+ Management/
246
+ DIGEST.md # High-effort task digest for managers
247
+ STATUS.md # Project health snapshot
248
+ Reviews/
249
+ INDEX.md # Project intelligence dashboard
250
+ agentWorkflows/
251
+ INDEX.md # Agent workflow performance overview
252
+ intro/
253
+ README.md # Methodology overview + link to full docs
159
254
  ```
160
255
 
161
- Full tier adds: `REQUIREMENTS.md`, `SUMMARY.md`, `.context/REGISTRY.md`, `docs/`, `todos/backlog.md`.
256
+ <details>
257
+ <summary><strong>Full tier</strong> — adds these files for complex projects</summary>
162
258
 
163
- Every file ships with **inline instructions** — the agent reads them and helps you populate each section.
259
+ ```
260
+ REQUIREMENTS.md # Formal requirements with traceability
261
+ .context/
262
+ REGISTRY.md # Navigation registry for large projects
263
+ COMPOSITION.md # Specialist template for analytical projects
264
+ Reviews/
265
+ roadmap.md # Phase progress synthesis
266
+ plan.md # Plan execution history
267
+ project.md # Project scope evolution
268
+ requirements.md # Requirements traceability matrix
269
+ state.md # Decision trends and blocker analysis
270
+ backlog.md # Backlog health and aging
271
+ agentWorkflows/
272
+ sessions.md # Session analysis from SESSION-LOG.md
273
+ patterns.md # Extracted behavioral patterns
274
+ observations.md # Case study observations
275
+ todos/
276
+ backlog.md # Ideas and future work
277
+ ```
278
+
279
+ </details>
280
+
281
+ Every file ships with **inline instructions** — the agent reads them and helps you populate each section. The agent also creates `.context/DOCS-MAP.md` during your first session to map project components to documentation files.
164
282
 
165
283
  ---
166
284
 
167
285
  ## About
168
286
 
169
- ### The problem
287
+ <details>
288
+ <summary><strong>The problem</strong></summary>
170
289
 
171
290
  AI-agent-assisted development breaks down in three ways:
172
291
 
@@ -176,7 +295,10 @@ AI-agent-assisted development breaks down in three ways:
176
295
 
177
296
  Existing solutions tie you to specific agent runtimes through CLI tools and slash commands. wwa solves this with **files as the interface** — readable, portable, agent-agnostic.
178
297
 
179
- ### How it works
298
+ </details>
299
+
300
+ <details>
301
+ <summary><strong>How it works</strong></summary>
180
302
 
181
303
  **Scoping rules** — The entry point contains a table mapping query types to file sets. The agent loads only the relevant files and constrains its writes. Context windows stay small, responses stay focused.
182
304
 
@@ -186,17 +308,23 @@ Existing solutions tie you to specific agent runtimes through CLI tools and slas
186
308
 
187
309
  **Cross-session memory** — `STATE.md` persists decisions, blockers, and current position across sessions. No re-explaining what happened yesterday.
188
310
 
189
- ### Integration profiles
311
+ </details>
312
+
313
+ <details>
314
+ <summary><strong>Integration profiles</strong></summary>
190
315
 
191
316
  | Profile | Best for | What's included |
192
317
  |---------|----------|-----------------|
193
- | **Lite** | Haiku, simple projects | STATE.md, minimal rules, 2 cascade rules |
194
- | **Standard** | Sonnet (recommended) | + PLAN.md, context pairing, 6 cascade rules |
195
- | **Full** | Opus, complex projects | All rules inline, all intelligence layer files |
318
+ | **Lite** | Haiku, GPT-3.5, Gemini Flash | STATE.md, minimal rules, 2 cascade rules |
319
+ | **Standard** | Sonnet, GPT-4, Gemini Pro, Codex (recommended) | + PLAN.md, context pairing, 6 cascade rules |
320
+ | **Full** | Opus, o1, Gemini Ultra | All rules inline, all intelligence layer files |
196
321
 
197
322
  Three rules followed consistently beat ten rules followed inconsistently.
198
323
 
199
- ### Project types
324
+ </details>
325
+
326
+ <details>
327
+ <summary><strong>Project types</strong></summary>
200
328
 
201
329
  | Type | CLI name | What's added |
202
330
  |------|----------|-------------|
@@ -206,22 +334,32 @@ Three rules followed consistently beat ten rules followed inconsistently.
206
334
  | **Mixed** | `mix` | Multiple extensions combined |
207
335
  | **General** | `general` | Universal scoping and cascade rules only |
208
336
 
209
- ### Brownfield projects
337
+ </details>
210
338
 
211
- Works with existing codebases:
339
+ <details>
340
+ <summary><strong>Brownfield projects</strong> — works with existing codebases</summary>
212
341
 
213
342
  - **Never overwrites** existing files
214
343
  - **Appends** methodology sections to your existing entry point
215
344
  - **Preserves** all your existing conventions and rules
216
345
  - **Suggests** the Discovery workflow for systematic codebase understanding
217
346
 
218
- ### Supported runtimes
347
+ </details>
348
+
349
+ <details>
350
+ <summary><strong>Supported runtimes</strong></summary>
219
351
 
220
352
  | File | Runtime | Auto-loaded? |
221
353
  |------|---------|:------------:|
222
354
  | `CLAUDE.md` | Claude Code | Yes |
223
- | `.cursorrules` | Cursor | Yes |
224
- | `AGENT.md` | Any agent | No (paste or reference manually) |
355
+ | `.cursorrules` | Cursor / Cursor Composer | Yes |
356
+ | `AGENT.md` | Gemini, Codex, Cline, Aider, or any agent that reads markdown | No (paste or reference manually) |
357
+
358
+ The methodology is **agent-agnostic**. `AGENT.md` works with any AI assistant — copy its contents into your tool's system prompt or context window. The file format is standard markdown; no runtime-specific features are required.
359
+
360
+ </details>
361
+
362
+ ---
225
363
 
226
364
  ## Documentation
227
365
 
@@ -229,12 +367,14 @@ Works with existing codebases:
229
367
  |----------|----------|
230
368
  | [Quick start guide](docs/guides/quick-start.md) | Setup and first session |
231
369
  | [For developers](docs/guides/for-developers.md) | Workflows, context, troubleshooting |
370
+ | [CLI tools reference](docs/guides/for-developers/cli-tools.md) | All 22 commands with examples |
371
+ | [Command reference](docs/guides/for-developers/command-reference.md) | Tabular quick-lookup by project type |
232
372
  | [MCP Integration](docs/guides/mcp-integration.md) | IDE integration (VS Code, Cursor, Claude Code, Cline) |
233
373
  | [For managers](docs/guides/for-managers.md) | Reading project status from methodology files |
234
374
  | [Template kit](templates/README.md) | Template tiers, extensions, bootstrapping |
235
375
  | [Docs hub](docs/index.md) | Full architecture, workflow, and methodology docs |
236
376
 
237
- ## Prior art
377
+ ## Prior Art
238
378
 
239
379
  | System | Relationship |
240
380
  |--------|-------------|
package/bin/wwa.js CHANGED
@@ -6,7 +6,8 @@
6
6
  * Thin entry point: each command is registered from lib/cli/*.js modules.
7
7
  *
8
8
  * Three-tier command structure:
9
- * Tier 1 (developer): check, scan, route, refine, status, upgrade, init
9
+ * Tier 1 (developer): check, scan, route, refine, status, upgrade, init,
10
+ * plan, implement, review, digest, close
10
11
  * Tier 2 (pipeline): wwa pipeline classify/select/resolve/cascade/test
11
12
  * Tier 3 (server): serve (MCP server), watch (file watcher)
12
13
  */
@@ -21,9 +22,17 @@ import { register as refine } from "../lib/cli/refine.js";
21
22
  import { register as status } from "../lib/cli/status.js";
22
23
  import { register as upgrade } from "../lib/cli/upgrade.js";
23
24
  import { register as init } from "../lib/cli/init.js";
25
+ import { register as planCmd } from "../lib/cli/plan.js";
26
+ import { register as implementCmd } from "../lib/cli/implement.js";
27
+ import { register as reviewCmd } from "../lib/cli/review.js";
28
+ import { register as digestCmd } from "../lib/cli/digest.js";
29
+ import { register as closeCmd } from "../lib/cli/close.js";
24
30
  import { register as pipeline } from "../lib/cli/pipeline.js";
25
31
  import { register as serve } from "../lib/cli/serve.js";
26
32
  import { register as watchCmd } from "../lib/cli/watch.js";
33
+ import { register as completionCmd } from "../lib/cli/completion.js";
34
+ import { register as casestudyCmd } from "../lib/cli/casestudy.js";
35
+ import { register as docsCmd } from "../lib/cli/docs.js";
27
36
 
28
37
  const program = new Command();
29
38
 
@@ -32,13 +41,20 @@ program
32
41
  .description(
33
42
  "Methodology tools for AI-agent-assisted development.\n\n" +
34
43
  "Developer commands:\n" +
35
- " check Validate your entry point and project setup\n" +
36
- " scan Detect project type from directory contents\n" +
37
- " route Show how a query routes through the pipeline\n" +
38
- " refine Extract a refinement report from session history\n" +
39
- " status Check if your methodology version is current\n" +
40
- " upgrade Update your project to the latest methodology\n" +
41
- " init Set up a new project with methodology templates\n\n" +
44
+ " check Validate your entry point and project setup\n" +
45
+ " scan Detect project type from directory contents\n" +
46
+ " route Show how a query routes through the pipeline\n" +
47
+ " refine Extract a refinement report from session history\n" +
48
+ " status Check if your methodology version is current\n" +
49
+ " upgrade Update your project to the latest methodology\n" +
50
+ " init Set up a new project with methodology templates\n" +
51
+ " plan Display current plan status from PLAN.md\n" +
52
+ " implement Show implementation guidance for current step\n" +
53
+ " review Display project review dashboard\n" +
54
+ " digest Show management digest\n" +
55
+ " close Session close checklist and cascade reminders\n" +
56
+ " casestudy Extract structured case study from project files\n" +
57
+ " docs Show docs coverage report from DOCS-MAP.md\n\n" +
42
58
  "Pipeline commands (advanced):\n" +
43
59
  " pipeline classify Classify a query against registry patterns\n" +
44
60
  " pipeline select Select workflow for a query type\n" +
@@ -47,7 +63,9 @@ program
47
63
  " pipeline test Run YAML test fixtures\n\n" +
48
64
  "Server commands:\n" +
49
65
  " serve Start MCP server on stdio transport\n" +
50
- " watch Watch files and validate on change"
66
+ " watch Watch files and validate on change\n\n" +
67
+ "Shell completion:\n" +
68
+ " completion Generate tab-completion for bash/zsh/fish/powershell"
51
69
  )
52
70
  .version(pkg.version, "-V, --version");
53
71
 
@@ -59,8 +77,16 @@ refine(program);
59
77
  status(program);
60
78
  upgrade(program);
61
79
  init(program);
80
+ planCmd(program);
81
+ implementCmd(program);
82
+ reviewCmd(program);
83
+ digestCmd(program);
84
+ closeCmd(program);
62
85
  pipeline(program);
63
86
  serve(program);
64
87
  watchCmd(program);
88
+ completionCmd(program);
89
+ casestudyCmd(program);
90
+ docsCmd(program);
65
91
 
66
92
  program.parse();