agent-method 1.5.1 → 1.5.5

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
@@ -1,108 +1,229 @@
1
- # agent-method
1
+ # wwa
2
2
 
3
- A file-structure-first methodology for AI-agent-assisted development. Files are the interface — with optional CLI tools for validation, routing, and project management.
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.
4
4
 
5
- `ai-agents` `prompt-engineering` `developer-tools` `context-engineering` `agent-framework` `markdown` `llm-tools` `ai-workflow` `cursor` `claude-code`
5
+ `ai-agents` `prompt-engineering` `developer-tools` `context-engineering` `agent-framework` `mcp` `model-context-protocol` `cursor` `claude-code`
6
6
 
7
7
  ---
8
8
 
9
- ## The problem
9
+ ## Who This Is For
10
10
 
11
- AI-agent-assisted development breaks down in three ways:
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
12
 
13
- - **Context rot** agent quality degrades as context windows fill with irrelevant conversation
14
- - **Amnesia** — decisions from session N are lost by session N+1
15
- - **Scope drift** without structured gates, work sprawls and progress becomes invisible
13
+ This 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 — this is for you.
16
+
17
+ ---
18
+
19
+ ## Requirements
20
+
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), or any agent that reads markdown files
23
+
24
+ ---
16
25
 
17
- Existing solutions tie you to specific agent runtimes through CLI tools and slash commands. agent-method solves this with **files as the interface** — readable, portable, agent-agnostic.
26
+ ## Installation
18
27
 
19
- ## Quick start
28
+ ### Quick start (recommended)
29
+
30
+ One command, guided prompts:
31
+
32
+ ```bash
33
+ npx agent-method init
34
+ ```
35
+
36
+ The installer walks you through everything:
37
+
38
+ 1. **Project type** — Code, Data, Analytical, Mixed, or General
39
+ 2. **Directory** — where to set up (default: current directory)
40
+ 3. **Runtime** — Claude Code, Cursor, or all (creates the right entry point)
41
+ 4. **Template tier** — Starter (7 files, most projects) or Full (11+ files, complex projects)
42
+ 5. **Integration profile** — Standard (Sonnet, recommended), Lite (Haiku), or Full (Opus)
43
+
44
+ Done. Open `PROJECT.md` and start working with your AI agent.
45
+
46
+ To update an existing project later:
47
+
48
+ ```bash
49
+ npx agent-method upgrade # adds new methodology sections, never overwrites
50
+ npx agent-method status # check your current version
51
+ ```
20
52
 
21
- ### Option A: npx (recommended, zero-install)
53
+ <details>
54
+ <summary><strong>Install globally</strong> — skip <code>npx</code> each time</summary>
22
55
 
23
56
  ```bash
57
+ npm install -g agent-method
58
+ ```
59
+
60
+ After this, use `wwa` directly:
61
+
62
+ ```bash
63
+ wwa init
64
+ wwa check
65
+ wwa status
66
+ ```
67
+
68
+ Both `wwa` and `agent-method` work as command names.
69
+
70
+ </details>
71
+
72
+ <details>
73
+ <summary><strong>Non-interactive install</strong> — CI, scripts, Docker</summary>
74
+
75
+ Specify everything on the command line (no prompts):
76
+
77
+ ```bash
78
+ # Full options
79
+ npx agent-method init code ~/my-project --runtime claude --tier starter --profile standard
80
+
81
+ # Just type and directory (defaults for the rest)
24
82
  npx agent-method init code ~/my-project
83
+
84
+ # Data project for Cursor
85
+ npx agent-method init data ~/my-data --runtime cursor
86
+
87
+ # Analytical project with full methodology
88
+ npx agent-method init context ~/my-analysis --tier full --profile full
25
89
  ```
26
90
 
27
- Replace `code` with your project type: `code`, `context`, `data`, `mix`, or `general`.
91
+ **Options:**
92
+
93
+ | Flag | Values | Default |
94
+ |------|--------|---------|
95
+ | `--runtime` | `claude`, `cursor`, `all` | `all` |
96
+ | `--tier` | `starter`, `full` | `starter` |
97
+ | `--profile` | `lite`, `standard`, `full` | `standard` |
98
+
99
+ </details>
28
100
 
