agent-method 1.5.5 → 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 (62) hide show
  1. package/README.md +68 -40
  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 +1 -1
  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 +4 -4
  16. package/lib/cli/review.js +68 -0
  17. package/lib/cli/scan.js +2 -2
  18. package/lib/cli/status.js +1 -1
  19. package/lib/cli/upgrade.js +8 -7
  20. package/lib/init.js +205 -23
  21. package/package.json +10 -3
  22. package/templates/README.md +70 -22
  23. package/templates/entry-points/.cursorrules +142 -13
  24. package/templates/entry-points/AGENT.md +142 -13
  25. package/templates/entry-points/CLAUDE.md +142 -13
  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 +127 -17
  32. package/templates/full/AGENT.md +127 -17
  33. package/templates/full/CLAUDE.md +127 -17
  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/SUMMARY.md +7 -4
  45. package/templates/full/agentWorkflows/INDEX.md +42 -0
  46. package/templates/full/agentWorkflows/observations.md +65 -0
  47. package/templates/full/agentWorkflows/patterns.md +68 -0
  48. package/templates/full/agentWorkflows/sessions.md +92 -0
  49. package/templates/full/intro/README.md +39 -0
  50. package/templates/starter/.context/BASE.md +35 -0
  51. package/templates/starter/.context/METHODOLOGY.md +59 -5
  52. package/templates/starter/.cursorrules +134 -12
  53. package/templates/starter/AGENT.md +134 -12
  54. package/templates/starter/CLAUDE.md +134 -12
  55. package/templates/starter/Management/DIGEST.md +23 -0
  56. package/templates/starter/Management/STATUS.md +46 -0
  57. package/templates/starter/PROJECT.md +34 -0
  58. package/templates/starter/Reviews/INDEX.md +75 -0
  59. package/templates/starter/SUMMARY.md +27 -0
  60. package/templates/starter/agentWorkflows/INDEX.md +61 -0
  61. package/templates/starter/intro/README.md +37 -0
  62. package/templates/full/docs/index.md +0 -46
@@ -44,3 +44,37 @@
44
44
  1. {Principle 1}
45
45
  2. {Principle 2}
46
46
  3. {Principle 3}
