agent-method 1.5.1 → 1.5.3
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 +141 -151
- package/bin/{agent-method.js → wwa.js} +12 -4
- package/lib/cli/check.js +2 -2
- package/lib/cli/init.js +107 -17
- package/lib/cli/pipeline.js +1 -1
- package/lib/cli/refine.js +3 -3
- package/lib/cli/route.js +1 -1
- package/lib/cli/scan.js +3 -3
- package/lib/cli/serve.js +23 -0
- package/lib/cli/status.js +2 -2
- package/lib/cli/upgrade.js +8 -7
- package/lib/cli/watch.js +32 -0
- package/lib/init.js +62 -6
- package/lib/mcp-server.js +524 -0
- package/lib/pipeline.js +1 -1
- package/lib/registry.js +1 -1
- package/lib/watcher.js +165 -0
- package/package.json +7 -5
- package/templates/README.md +24 -20
- package/templates/entry-points/.cursorrules +11 -11
- package/templates/entry-points/AGENT.md +11 -11
- package/templates/entry-points/CLAUDE.md +11 -11
- package/templates/full/.cursorrules +11 -11
- package/templates/full/AGENT.md +11 -11
- package/templates/full/CLAUDE.md +11 -11
- package/templates/full/SESSION-LOG.md +37 -5
- package/templates/starter/.cursorrules +11 -11
- package/templates/starter/AGENT.md +11 -11
- package/templates/starter/CLAUDE.md +11 -11
- package/templates/starter/SESSION-LOG.md +37 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-method",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "CLI tools for the
|
|
3
|
+
"version": "1.5.3",
|
|
4
|
+
"description": "CLI tools for the wwa methodology — registry-driven routing, validation, and project setup for AI-agent-assisted development",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
7
7
|
"prompt-engineering",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
],
|
|
13
13
|
"type": "module",
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"author": "
|
|
15
|
+
"author": "wwa contributors",
|
|
16
16
|
"bin": {
|
|
17
|
-
"
|
|
17
|
+
"wwa": "bin/wwa.js"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
20
|
"bin/",
|
|
@@ -27,13 +27,15 @@
|
|
|
27
27
|
"node": ">=18.0.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
30
31
|
"chalk": "^5.4.0",
|
|
32
|
+
"chokidar": "^4.0.3",
|
|
31
33
|
"commander": "^12.0.0",
|
|
32
34
|
"inquirer": "^9.0.0",
|
|
33
35
|
"js-yaml": "^4.1.0"
|
|
34
36
|
},
|
|
35
37
|
"repository": {
|
|
36
38
|
"type": "git",
|
|
37
|
-
"url": "https://github.com/
|
|
39
|
+
"url": "https://github.com/anthropics/wwa"
|
|
38
40
|
}
|
|
39
41
|
}
|
package/templates/README.md
CHANGED
|
@@ -229,7 +229,7 @@ See `docs/architecture/context-pairing.md` for the full context maintenance life
|
|
|
229
229
|
### Recommended: npx
|
|
230
230
|
|
|
231
231
|
```bash
|
|
232
|
-
npx
|
|
232
|
+
npx wwa init code ~/my-project
|
|
233
233
|
```
|
|
234
234
|
|
|
235
235
|
Replace `code` with: `context`, `data`, `mix`, or `general`.
|
|
@@ -249,45 +249,49 @@ See `docs/guides/quick-start.md` for a detailed walkthrough.
|
|
|
249
249
|
The methodology works without any tooling. For teams that want additional validation and automation:
|
|
250
250
|
|
|
251
251
|
```bash
|
|
252
|
-
npx
|
|
253
|
-
npm install -g
|
|
254
|
-
pip install
|
|
252
|
+
npx wwa # zero-install (Node.js 18+)
|
|
253
|
+
npm install -g wwa # permanent install
|
|
254
|
+
pip install wwa-tools # Python alternative
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
### Developer commands
|
|
258
258
|
|
|
259
259
|
| Command | Use case |
|
|
260
260
|
|---------|----------|
|
|
261
|
-
| `npx
|
|
262
|
-
| `npx
|
|
263
|
-
| `npx
|
|
264
|
-
| `npx
|
|
265
|
-
| `npx
|
|
266
|
-
| `npx
|
|
267
|
-
| `npx
|
|
261
|
+
| `npx wwa check` | Validate entry point (auto-finds CLAUDE.md/.cursorrules/AGENT.md) |
|
|
262
|
+
| `npx wwa scan` | Detect project type from directory contents |
|
|
263
|
+
| `npx wwa route "<query>"` | Test how a query routes through the pipeline |
|
|
264
|
+
| `npx wwa refine` | Extract refinement report (auto-finds SESSION-LOG.md) |
|
|
265
|
+
| `npx wwa status` | Check if methodology version is current |
|
|
266
|
+
| `npx wwa upgrade` | Brownfield-safe update (adds missing files, updates version) |
|
|
267
|
+
| `npx wwa init <type>` | Describe entry point contents for a project type |
|
|
268
268
|
|
|
269
269
|
### Project types
|
|
270
270
|
|
|
271
271
|
Use friendly names everywhere — all commands accept aliases:
|
|
272
272
|
|
|
273
273
|
```bash
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
wwa init code # software project
|
|
275
|
+
wwa init context # analytical/prompt project (e.g. PromptStudy)
|
|
276
|
+
wwa init data # data index/querying project (e.g. SysMLv2)
|
|
277
|
+
wwa init mix # multi-type project
|
|
278
278
|
```
|
|
279
279
|
|
|
280
280
|
### Advanced: pipeline subcommands
|
|
281
281
|
|
|
282
|
-
For debugging routing logic: `npx
|
|
282
|
+
For debugging routing logic: `npx wwa pipeline classify|select|resolve|cascade|test`.
|
|
283
283
|
|
|
284
284
|
### Dependencies
|
|
285
285
|
|
|
286
|
+
**Node.js (npx / npm)**:
|
|
287
|
+
- Node.js 18+
|
|
288
|
+
- commander ^12.0, js-yaml ^4.1, inquirer ^9.0, chalk ^5.0
|
|
289
|
+
|
|
290
|
+
**Python (pip)**:
|
|
286
291
|
- Python 3.9+
|
|
287
|
-
- PyYAML >= 6.0
|
|
288
|
-
- Click >= 8.0
|
|
292
|
+
- PyYAML >= 6.0, Click >= 8.0
|
|
289
293
|
|
|
290
294
|
### Future enhancements
|
|
291
295
|
|
|
292
|
-
- MCP server: `pip install
|
|
293
|
-
- Registry watcher: `pip install
|
|
296
|
+
- MCP server: `pip install wwa-tools[mcp]` — exposes pipeline as agent-callable tools
|
|
297
|
+
- Registry watcher: `pip install wwa-tools[watch]` — proactive validation on file changes
|
|
@@ -36,7 +36,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
36
36
|
| Project structure | .context/BASE.md (codebase map), this file (if new query types needed) |
|
|
37
37
|
| Intelligence layer file exceeds 300 lines | Restructure into index + components subdirectory (keep active content, archive completed sections) |
|
|
38
38
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
39
|
-
| Session close | SESSION-LOG.md (append
|
|
39
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
40
40
|
|
|
41
41
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
42
42
|
|
|
@@ -66,21 +66,21 @@ tier: standard
|
|
|
66
66
|
|
|
67
67
|
method_version: 1.5
|
|
68
68
|
<!-- Tracks which methodology version generated this entry point -->
|
|
69
|
-
<!-- Use `npx
|
|
69
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
70
70
|
|
|
71
71
|
## CLI tools (optional)
|
|
72
72
|
|
|
73
|
-
Available via `npx
|
|
73
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
74
74
|
|
|
75
75
|
| When you want to... | Run |
|
|
76
76
|
|---------------------|-----|
|
|
77
|
-
| Validate this entry point | `npx
|
|
78
|
-
| See what type of project this is | `npx
|
|
79
|
-
| Test how a query routes | `npx
|
|
80
|
-
| Extract a refinement report | `npx
|
|
81
|
-
| Check methodology version | `npx
|
|
82
|
-
| Update methodology files | `npx
|
|
83
|
-
| See what an entry point should contain | `npx
|
|
77
|
+
| Validate this entry point | `npx wwa check` |
|
|
78
|
+
| See what type of project this is | `npx wwa scan` |
|
|
79
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
80
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
81
|
+
| Check methodology version | `npx wwa status` |
|
|
82
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
83
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
84
84
|
|
|
85
85
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
86
86
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -95,7 +95,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
95
95
|
- Surface uncertainty as open questions in STATE.md — never guess silently
|
|
96
96
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
97
97
|
- Propose plans and wait for approval — the human controls direction
|
|
98
|
-
- At session close, append a
|
|
98
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
99
99
|
|
|
100
100
|
## Do not
|
|
101
101
|
|
|
@@ -36,7 +36,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
36
36
|
| Project structure | .context/BASE.md (codebase map), this file (if new query types needed) |
|
|
37
37
|
| Intelligence layer file exceeds 300 lines | Restructure into index + components subdirectory (keep active content, archive completed sections) |
|
|
38
38
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
39
|
-
| Session close | SESSION-LOG.md (append
|
|
39
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
40
40
|
|
|
41
41
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
42
42
|
|
|
@@ -66,21 +66,21 @@ tier: standard
|
|
|
66
66
|
|
|
67
67
|
method_version: 1.5
|
|
68
68
|
<!-- Tracks which methodology version generated this entry point -->
|
|
69
|
-
<!-- Use `npx
|
|
69
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
70
70
|
|
|
71
71
|
## CLI tools (optional)
|
|
72
72
|
|
|
73
|
-
Available via `npx
|
|
73
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
74
74
|
|
|
75
75
|
| When you want to... | Run |
|
|
76
76
|
|---------------------|-----|
|
|
77
|
-
| Validate this entry point | `npx
|
|
78
|
-
| See what type of project this is | `npx
|
|
79
|
-
| Test how a query routes | `npx
|
|
80
|
-
| Extract a refinement report | `npx
|
|
81
|
-
| Check methodology version | `npx
|
|
82
|
-
| Update methodology files | `npx
|
|
83
|
-
| See what an entry point should contain | `npx
|
|
77
|
+
| Validate this entry point | `npx wwa check` |
|
|
78
|
+
| See what type of project this is | `npx wwa scan` |
|
|
79
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
80
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
81
|
+
| Check methodology version | `npx wwa status` |
|
|
82
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
83
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
84
84
|
|
|
85
85
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
86
86
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -95,7 +95,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
95
95
|
- Surface uncertainty as open questions in STATE.md — never guess silently
|
|
96
96
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
97
97
|
- Propose plans and wait for approval — the human controls direction
|
|
98
|
-
- At session close, append a
|
|
98
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
99
99
|
|
|
100
100
|
## Do not
|
|
101
101
|
|
|
@@ -36,7 +36,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
36
36
|
| Project structure | .context/BASE.md (codebase map), this file (if new query types needed) |
|
|
37
37
|
| Intelligence layer file exceeds 300 lines | Restructure into index + components subdirectory (keep active content, archive completed sections) |
|
|
38
38
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
39
|
-
| Session close | SESSION-LOG.md (append
|
|
39
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
40
40
|
|
|
41
41
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
42
42
|
|
|
@@ -66,21 +66,21 @@ tier: standard
|
|
|
66
66
|
|
|
67
67
|
method_version: 1.5
|
|
68
68
|
<!-- Tracks which methodology version generated this entry point -->
|
|
69
|
-
<!-- Use `npx
|
|
69
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
70
70
|
|
|
71
71
|
## CLI tools (optional)
|
|
72
72
|
|
|
73
|
-
Available via `npx
|
|
73
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
74
74
|
|
|
75
75
|
| When you want to... | Run |
|
|
76
76
|
|---------------------|-----|
|
|
77
|
-
| Validate this entry point | `npx
|
|
78
|
-
| See what type of project this is | `npx
|
|
79
|
-
| Test how a query routes | `npx
|
|
80
|
-
| Extract a refinement report | `npx
|
|
81
|
-
| Check methodology version | `npx
|
|
82
|
-
| Update methodology files | `npx
|
|
83
|
-
| See what an entry point should contain | `npx
|
|
77
|
+
| Validate this entry point | `npx wwa check` |
|
|
78
|
+
| See what type of project this is | `npx wwa scan` |
|
|
79
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
80
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
81
|
+
| Check methodology version | `npx wwa status` |
|
|
82
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
83
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
84
84
|
|
|
85
85
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
86
86
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -95,7 +95,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
95
95
|
- Surface uncertainty as open questions in STATE.md — never guess silently
|
|
96
96
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
97
97
|
- Propose plans and wait for approval — the human controls direction
|
|
98
|
-
- At session close, append a
|
|
98
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
99
99
|
|
|
100
100
|
## Do not
|
|
101
101
|
|
|
@@ -41,7 +41,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
41
41
|
| File split, created, deleted, or renamed | .context/REGISTRY.md (file tree, topic index, structural log) |
|
|
42
42
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
43
43
|
| Lifecycle stage change | PROJECT-PROFILE.md (update stage + date), STATE.md (record decision) |
|
|
44
|
-
| Session close | SESSION-LOG.md (append
|
|
44
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
45
45
|
|
|
46
46
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
47
47
|
|
|
@@ -83,21 +83,21 @@ tier: full
|
|
|
83
83
|
|
|
84
84
|
method_version: 1.5
|
|
85
85
|
<!-- Tracks which methodology version generated this entry point -->
|
|
86
|
-
<!-- Use `npx
|
|
86
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
87
87
|
|
|
88
88
|
## CLI tools (optional)
|
|
89
89
|
|
|
90
|
-
Available via `npx
|
|
90
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
91
91
|
|
|
92
92
|
| When you want to... | Run |
|
|
93
93
|
|---------------------|-----|
|
|
94
|
-
| Validate this entry point | `npx
|
|
95
|
-
| See what type of project this is | `npx
|
|
96
|
-
| Test how a query routes | `npx
|
|
97
|
-
| Extract a refinement report | `npx
|
|
98
|
-
| Check methodology version | `npx
|
|
99
|
-
| Update methodology files | `npx
|
|
100
|
-
| See what an entry point should contain | `npx
|
|
94
|
+
| Validate this entry point | `npx wwa check` |
|
|
95
|
+
| See what type of project this is | `npx wwa scan` |
|
|
96
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
97
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
98
|
+
| Check methodology version | `npx wwa status` |
|
|
99
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
100
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
101
101
|
|
|
102
102
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
103
103
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -113,7 +113,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
113
113
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
114
114
|
- Propose plans and wait for approval — the human controls direction
|
|
115
115
|
- SUMMARY.md entries follow audit trail format: date, plan, outcome, files, decisions, next
|
|
116
|
-
- At session close, append a
|
|
116
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
117
117
|
|
|
118
118
|
## Do not
|
|
119
119
|
|
package/templates/full/AGENT.md
CHANGED
|
@@ -41,7 +41,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
41
41
|
| File split, created, deleted, or renamed | .context/REGISTRY.md (file tree, topic index, structural log) |
|
|
42
42
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
43
43
|
| Lifecycle stage change | PROJECT-PROFILE.md (update stage + date), STATE.md (record decision) |
|
|
44
|
-
| Session close | SESSION-LOG.md (append
|
|
44
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
45
45
|
|
|
46
46
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
47
47
|
|
|
@@ -83,21 +83,21 @@ tier: full
|
|
|
83
83
|
|
|
84
84
|
method_version: 1.5
|
|
85
85
|
<!-- Tracks which methodology version generated this entry point -->
|
|
86
|
-
<!-- Use `npx
|
|
86
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
87
87
|
|
|
88
88
|
## CLI tools (optional)
|
|
89
89
|
|
|
90
|
-
Available via `npx
|
|
90
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
91
91
|
|
|
92
92
|
| When you want to... | Run |
|
|
93
93
|
|---------------------|-----|
|
|
94
|
-
| Validate this entry point | `npx
|
|
95
|
-
| See what type of project this is | `npx
|
|
96
|
-
| Test how a query routes | `npx
|
|
97
|
-
| Extract a refinement report | `npx
|
|
98
|
-
| Check methodology version | `npx
|
|
99
|
-
| Update methodology files | `npx
|
|
100
|
-
| See what an entry point should contain | `npx
|
|
94
|
+
| Validate this entry point | `npx wwa check` |
|
|
95
|
+
| See what type of project this is | `npx wwa scan` |
|
|
96
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
97
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
98
|
+
| Check methodology version | `npx wwa status` |
|
|
99
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
100
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
101
101
|
|
|
102
102
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
103
103
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -113,7 +113,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
113
113
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
114
114
|
- Propose plans and wait for approval — the human controls direction
|
|
115
115
|
- SUMMARY.md entries follow audit trail format: date, plan, outcome, files, decisions, next
|
|
116
|
-
- At session close, append a
|
|
116
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
117
117
|
|
|
118
118
|
## Do not
|
|
119
119
|
|
package/templates/full/CLAUDE.md
CHANGED
|
@@ -41,7 +41,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
41
41
|
| File split, created, deleted, or renamed | .context/REGISTRY.md (file tree, topic index, structural log) |
|
|
42
42
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
43
43
|
| Lifecycle stage change | PROJECT-PROFILE.md (update stage + date), STATE.md (record decision) |
|
|
44
|
-
| Session close | SESSION-LOG.md (append
|
|
44
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
45
45
|
|
|
46
46
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
47
47
|
|
|
@@ -83,21 +83,21 @@ tier: full
|
|
|
83
83
|
|
|
84
84
|
method_version: 1.5
|
|
85
85
|
<!-- Tracks which methodology version generated this entry point -->
|
|
86
|
-
<!-- Use `npx
|
|
86
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
87
87
|
|
|
88
88
|
## CLI tools (optional)
|
|
89
89
|
|
|
90
|
-
Available via `npx
|
|
90
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
91
91
|
|
|
92
92
|
| When you want to... | Run |
|
|
93
93
|
|---------------------|-----|
|
|
94
|
-
| Validate this entry point | `npx
|
|
95
|
-
| See what type of project this is | `npx
|
|
96
|
-
| Test how a query routes | `npx
|
|
97
|
-
| Extract a refinement report | `npx
|
|
98
|
-
| Check methodology version | `npx
|
|
99
|
-
| Update methodology files | `npx
|
|
100
|
-
| See what an entry point should contain | `npx
|
|
94
|
+
| Validate this entry point | `npx wwa check` |
|
|
95
|
+
| See what type of project this is | `npx wwa scan` |
|
|
96
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
97
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
98
|
+
| Check methodology version | `npx wwa status` |
|
|
99
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
100
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
101
101
|
|
|
102
102
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
103
103
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -113,7 +113,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
113
113
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
114
114
|
- Propose plans and wait for approval — the human controls direction
|
|
115
115
|
- SUMMARY.md entries follow audit trail format: date, plan, outcome, files, decisions, next
|
|
116
|
-
- At session close, append a
|
|
116
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
117
117
|
|
|
118
118
|
## Do not
|
|
119
119
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Session Log
|
|
2
2
|
|
|
3
|
-
Append-only session observation log for case study data collection. Each session adds a
|
|
3
|
+
Append-only session observation log for case study data collection. Each session adds a metrics entry at close. High-effort tasks log immediately at task completion. This file is read-only during extraction (never during normal work).
|
|
4
4
|
|
|
5
|
-
<!-- AGENT INSTRUCTION: At the end of every session
|
|
5
|
+
<!-- AGENT INSTRUCTION: At the end of every session — or immediately after any high-effort task —
|
|
6
|
+
append a new entry below using the format in "Entry format".
|
|
6
7
|
Do NOT read this file during normal work — only append to it.
|
|
7
8
|
Do NOT modify or delete previous entries.
|
|
8
9
|
When this file exceeds 300 lines, archive older entries to session-log/batch-{N}.md -->
|
|
@@ -17,9 +18,31 @@ Append-only session observation log for case study data collection. Each session
|
|
|
17
18
|
| Extension(s) | {code-project / data-exploration / analytical-system / none} |
|
|
18
19
|
| Observation started | {date} |
|
|
19
20
|
|
|
21
|
+
## Effort classification
|
|
22
|
+
|
|
23
|
+
| Effort | Description | When to log |
|
|
24
|
+
|--------|-------------|-------------|
|
|
25
|
+
| **low** | Quick answer, single file or no changes, <5 min | At session close |
|
|
26
|
+
| **medium** | Multi-step work, several file changes, 5-30 min | At session close |
|
|
27
|
+
| **high** | Complex multi-file changes, architecture decisions, extensive debugging, 30+ min | Immediately at task completion |
|
|
28
|
+
|
|
29
|
+
## Assessment scales
|
|
30
|
+
|
|
31
|
+
**Ambiguity** (agent-assessed — how clear was the user's request?):
|
|
32
|
+
- **low**: Clear, specific request with sufficient context
|
|
33
|
+
- **medium**: Request understood but required interpretation or assumptions
|
|
34
|
+
- **high**: Vague or ambiguous, required significant clarification
|
|
35
|
+
|
|
36
|
+
**Context level** (agent-assessed — how much project context was loaded?):
|
|
37
|
+
- **very low**: No project files loaded, answered from general knowledge
|
|
38
|
+
- **low**: Entry point only
|
|
39
|
+
- **medium**: Entry point + STATE.md + 1-2 project files
|
|
40
|
+
- **high**: Entry point + STATE.md + specialist context + multiple project files
|
|
41
|
+
- **very high**: Extensive project context, multiple specialists, cross-file analysis
|
|
42
|
+
|
|
20
43
|
## Observation checklist
|
|
21
44
|
|
|
22
|
-
At session close, reflect on these before writing the
|
|
45
|
+
At session close (or high-effort task completion), reflect on these before writing the entry:
|
|
23
46
|
1. Which workflow did this session follow?
|
|
24
47
|
2. Which query types were encountered?
|
|
25
48
|
3. Which features visibly activated? (context loading, cascade, decision recording, scoping)
|
|
@@ -27,15 +50,24 @@ At session close, reflect on these before writing the micro-entry:
|
|
|
27
50
|
5. Were any decisions deferred instead of recorded immediately?
|
|
28
51
|
6. Was there friction with any methodology rule?
|
|
29
52
|
7. Any degradation signals? (HAI-05: cascade misses, instruction loss, shallow context)
|
|
53
|
+
8. How much effort did this task require? (low / medium / high)
|
|
54
|
+
9. How ambiguous was the user's request? (low / medium / high)
|
|
55
|
+
10. How much project context was loaded? (very low / low / medium / high / very high)
|
|
56
|
+
11. Approximate token usage and time spent?
|
|
30
57
|
|
|
31
|
-
##
|
|
58
|
+
## Entry format
|
|
32
59
|
|
|
33
|
-
<!-- Append new entries below. Format:
|
|
60
|
+
<!-- Append new entries below. Format: -->
|
|
61
|
+
<!--
|
|
34
62
|
### S{N} — {YYYY-MM-DD} — {brief title}
|
|
35
63
|
Model: {model} | Profile: {profile} | Workflow: {WF-XX}
|
|
64
|
+
Effort: {low / medium / high} | Ambiguity: {low / medium / high} | Context: {very low / low / medium / high / very high}
|
|
65
|
+
Tokens: ~{N}k | Time: ~{N} min
|
|
36
66
|
Queries: {query types encountered}
|
|
37
67
|
Features: {feature IDs activated}
|
|
38
68
|
Cascades: {triggered}/{expected} | Decisions: {count}
|
|
39
69
|
Friction: {none | brief description}
|
|
40
70
|
Finding: {none | observation with methodology implication}
|
|
41
71
|
-->
|
|
72
|
+
|
|
73
|
+
## Session entries
|
|
@@ -39,7 +39,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
39
39
|
| Intelligence layer file exceeds 300 lines | Restructure into index + components subdirectory (keep active content, archive completed sections) |
|
|
40
40
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
41
41
|
| Lifecycle stage change | PROJECT-PROFILE.md (update stage + date), STATE.md (record decision) |
|
|
42
|
-
| Session close | SESSION-LOG.md (append
|
|
42
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
43
43
|
|
|
44
44
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
45
45
|
|
|
@@ -70,21 +70,21 @@ tier: standard
|
|
|
70
70
|
|
|
71
71
|
method_version: 1.5
|
|
72
72
|
<!-- Tracks which methodology version generated this entry point -->
|
|
73
|
-
<!-- Use `npx
|
|
73
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
74
74
|
|
|
75
75
|
## CLI tools (optional)
|
|
76
76
|
|
|
77
|
-
Available via `npx
|
|
77
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
78
78
|
|
|
79
79
|
| When you want to... | Run |
|
|
80
80
|
|---------------------|-----|
|
|
81
|
-
| Validate this entry point | `npx
|
|
82
|
-
| See what type of project this is | `npx
|
|
83
|
-
| Test how a query routes | `npx
|
|
84
|
-
| Extract a refinement report | `npx
|
|
85
|
-
| Check methodology version | `npx
|
|
86
|
-
| Update methodology files | `npx
|
|
87
|
-
| See what an entry point should contain | `npx
|
|
81
|
+
| Validate this entry point | `npx wwa check` |
|
|
82
|
+
| See what type of project this is | `npx wwa scan` |
|
|
83
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
84
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
85
|
+
| Check methodology version | `npx wwa status` |
|
|
86
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
87
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
88
88
|
|
|
89
89
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
90
90
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -99,7 +99,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
99
99
|
- Surface uncertainty as open questions in STATE.md — never guess silently
|
|
100
100
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
101
101
|
- Propose plans and wait for approval — the human controls direction
|
|
102
|
-
- At session close, append a
|
|
102
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
103
103
|
|
|
104
104
|
## Do not
|
|
105
105
|
|
|
@@ -39,7 +39,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
39
39
|
| Intelligence layer file exceeds 300 lines | Restructure into index + components subdirectory (keep active content, archive completed sections) |
|
|
40
40
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
41
41
|
| Lifecycle stage change | PROJECT-PROFILE.md (update stage + date), STATE.md (record decision) |
|
|
42
|
-
| Session close | SESSION-LOG.md (append
|
|
42
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
43
43
|
|
|
44
44
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
45
45
|
|
|
@@ -70,21 +70,21 @@ tier: standard
|
|
|
70
70
|
|
|
71
71
|
method_version: 1.5
|
|
72
72
|
<!-- Tracks which methodology version generated this entry point -->
|
|
73
|
-
<!-- Use `npx
|
|
73
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
74
74
|
|
|
75
75
|
## CLI tools (optional)
|
|
76
76
|
|
|
77
|
-
Available via `npx
|
|
77
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
78
78
|
|
|
79
79
|
| When you want to... | Run |
|
|
80
80
|
|---------------------|-----|
|
|
81
|
-
| Validate this entry point | `npx
|
|
82
|
-
| See what type of project this is | `npx
|
|
83
|
-
| Test how a query routes | `npx
|
|
84
|
-
| Extract a refinement report | `npx
|
|
85
|
-
| Check methodology version | `npx
|
|
86
|
-
| Update methodology files | `npx
|
|
87
|
-
| See what an entry point should contain | `npx
|
|
81
|
+
| Validate this entry point | `npx wwa check` |
|
|
82
|
+
| See what type of project this is | `npx wwa scan` |
|
|
83
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
84
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
85
|
+
| Check methodology version | `npx wwa status` |
|
|
86
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
87
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
88
88
|
|
|
89
89
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
90
90
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -99,7 +99,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
99
99
|
- Surface uncertainty as open questions in STATE.md — never guess silently
|
|
100
100
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
101
101
|
- Propose plans and wait for approval — the human controls direction
|
|
102
|
-
- At session close, append a
|
|
102
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
103
103
|
|
|
104
104
|
## Do not
|
|
105
105
|
|
|
@@ -39,7 +39,7 @@ When a file changes, check this table and update dependent files in the same res
|
|
|
39
39
|
| Intelligence layer file exceeds 300 lines | Restructure into index + components subdirectory (keep active content, archive completed sections) |
|
|
40
40
|
| New domain area | .context/BASE.md, consider new .context/ specialist, this file (if new scoping row) |
|
|
41
41
|
| Lifecycle stage change | PROJECT-PROFILE.md (update stage + date), STATE.md (record decision) |
|
|
42
|
-
| Session close | SESSION-LOG.md (append
|
|
42
|
+
| Session close or high-effort task completion | SESSION-LOG.md (append metrics entry — effort, ambiguity, context level, tokens, time, workflow, features, cascades, friction, findings) |
|
|
43
43
|
|
|
44
44
|
<!-- INSTRUCTION: Add project-specific cascade rules below the universal ones above. -->
|
|
45
45
|
|
|
@@ -70,21 +70,21 @@ tier: standard
|
|
|
70
70
|
|
|
71
71
|
method_version: 1.5
|
|
72
72
|
<!-- Tracks which methodology version generated this entry point -->
|
|
73
|
-
<!-- Use `npx
|
|
73
|
+
<!-- Use `npx wwa status` to compare against latest -->
|
|
74
74
|
|
|
75
75
|
## CLI tools (optional)
|
|
76
76
|
|
|
77
|
-
Available via `npx
|
|
77
|
+
Available via `npx wwa` (zero-install) or `pip install wwa-tools`:
|
|
78
78
|
|
|
79
79
|
| When you want to... | Run |
|
|
80
80
|
|---------------------|-----|
|
|
81
|
-
| Validate this entry point | `npx
|
|
82
|
-
| See what type of project this is | `npx
|
|
83
|
-
| Test how a query routes | `npx
|
|
84
|
-
| Extract a refinement report | `npx
|
|
85
|
-
| Check methodology version | `npx
|
|
86
|
-
| Update methodology files | `npx
|
|
87
|
-
| See what an entry point should contain | `npx
|
|
81
|
+
| Validate this entry point | `npx wwa check` |
|
|
82
|
+
| See what type of project this is | `npx wwa scan` |
|
|
83
|
+
| Test how a query routes | `npx wwa route "your question"` |
|
|
84
|
+
| Extract a refinement report | `npx wwa refine` |
|
|
85
|
+
| Check methodology version | `npx wwa status` |
|
|
86
|
+
| Update methodology files | `npx wwa upgrade` |
|
|
87
|
+
| See what an entry point should contain | `npx wwa init code` / `context` / `data` / `mix` |
|
|
88
88
|
|
|
89
89
|
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
90
90
|
project setup, or methodology updates. All commands auto-detect project type and find
|
|
@@ -99,7 +99,7 @@ Available via `npx agent-method` (zero-install) or `pip install agent-method-too
|
|
|
99
99
|
- Surface uncertainty as open questions in STATE.md — never guess silently
|
|
100
100
|
- Keep intelligence layer files under 300 lines — split into index + components subdirectory when exceeded
|
|
101
101
|
- Propose plans and wait for approval — the human controls direction
|
|
102
|
-
- At session close, append a
|
|
102
|
+
- At session close or after any high-effort task, append a metrics entry to SESSION-LOG.md — include effort level, question ambiguity, context level, estimated tokens, and time. Never skip, never read previous entries during normal work
|
|
103
103
|
|
|
104
104
|
## Do not
|
|
105
105
|
|