29
- Done. Templates are copied, extensions merged, placeholders filled. Open `PROJECT.md` and start working.
101
+ <details>
102
+ <summary><strong>Python alternative</strong> — same commands, same templates</summary>
30
103
 
31
- ### Option B: Setup script
104
+ Requires Python >= 3.9:
32
105
 
33
106
  ```bash
34
- git clone https://github.com/anthropics/agent-method.git
35
- cd agent-method
36
- bash setup.sh ~/my-project
107
+ pip install wwa-tools
37
108
  ```
38
109
 
39
- Interactive installer asks project name, type, runtime, tier, lifecycle, and profile.
110
+ 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.
111
+
112
+ </details>
40
113
 
41
- ### Option C: Manual copy
114
+ <details>
115
+ <summary><strong>Development install</strong> — contributing or testing locally</summary>
42
116
 
117
+ ```bash
118
+ git clone https://github.com/anthropics/wwa.git
119
+ cd wwa
120
+ npm link
121
+ wwa init code ./test-project --runtime claude
43
122
  ```
44
- cp -r templates/starter/ ~/my-project/
123
+
124
+ Or use the bash setup script directly:
125
+
126
+ ```bash
127
+ bash setup.sh ~/my-project
45
128
  ```
46
129
 
47
- Delete the two entry point files you don't use and fill in `PROJECT.md`.
130
+ Interactive asks project name, type, runtime, tier, lifecycle, and profile.
48
131
 
49
- ## CLI Tools (optional)
132
+ </details>
50
133
 
51
- The methodology works entirely through files, but CLI tools are available for validation, routing, and project management.
134
+ ---
52
135
 
53
- ### Installation
136
+ ## Verify
54
137
 
55
138
  ```bash
56
- npx agent-method # zero-install, runs directly
139
+ npx agent-method check
57
140
  ```
58
141
 
59
- Or install permanently:
142
+ Validates your entry point, auto-detects project type, and reports any issues.
143
+
144
+ ---
145
+
146
+ ## Staying Updated
60
147
 
61
148
  ```bash
62
- npm install -g agent-method # Node.js (global)
63
- pip install agent-method-tools # Python (alternative)
149
+ npx agent-method upgrade
64
150
  ```
65
151
 
66
- Both distributions have identical commands, same registry, same templates.
152
+ Brownfield-safe appends new methodology sections without overwriting your customizations.
153
+
154
+ ```bash
155
+ npx agent-method status # check your current version
156
+ ```
157
+
158
+ ---
67
159
 
68
- ### Developer commands
160
+ ## Commands
69
161
 
70
162
  | Command | What it does |
71
163
  |---------|-------------|
72
- | `npx agent-method check` | Validate your entry point (auto-finds file, auto-detects type) |
73
- | `npx agent-method scan` | Detect project type from directory contents |
74
- | `npx agent-method route "<query>"` | Show how a query routes through the pipeline |
75
- | `npx agent-method refine` | Extract refinement report from SESSION-LOG.md |
76
- | `npx agent-method status` | Check if your methodology version is current |
77
- | `npx agent-method upgrade` | Brownfield-safe methodology update |
78
- | `npx agent-method init <type>` | Describe entry point contents for a project type |
164
+ | `wwa init` | Set up a new project (interactive) |
165
+ | `wwa check` | Validate your entry point |
166
+ | `wwa scan` | Detect project type from directory contents |
167
+ | `wwa route "<query>"` | Show how a query routes through the pipeline |
168
+ | `wwa refine` | Extract refinement report from SESSION-LOG.md |
169
+ | `wwa status` | Check if your methodology version is current |
170
+ | `wwa upgrade` | Brownfield-safe methodology update |
171
+ | `wwa serve` | Start MCP server for IDE integration |
172
+ | `wwa watch` | Watch files, validate on save |
173
+
174
+ All commands support `--json` for machine-readable output.
175
+
176
+ <details>
177
+ <summary><strong>MCP Server</strong> — expose tools directly to your AI agent</summary>
178
+
179
+ Add to your IDE's MCP config (VS Code, Cursor, Claude Code, Cline):
180
+
181
+ ```json
182
+ {
183
+ "mcpServers": {
184
+ "wwa": {
185
+ "command": "npx",
186
+ "args": ["agent-method", "serve"]
187
+ }
188
+ }
189
+ }
190
+ ```
79
191
 