47
+
48
+ ## Agent onboarding
49
+
50
+ <!-- AGENT: Use these questions to populate this file during the first session.
51
+ Ask the user each question, draft this file from the answers, and show the
52
+ draft at the Stage 1 checkpoint before writing. Remove this section after
53
+ the file is populated — it's scaffolding, not permanent content. -->
54
+
55
+ ### Greenfield (no existing codebase)
56
+
57
+ Ask the user:
58
+ 1. What is your project about? (1-2 sentences for the description above)
59
+ 2. Who is it for? (populate the Audiences table)
60
+ 3. What problem does it solve? (populate the Problem section)
61
+ 4. What technologies, languages, or frameworks will you use? (informs Solution + structure)
62
+ 5. What are 2-3 guiding principles for this project? (populate Principles)
63
+ 6. What is the top-level directory structure? (populate Project structure table)
64
+
65
+ ### Brownfield (existing codebase)
66
+
67
+ <!-- AGENT: For brownfield projects, you've already scanned the project at Stage 1.
68
+ Pre-fill as much as possible from scan results. Only ask what you couldn't determine. -->
69
+
70
+ Pre-fill from scan:
71
+ - **Description**: infer from README, package.json description, or top-level docs
72
+ - **Project structure**: build from directory listing — auto-populate the table
73
+ - **Technologies**: extract from package.json, requirements.txt, config files, imports
74
+
75
+ Ask the user only what the scan couldn't determine:
76
+ 1. Is this description accurate? (confirm or correct the auto-generated description)
77
+ 2. Who is the primary audience? (rarely inferable from code alone)
78
+ 3. What problem does this solve from the user's perspective? (intent, not implementation)
79
+ 4. What guiding principles drive decisions on this project? (conventions, priorities)
80
+ 5. Are there directories I should know about that aren't obvious from the structure? (hidden patterns, legacy areas)
@@ -0,0 +1,75 @@
1
+ # Project Reviews
2
+
3
+ <!-- AGENT: This is the review dashboard — a synthesized view of project intelligence.
4
+ Update sections when the corresponding source file changes significantly.
5
+
6
+ Source files: ROADMAP.md, PLAN.md, STATE.md, todos/backlog.md
7
+ When this file exceeds 300 lines, split sections into individual files
8
+ in this directory (roadmap.md, plan.md, state.md, backlog.md). -->
9
+
10
+ ## At a glance
11
+
12
+ | Area | Status | Last updated |
13
+ |------|--------|-------------|
14
+ | Roadmap | {on track / behind / ahead} | {date} |
15
+ | Plan | {active / blocked / between tasks} | {date} |
16
+ | State | {N decisions, N blockers, N open questions} | {date} |
17
+ | Backlog | {N items} | {date} |
18
+
19
+ ## Roadmap review
20
+
21
+ <!-- AGENT: Synthesize from ROADMAP.md. Phase progress, milestone tracking. -->
22
+
23
+ ### Phase progress
24
+
25
+ | Phase | Status | Completion |
26
+ |-------|--------|------------|
27
+ <!-- Populate from ROADMAP.md -->
28
+
29
+ ### Velocity notes
30
+
31
+ <!-- Brief observations about project velocity and trajectory. -->
32
+
33
+ ## Plan review
34
+
35
+ <!-- AGENT: Synthesize from PLAN.md. Current task status, execution patterns. -->
36
+
37
+ ### Current task
38
+
39
+ <!-- What's being worked on, how it's progressing. -->
40
+
41
+ ### Execution patterns
42
+
43
+ <!-- Observations about plan execution — revision patterns, task sizing accuracy. -->
44
+
45
+ ## State review
46
+
47
+ <!-- AGENT: Synthesize from STATE.md. Decision trends, blocker aging, question resolution. -->
48
+
49
+ ### Decision summary
50
+
51
+ - **Total decisions**: {count}
52
+ - **Recent decisions** (last 5):
53
+
54
+ <!-- List last 5 decisions from STATE.md -->
55
+
56
+ ### Blocker status
57
+
58
+ <!-- Active blockers, how long they've been open, resolution progress. -->
59
+
60
+ ### Open questions
61
+
62
+ <!-- Active open questions, aging analysis, resolution rate. -->
63
+
64
+ ## Backlog review
65
+
66
+ <!-- AGENT: Synthesize from todos/backlog.md. Item counts, categories, aging. -->
67
+
68
+ ### Summary
69
+
70
+ - **Total items**: {count}
71
+ - **Categories**: {list with counts}
72
+
73
+ ### Aging
74
+
75
+ <!-- How old are backlog items? Any that need attention? -->
@@ -0,0 +1,27 @@
1
+ # Summary
2
+
3
+ <!-- AGENT: This file is the session audit trail — a chronological record of work done.
4
+ The management digest has moved to Management/DIGEST.md.
5
+ Append an entry after each session or significant task using the format below.
6
+ Never edit previous entries. -->
7
+
8
+ ## Session audit trail
9
+
10
+ <!-- INSTRUCTION: Use this format for each entry:
11
+
12
+ ### {Date} — {Brief title}
13
+
14
+ **Plan**: {What was planned for this session}
15
+ **Outcome**: {What was actually accomplished}
16
+
17
+ **Files created**:
18
+ - {path/to/new-file.md}
19
+
20
+ **Files updated**:
21
+ - {path/to/updated-file.md} — {what changed}
22
+
23
+ **Key decisions**:
24
+ - {Decision and rationale — should match what's in STATE.md}
25
+
26
+ **Next**: {What should happen in the following session — this is the bridge}
27
+ -->
@@ -0,0 +1,61 @@
1
+ # Agent Workflows
2
+
3
+ <!-- AGENT: This file tracks how the methodology performs in practice.
4
+ Update after high-effort sessions by reviewing SESSION-LOG.md patterns.
5
+
6
+ Source: SESSION-LOG.md entries, agent self-observation during sessions.
7
+ When this file exceeds 300 lines, split sections into individual files
8
+ in this directory (sessions.md, patterns.md, observations.md). -->
9
+
10
+ ## Workflow summary
11
+
12
+ | Workflow | Times used | Last used | Typical effort |
13
+ |----------|-----------|-----------|---------------|
14
+ <!-- Populate from SESSION-LOG.md workflow field -->
15
+
16
+ ## Session patterns
17
+
18
+ <!-- AGENT: Synthesize from SESSION-LOG.md. Look for patterns across sessions. -->
19
+
20
+ ### Effort distribution
21
+
22
+ | Effort level | Count | Percentage |
23
+ |-------------|-------|------------|
24
+ | Low | {N} | {%} |
25
+ | Medium | {N} | {%} |
26
+ | High | {N} | {%} |
27
+
28
+ ### Common query types
29
+
30
+ <!-- Which query types appear most often? -->
31
+
32
+ ### Acceptance rates
33
+
34
+ <!-- How often is agent output accepted vs. revised? -->
35
+
36
+ - **Accepted**: {count} ({%})
37
+ - **Edited**: {count} ({%})
38
+ - **Revised**: {count} ({%})
39
+ - **Rejected**: {count} ({%})
40
+ - **Redirected**: {count} ({%})
41
+
42
+ ## Behavioral patterns
43
+
44
+ <!-- AGENT: Record patterns observed across sessions. What works well, what causes friction. -->
45
+
46
+ ### What works
47
+
48
+ <!-- Patterns that consistently lead to accepted results. -->
49
+
50
+ ### Friction points
51
+
52
+ <!-- Recurring issues, methodology rules that cause difficulty. -->
53
+
54
+ ## Observations
55
+
56
+ <!-- AGENT: Record methodology observations — findings with implications for
57
+ how the methodology could be improved or adapted for this project. -->
58
+
59
+ | Date | Observation | Implication | Severity |
60
+ |------|-------------|-------------|----------|
61
+ <!-- Append observations as they arise -->
@@ -0,0 +1,37 @@
1
+ # Methodology Overview
2
+
3
+ This project uses the **wwa** (Working With Agents) methodology for AI-agent-assisted development. The methodology gives your AI agent persistent memory, structured workflows, and scoped context loading across sessions.
4
+
5
+ ## How it works
6
+
7
+ Your agent reads an entry point file (CLAUDE.md, .cursorrules, or AGENT.md) at the start of every session. That file tells the agent:
8
+
9
+ - **What to read** — scoping rules match your question to the right files
10
+ - **What to update** — cascade rules keep dependent files in sync
11
+ - **How to work** — workflows guide the agent through structured steps
12
+
13
+ Key files the agent manages:
14
+
15
+ | File | Purpose |
16
+ |------|---------|
17
+ | STATE.md | Decisions, blockers, current position (cross-session memory) |
18
+ | PLAN.md | Current task with verification criteria |
19
+ | ROADMAP.md | Phase breakdown with gate criteria |
20
+ | .context/BASE.md | Core project context — architecture, codebase map |
21
+ | .context/DOCS-MAP.md | Maps your project components to their documentation |
22
+
23
+ ## Your project's docs/
24
+
25
+ The `docs/` folder is reserved for **your project's documentation** — API references, architecture guides, setup instructions, etc. It is not created at setup time. Instead, the agent proposes new docs/ files as your project grows, based on scaffolding rules in `.context/DOCS-MAP.md`.
26
+
27
+ ## Full documentation
28
+
29
+ For the complete methodology guide, templates reference, and architecture docs:
30
+
31
+ **https://github.com/anthropics/agent-method**
32
+
33
+ Key pages:
34
+ - [Quick Start](https://github.com/anthropics/agent-method/blob/main/docs/guides/quick-start.md)
35
+ - [For Developers](https://github.com/anthropics/agent-method/blob/main/docs/guides/for-developers.md)
36
+ - [File Roles](https://github.com/anthropics/agent-method/blob/main/docs/architecture/file-roles.md)
37
+ - [CLI Tools](https://github.com/anthropics/agent-method/blob/main/docs/guides/for-developers/cli-tools.md)
@@ -1,46 +0,0 @@
1
- # {Project Name} — Documentation
2
-
3
- <!-- INSTRUCTION: This is the human-facing project dashboard.
4
- It provides a high-level view of the project for non-agent audiences
5
- (managers, reviewers, teammates). Keep it visual and navigable. -->
6
-
7
- ## Project overview
8
-
9
- <!-- INSTRUCTION: Brief description of what the project does and its current state.
10
- Link to PROJECT.md for the full vision. -->
11
-
12
- See [PROJECT.md](../PROJECT.md) for the full project vision and scope.
13
-
14
- ## Current status
15
-
16
- <!-- INSTRUCTION: Update this when phases complete. Show progress at a glance. -->
17
-
18
- | Phase | Status | Gate |
19
- |-------|--------|------|
20
- | Phase 1 — {name} | {pending/in-progress/done} | {PASSED / not yet} |
21
- | Phase 2 — {name} | {pending} | {not yet} |
22
-
23
- ## Architecture
24
-
25
- <!-- INSTRUCTION: High-level architecture description for human readers.
26
- Diagrams, component descriptions, key design decisions. -->
27
-
28
- {Describe or diagram your project architecture}
29
-
30
- ## Key decisions
31
-
32
- <!-- INSTRUCTION: Surface important decisions from STATE.md in a human-readable format.
33
- Not every decision — just the ones that affect the project's direction. -->
34
-
35
- | Decision | Rationale | Date |
36
- |----------|-----------|------|
37
- | {Important decision} | {Why} | {When} |
38
-
39
- ## Navigation
40
-
41
- <!-- INSTRUCTION: Add links to other docs as you create them. -->
42
-
43
- | Document | What it covers |
44
- |----------|---------------|
45
- | [PROJECT.md](../PROJECT.md) | Project vision and scope |
46
- | [ROADMAP.md](../ROADMAP.md) | Phase breakdown and progress |