80
- ### Project type aliases
192
+ **8 tools available:**
81
193
 
82
- Use friendly names with any command: `code`, `context`, `data`, `mix`, `general`.
194
+ | Tool | What it does |
195
+ |------|-------------|
196
+ | `route_query` | Classify a query and return read/write sets |
197
+ | `validate_entry_point` | Check entry point for issues |
198
+ | `detect_project` | Auto-detect project type from files |
199
+ | `resolve_cascade` | Show what files to update after a change |
200
+ | `check_capability` | Verify model meets task requirements |
201
+ | `lookup_feature` | Look up a methodology feature by ID |
202
+ | `list_workflows` | List available guided workflows |
203
+ | `refactor_markdown` | Analyze files over 300 lines, suggest splits |
83
204
 
84
- ```bash
85
- agent-method init code # software project
86
- agent-method init context # analytical/prompt project (PromptStudy)
87
- agent-method init data # data index/querying project (SysMLv2)
88
- agent-method init mix # multi-type project
89
- agent-method route "query" -p context # route with project type
90
- ```
205
+ See [MCP Integration Guide](docs/guides/mcp-integration.md) for full setup.
91
206
 
92
- ### Advanced: pipeline subcommands
207
+ </details>
93
208
 
94
- For debugging individual pipeline stages: `npx agent-method pipeline classify|select|resolve|cascade|test`.
209
+ <details>
210
+ <summary><strong>Pipeline commands</strong> — debug individual pipeline stages</summary>
211
+
212
+ ```bash
213
+ wwa pipeline classify "<query>" --project-type code
214
+ wwa pipeline select code_change
215
+ wwa pipeline resolve WF-02 --stage execute
216
+ wwa pipeline cascade --trigger phase_completion
217
+ wwa pipeline test fixtures/
218
+ ```
95
219
 
96
- ### Key features
220
+ These are primarily for debugging and development. Most users won't need them.
97
221
 
98
- - **All commands support `--json`** for machine-readable output
99
- - **Smart defaults** — auto-finds entry point, session log, and project type
100
- - **Two distributions** — `npx agent-method` (Node.js, zero-install) or `pip install agent-method-tools` (Python)
101
- - **CLI is opt-in** — methodology works without it; tools add convenience
222
+ </details>
102
223
 
103
- Run `npx agent-method --help` for full command reference.
224
+ ---
104
225
 
105
- ## What you get
226
+ ## What You Get
106
227
 
107
228
  ```
108
229
  your-project/
@@ -114,96 +235,95 @@ your-project/
114
235
  PLAN.md # Current task with verification criteria
115
236
  .context/
116
237
  BASE.md # Core context — always loaded with entry point
117
- METHODOLOGY.md # Workflows, conventions overflow (lite/standard profiles)
238
+ METHODOLOGY.md # Workflows, conventions overflow
118
239
  ```
119
240
 
120
- Full tier adds: `REQUIREMENTS.md`, `SUMMARY.md`, `.context/REGISTRY.md`, `docs/`, `todos/backlog.md`.
121
-
122
- Every file ships with **inline instructions** — the agent reads them and helps you populate each section.
123
-
124
- ## How it works
241
+ <details>
242
+ <summary><strong>Full tier</strong> — adds these files for complex projects</summary>
125
243
 
126
- ### Scoping rules
244
+ ```
245
+ REQUIREMENTS.md # Formal requirements with traceability
246
+ SUMMARY.md # Session audit trail
247
+ .context/
248
+ REGISTRY.md # Navigation registry for large projects
249
+ docs/
250
+ index.md # Documentation hub
251
+ todos/
252
+ backlog.md # Ideas and future work
253
+ ```
127
254
 
128
- The entry point contains a table mapping query types to file sets. When you ask a question, the agent loads only the relevant files and constrains its writes. Context windows stay small, responses stay focused.
255
+ </details>
129
256
 
130
- ```markdown
131
- | Query type | Read before acting | Update after acting |
132
- |---------------------|------------------------------|----------------------------|
133
- | **Code change** | .context/BASE.md + specialist | Source files, test files |
134
- | **Planning** | REQUIREMENTS.md, ROADMAP.md | STATE.md, PLAN.md |
135
- ```
257
+ Every file ships with **inline instructions** — the agent reads them and helps you populate each section.
136
258
 
137
- ### Dependency cascade
259
+ ---
138
260
 
139
- "When X changes, also update Y." The agent checks this table after every file change, preventing files from drifting out of sync.
261
+ ## About
140
262
 
141
- ```markdown
142
- | When this changes | Also update |
143
- |----------------------|------------------------------------------------|
144
- | Database schema | Migrations, type imports, .context/DATABASE.md |
145
- | Phase completion | SUMMARY.md, STATE.md, ROADMAP.md |
146
- ```
263
+ <details>
264
+ <summary><strong>The problem</strong></summary>
147
265
 
148
- ### Context pairing
266
+ AI-agent-assisted development breaks down in three ways:
149
267
 
150
- Instead of loading all context at once, the agent pairs `.context/BASE.md` with one specialist file per query type. A code change loads `BASE.md + DATABASE.md`. A planning query loads `REQUIREMENTS.md + ROADMAP.md`. Token usage stays low, relevance stays high.
268
+ - **Context rot** agent quality degrades as context windows fill with irrelevant conversation
269
+ - **Amnesia** — decisions from session N are lost by session N+1
270
+ - **Scope drift** — without structured gates, work sprawls and progress becomes invisible
151
271
 
152
- ### Cross-session memory
272
+ 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.
153
273
 
154
- `STATE.md` persists decisions, blockers, and current position across sessions. The agent reads it at the start of every conversation — no re-explaining what happened yesterday.
274
+ </details>
155
275
 
156
- ## Integration profiles
276
+ <details>
277
+ <summary><strong>How it works</strong></summary>
157
278
 
158
- Control how much methodology surface area gets installed. Match the profile to your model's capability.
279
+ **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.
159
280
 
160
- | Profile | Best for | Entry point size | What's included |
161
- |---------|----------|:-----------------:|-----------------|
162
- | **lite** | Haiku, simple projects | ~25 lines | STATE.md, minimal rules, 2 cascade rules |
163
- | **standard** | Sonnet (recommended) | ~40 lines | + PLAN.md, context pairing, 6 cascade rules, overflow to METHODOLOGY.md |
164
- | **full** | Opus, complex projects | ~60 lines | All rules inline, all intelligence layer files |
281
+ **Dependency cascade** "When X changes, also update Y." The agent checks this table after every file change, preventing files from drifting out of sync.
165
282
 
166
- Three rules followed consistently beat ten rules followed inconsistently.
283
+ **Context pairing** Instead of loading all context at once, the agent pairs `.context/BASE.md` with one specialist file per query type. Token usage stays low, relevance stays high.
167
284
 
168
- ## Project types
285
+ **Cross-session memory** — `STATE.md` persists decisions, blockers, and current position across sessions. No re-explaining what happened yesterday.
169
286
 
170
- | Type | CLI name | What's added to the entry point |
171
- |------|----------|-------------------------------|
172
- | **General** | `general` | Universal scoping and cascade rules only |
173
- | **Code** | `code` | Code change, bug fix, dependency, database, API, deployment scoping + cascade |
174
- | **Data** | `data` | Data ingest, schema, document, entity, relationship, analytical query scoping + cascade |
175
- | **Analytical** | `context` | Chain work, evaluation, composition, domain research scoping + cascade |
176
- | **Mixed** | `mix` | Multiple extensions combined (code+data, code+analytical, etc.) |
287
+ </details>
177
288
 
178
- Extensions are additive — they add rows to existing tables, never override universal content.
289
+ <details>
290
+ <summary><strong>Integration profiles</strong></summary>
179
291
 
180
- ## Brownfield projects (existing codebases)
292
+ | Profile | Best for | What's included |
293
+ |---------|----------|-----------------|
294
+ | **Lite** | Haiku, simple projects | STATE.md, minimal rules, 2 cascade rules |
295
+ | **Standard** | Sonnet (recommended) | + PLAN.md, context pairing, 6 cascade rules |
296
+ | **Full** | Opus, complex projects | All rules inline, all intelligence layer files |
181
297
 
182
- For projects with existing code, `setup.sh` detects project indicators and activates brownfield mode:
298
+ Three rules followed consistently beat ten rules followed inconsistently.
183
299
 
184
- - **Never overwrites** existing files — only copies methodology files that don't already exist
185
- - **Appends** methodology sections to your existing entry point (`CLAUDE.md`, `.cursorrules`, etc.)
186
- - **Preserves** all your existing conventions, rules, and project terminology
187
- - **Suggests** the Discovery workflow (WF-08) for systematic codebase understanding:
300
+ </details>
188
301
 
189
- > Ask your agent: "Scan the codebase and populate the context files"
302
+ <details>
303
+ <summary><strong>Project types</strong></summary>
190
304
 
191
- The agent inventories your project, maps dependencies, extracts patterns, and bootstraps `.context/` files — all without modifying your source code.
305
+ | Type | CLI name | What's added |
306
+ |------|----------|-------------|
307
+ | **Code** | `code` | Code change, bug fix, dependency, database, API, deployment |
308
+ | **Data** | `data` | Data ingest, schema, document, entity, relationship, analytics |
309
+ | **Analytical** | `context` | Chain work, evaluation, composition, domain research |
310
+ | **Mixed** | `mix` | Multiple extensions combined |
311
+ | **General** | `general` | Universal scoping and cascade rules only |
192
312
 
193
- ## Lifecycle stages
313
+ </details>
194
314
 
195
- Projects evolve. The methodology adapts.
315
+ <details>
316
+ <summary><strong>Brownfield projects</strong> — works with existing codebases</summary>
196
317
 
197
- | Stage | When | What activates |
198
- |-------|------|----------------|
199
- | **Discovery** | Existing project, agent maps it first | SCAN features, WF-08 discovery workflow |
200
- | **Design** | New project, defining architecture | Planning workflows, decision recording |
201
- | **Development** | Building and iterating | Code/data/analytical workflows, full cascade |
202
- | **Evolution** | Maintaining and extending | Context refresh, drift detection |
318
+ - **Never overwrites** existing files
319
+ - **Appends** methodology sections to your existing entry point
320
+ - **Preserves** all your existing conventions and rules
321
+ - **Suggests** the Discovery workflow for systematic codebase understanding
203
322
 
204
- Transitions happen naturally — update `PROJECT-PROFILE.md` when you're ready to move on.
323
+ </details>
205
324
 
206
- ## Supported runtimes
325
+ <details>
326
+ <summary><strong>Supported runtimes</strong></summary>
207
327
 
208
328
  | File | Runtime | Auto-loaded? |
209
329
  |------|---------|:------------:|
@@ -211,45 +331,27 @@ Transitions happen naturally — update `PROJECT-PROFILE.md` when you're ready t
211
331
  | `.cursorrules` | Cursor | Yes |
212
332
  | `AGENT.md` | Any agent | No (paste or reference manually) |
213
333
 
214
- All three contain identical scoping rules, cascade structure, and conventions — only the filename and auto-loading behavior differ.
215
-
216
- ## Template tiers
334
+ </details>
217
335
 
218
- **Starter** (7 files) — Cross-session memory, scoped context loading, project profiling, structured execution. Good for most projects.
219
-
220
- **Full** (11+ files) — Everything in starter, plus requirements tracking, execution history (`SUMMARY.md`), navigation registry, human-facing docs scaffold, and backlog capture. For complex or long-running projects.
221
-
222
- ## Methodology at a glance
223
-
224
- | Concept | What it does |
225
- |---------|-------------|
226
- | **Intelligence layer** | PROJECT / STATE / ROADMAP / PLAN / SUMMARY files provide persistent cross-session memory |
227
- | **Scoping rules** | Table-driven query routing — agent loads only what's relevant |
228
- | **Dependency cascade** | "When X changes, also update Y" prevents file drift |
229
- | **Context pairing** | One specialist file per query type, not everything at once |
230
- | **Workflow stages** | Initialize → Scope → Plan → Execute → Verify → Close |
231
- | **Integration profiles** | lite / standard / full — match methodology depth to model capability |
232
- | **Brownfield merge** | Append-only integration — never overwrites, never deletes |
233
- | **CLI tools (optional)** | 7 developer commands + pipeline subcommands for debugging |
234
- | **32 agent capabilities** | Organized across 8 domains, activate behind the scenes |
336
+ ---
235
337
 
236
338
  ## Documentation
237
339
 
238
340
  | Document | Audience |
239
341
  |----------|----------|
240
- | [Quick start guide](docs/guides/quick-start.md) | Developers — setup and first session |
241
- | [For developers](docs/guides/for-developers.md) | Developers — workflows, context, troubleshooting |
242
- | [For managers](docs/guides/for-managers.md) | Managers reading project status from methodology files |
342
+ | [Quick start guide](docs/guides/quick-start.md) | Setup and first session |
343
+ | [For developers](docs/guides/for-developers.md) | Workflows, context, troubleshooting |
344
+ | [MCP Integration](docs/guides/mcp-integration.md) | IDE integration (VS Code, Cursor, Claude Code, Cline) |
345
+ | [For managers](docs/guides/for-managers.md) | Reading project status from methodology files |
243
346
  | [Template kit](templates/README.md) | Template tiers, extensions, bootstrapping |
244
- | [CLI tools](https://github.com/anthropics/agent-method#cli-tools-optional) | Command reference (or run `npx agent-method --help`) |
245
347
  | [Docs hub](docs/index.md) | Full architecture, workflow, and methodology docs |
246
348
 
247
- ## Prior art
349
+ ## Prior Art
248
350
 
249
351
  | System | Relationship |
250
352
  |--------|-------------|
251
- | [GSD (get-shit-done)](https://github.com/jlowin/get-shit-done) | Inspired the structured agent workflow. agent-method removes CLI dependency, adds scoping rules and context pairing |
252
- | PromptStudy | Reference implementation. Scoping rules, cascade, and context pairing patterns extracted from real agent-human collaboration |
353
+ | [GSD](https://github.com/gsd-build/get-shit-done) | Inspired the structured agent workflow. wwa adds scoping rules, context pairing, and file-structure-first approach |
354
+ | PromptStudy | Reference implementation. Patterns extracted from real agent-human collaboration |
253
355
 
254
356
  ## License
255
357
 
@@ -1,13 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * agent-method CLI — methodology tools for AI-agent-assisted development.
4
+ * wwa CLI — methodology tools for AI-agent-assisted development.
5
5
  *
6
6
  * Thin entry point: each command is registered from lib/cli/*.js modules.
7
7
  *
8
8
  * Three-tier command structure:
9
9
  * Tier 1 (developer): check, scan, route, refine, status, upgrade, init
10
- * Tier 2 (pipeline): agent-method pipeline classify/select/resolve/cascade/test
10
+ * Tier 2 (pipeline): wwa pipeline classify/select/resolve/cascade/test
11
+ * Tier 3 (server): serve (MCP server), watch (file watcher)
11
12
  */
12
13
 
13
14
  import { Command } from "commander";
@@ -21,11 +22,13 @@ import { register as status } from "../lib/cli/status.js";
21
22
  import { register as upgrade } from "../lib/cli/upgrade.js";
22
23
  import { register as init } from "../lib/cli/init.js";
23
24
  import { register as pipeline } from "../lib/cli/pipeline.js";
25
+ import { register as serve } from "../lib/cli/serve.js";
26
+ import { register as watchCmd } from "../lib/cli/watch.js";
24
27
 
25
28
  const program = new Command();
26
29
 
27
30
  program
28
- .name("agent-method")
31
+ .name("wwa")
29
32
  .description(
30
33
  "Methodology tools for AI-agent-assisted development.\n\n" +
31
34
  "Developer commands:\n" +
@@ -41,7 +44,10 @@ program
41
44
  " pipeline select Select workflow for a query type\n" +
42
45
  " pipeline resolve Resolve features for a workflow stage\n" +
43
46
  " pipeline cascade Compute cascade chain from a trigger\n" +
44
- " pipeline test Run YAML test fixtures"
47
+ " pipeline test Run YAML test fixtures\n\n" +
48
+ "Server commands:\n" +
49
+ " serve Start MCP server on stdio transport\n" +
50
+ " watch Watch files and validate on change"
45
51
  )
46
52
  .version(pkg.version, "-V, --version");
47
53
 
@@ -54,5 +60,7 @@ status(program);
54
60
  upgrade(program);
55
61
  init(program);
56
62
  pipeline(program);
63
+ serve(program);
64
+ watchCmd(program);
57
65
 
58
66
  program.parse();