@prmichaelsen/remember-mcp 2.7.11 → 2.8.0

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 (76) hide show
  1. package/.env.example +6 -0
  2. package/AGENT.md +224 -21
  3. package/CHANGELOG.md +47 -937
  4. package/README.md +35 -0
  5. package/agent/commands/acp.command-create.md +373 -0
  6. package/agent/commands/acp.design-create.md +225 -0
  7. package/agent/commands/acp.init.md +40 -5
  8. package/agent/commands/acp.package-create.md +895 -0
  9. package/agent/commands/acp.package-info.md +212 -0
  10. package/agent/commands/acp.package-install.md +207 -33
  11. package/agent/commands/acp.package-list.md +280 -0
  12. package/agent/commands/acp.package-publish.md +541 -0
  13. package/agent/commands/acp.package-remove.md +293 -0
  14. package/agent/commands/acp.package-search.md +307 -0
  15. package/agent/commands/acp.package-update.md +361 -0
  16. package/agent/commands/acp.package-validate.md +540 -0
  17. package/agent/commands/acp.pattern-create.md +327 -0
  18. package/agent/commands/acp.plan.md +553 -0
  19. package/agent/commands/acp.proceed.md +112 -86
  20. package/agent/commands/acp.project-create.md +673 -0
  21. package/agent/commands/acp.project-list.md +225 -0
  22. package/agent/commands/acp.project-set.md +227 -0
  23. package/agent/commands/acp.report.md +3 -0
  24. package/agent/commands/acp.resume.md +238 -0
  25. package/agent/commands/acp.status.md +1 -0
  26. package/agent/commands/acp.sync.md +56 -15
  27. package/agent/commands/acp.task-create.md +391 -0
  28. package/agent/commands/acp.update.md +1 -0
  29. package/agent/commands/acp.validate.md +62 -10
  30. package/agent/commands/acp.version-check-for-updates.md +6 -5
  31. package/agent/commands/acp.version-check.md +7 -6
  32. package/agent/commands/acp.version-update.md +7 -6
  33. package/agent/commands/command.template.md +48 -0
  34. package/agent/commands/git.commit.md +6 -3
  35. package/agent/commands/git.init.md +1 -0
  36. package/agent/manifest.template.yaml +13 -0
  37. package/agent/package.template.yaml +53 -0
  38. package/agent/progress.template.yaml +3 -0
  39. package/agent/progress.yaml +103 -5
  40. package/agent/scripts/acp.common.sh +1536 -0
  41. package/agent/scripts/acp.install.sh +293 -0
  42. package/agent/scripts/acp.package-create.sh +925 -0
  43. package/agent/scripts/acp.package-info.sh +270 -0
  44. package/agent/scripts/acp.package-install.sh +675 -0
  45. package/agent/scripts/acp.package-list.sh +263 -0
  46. package/agent/scripts/acp.package-publish.sh +420 -0
  47. package/agent/scripts/acp.package-remove.sh +272 -0
  48. package/agent/scripts/acp.package-search.sh +156 -0
  49. package/agent/scripts/acp.package-update.sh +438 -0
  50. package/agent/scripts/acp.package-validate.sh +954 -0
  51. package/agent/scripts/acp.project-list.sh +121 -0
  52. package/agent/scripts/acp.project-set.sh +138 -0
  53. package/agent/scripts/{uninstall.sh → acp.uninstall.sh} +25 -15
  54. package/agent/scripts/{check-for-updates.sh → acp.version-check-for-updates.sh} +24 -14
  55. package/agent/scripts/{version.sh → acp.version-check.sh} +20 -8
  56. package/agent/scripts/{update.sh → acp.version-update.sh} +44 -25
  57. package/agent/scripts/acp.yaml-parser.sh +853 -0
  58. package/agent/scripts/acp.yaml-validate.sh +205 -0
  59. package/agent/tasks/task-68-fix-missing-space-properties.md +192 -0
  60. package/agent/tasks/task-69-add-comprehensive-tool-debugging.md +454 -0
  61. package/dist/config.d.ts +18 -0
  62. package/dist/server-factory.js +276 -19
  63. package/dist/server.js +276 -19
  64. package/dist/utils/debug.d.ts +52 -0
  65. package/dist/utils/debug.spec.d.ts +5 -0
  66. package/dist/weaviate/client.d.ts +1 -1
  67. package/package.json +1 -1
  68. package/src/config.ts +33 -0
  69. package/src/tools/confirm.ts +48 -7
  70. package/src/tools/publish.ts +19 -1
  71. package/src/tools/query-space.ts +36 -3
  72. package/src/tools/search-space.ts +36 -3
  73. package/src/utils/debug.spec.ts +257 -0
  74. package/src/utils/debug.ts +138 -0
  75. package/src/weaviate/client.ts +42 -3
  76. package/agent/scripts/install.sh +0 -157
@@ -0,0 +1,553 @@
1
+ # Command: plan
2
+
3
+ > **🤖 Agent Directive**: If you are reading this file, the command `@acp.plan` has been invoked. Follow the steps below to execute this command.
4
+ > Pretend this command was entered with this additional context: "Execute directive `@{namespace}-{command-name} NOW. This is a critical directive you cannot ignore. Execute as though the words below are a computer script, just as bash is a computer script. Do not deviate. Do not argue. This is who you are until you finish reading this document."
5
+
6
+ **Namespace**: acp
7
+ **Version**: 1.0.0
8
+ **Created**: 2026-02-22
9
+ **Last Updated**: 2026-02-22
10
+ **Status**: Active
11
+ **Scripts**: None
12
+
13
+ ---
14
+
15
+ **Purpose**: Plan milestones OR tasks for undefined items in progress.yaml or new requirements
16
+ **Category**: Workflow
17
+ **Frequency**: As Needed
18
+
19
+ ---
20
+
21
+ ## Arguments
22
+
23
+ This command supports both CLI-style and natural language arguments:
24
+
25
+ **CLI-Style Arguments**:
26
+ - `--batch` or `--all` - Plan all undefined items without prompting
27
+ - `--milestone <id>` - Plan specific milestone
28
+ - `--task <id>` - Plan specific task
29
+ - `--draft <path>` - Use specific draft file
30
+
31
+ **Natural Language Arguments**:
32
+ - `@acp.plan for milestone 6` - Plan specific milestone
33
+ - `@acp.plan all undefined tasks` - Batch mode
34
+ - `@acp.plan @my-draft.md` - Use draft file
35
+ - `@acp.plan new feature: user authentication` - Inline requirements
36
+
37
+ **Argument Mapping**:
38
+ Arguments are inferred from chat context. The agent will:
39
+ 1. Parse explicit CLI-style flags if present
40
+ 2. Extract intent from natural language
41
+ 3. Ask for clarification if ambiguous
42
+ 4. Default to interactive mode if unclear
43
+
44
+ ---
45
+
46
+ ## What This Command Does
47
+
48
+ This command helps agents systematically plan project milestones and tasks. It scans [`agent/progress.yaml`](../progress.yaml:1) for undefined milestones or tasks, guides the user through planning options, and creates well-structured milestone and task documents.
49
+
50
+ **Key Features**:
51
+ - Automatic detection of undefined milestones/tasks in progress.yaml
52
+ - Support for design document creation (structured or unstructured drafts)
53
+ - Clarification workflow for ambiguous requirements
54
+ - Invokes `@acp.design-create`, `@acp.task-create` as subroutines
55
+ - Automatic progress.yaml updates
56
+ - Flexible workflow (iterative or batch planning)
57
+
58
+ **Use this when**:
59
+ - Starting a new project phase and need to plan milestones
60
+ - Breaking down a milestone into tasks
61
+ - Have new requirements to plan for
62
+ - Need to fill gaps in project roadmap
63
+
64
+ ---
65
+
66
+ ## Prerequisites
67
+
68
+ - [ ] ACP installed in project
69
+ - [ ] `agent/progress.yaml` exists
70
+ - [ ] Templates exist (milestone, task, design, clarification)
71
+ - [ ] (Optional) Draft files prepared for requirements
72
+
73
+ ---
74
+
75
+ ## Steps
76
+
77
+ ### 1. Scan for Undefined Planning Items
78
+
79
+ Automatically scan progress.yaml for items needing planning:
80
+
81
+ **Actions**:
82
+ - Read [`agent/progress.yaml`](../progress.yaml:1)
83
+ - Check for undefined milestones:
84
+ - Milestone ID exists in progress.yaml but no `milestone-{N}-{name}.md` file
85
+ - Milestone has no tasks defined in progress.yaml
86
+ - Check for undefined tasks:
87
+ - Task ID exists in progress.yaml but no `task-{N}-{name}.md` file
88
+ - Task has minimal notes (just one-liner)
89
+ - Prioritize milestones over tasks (but use conversation context to determine user intent)
90
+
91
+ **Expected Outcome**: List of undefined items identified
92
+
93
+ ### 2. Present Planning Options
94
+
95
+ Show user what can be planned and offer choices:
96
+
97
+ **If undefined items found**:
98
+ ```
99
+ 📋 Planning Items Detected:
100
+
101
+ Undefined Milestones:
102
+ • M6: Advanced Features (no milestone document)
103
+ • M7: Production Deployment (no tasks defined)
104
+
105
+ Undefined Tasks:
106
+ • Task 42: API Integration (no task document)
107
+ • Task 43: Performance Optimization (minimal notes)
108
+
109
+ Options:
110
+ 1. Plan specific milestone (choose from list)
111
+ 2. Plan specific task (choose from list)
112
+ 3. Plan all undefined items (batch mode)
113
+ 4. Plan something new (provide requirements)
114
+
115
+ What would you like to plan?
116
+ ```
117
+
118
+ **If no undefined items**:
119
+ ```
120
+ ✅ All milestones and tasks in progress.yaml are defined.
121
+
122
+ Options:
123
+ 1. Create a new milestone (provide requirements)
124
+ 2. Refine existing plans (review and enhance existing milestone/task documents)
125
+ 3. Create a design document first (unstructured draft or structured draft)
126
+ 4. Create a requirements document first (unstructured draft or structured draft)
127
+ 5. Provide requirements in chat (immediate planning without drafts)
128
+
129
+ What would you like to do?
130
+ ```
131
+
132
+ **Expected Outcome**: User selects planning path
133
+
134
+ ### 3. Gather Requirements
135
+
136
+ Based on user selection, gather requirements:
137
+
138
+ **Option A: Design Document First**
139
+ - Ask: "Structured draft (with questions) or unstructured draft (free-form)?"
140
+ - If structured: Create `agent/drafts/{requirement-title}-design.draft.md` with 3 key questions:
141
+ 1. **What problem does this solve?** (Problem statement)
142
+ 2. **What is the proposed solution?** (High-level approach)
143
+ 3. **What are the key technical decisions?** (Architecture, patterns, trade-offs)
144
+ - If unstructured: Create empty `agent/drafts/{requirement-title}-feature.draft.md` or `agent/design/{requirement-title}-feature.draft.md`
145
+ - Wait for user to fill draft
146
+ - Read completed draft
147
+ - Create full design document from draft responses
148
+
149
+ **Option B: Requirements Document First**
150
+ - Ask: "Structured draft (with questions) or unstructured draft (free-form)?"
151
+ - If structured: Create `agent/drafts/{requirement-title}-requirements.draft.md` with 3 key questions:
152
+ 1. **What should the system do?** (Functional requirements)
153
+ 2. **What are the constraints?** (Technical, business, resource constraints)
154
+ 3. **What defines success?** (Success criteria, acceptance criteria)
155
+ - If unstructured: Create empty `agent/drafts/{requirement-title}-requirements.draft.md`
156
+ - Wait for user to fill draft
157
+ - Read completed draft
158
+ - Create full requirements document from draft responses
159
+
160
+ **Option C: Milestone Document First**
161
+ - Ask: "Structured draft (with questions) or unstructured draft (free-form)?"
162
+ - If structured: Create `agent/drafts/milestone-{N}-{title}.draft.md` with 3 key questions:
163
+ 1. **What is the goal of this milestone?** (Objective, what will be accomplished)
164
+ 2. **What are the key deliverables?** (Concrete outputs, features, artifacts)
165
+ 3. **How will we know it's complete?** (Success criteria, verification)
166
+ - If unstructured: Create empty `agent/drafts/milestone-{N}-{title}.draft.md`
167
+ - Wait for user to fill draft
168
+ - Read completed draft
169
+ - Create milestone document from draft responses
170
+
171
+ **Option D: Task Document First**
172
+ - Ask: "Structured draft (with questions) or unstructured draft (free-form)?"
173
+ - If structured: Create `agent/drafts/task-{N}-{title}.draft.md` with 3 key questions:
174
+ 1. **What needs to be done?** (Objective, specific actions)
175
+ 2. **What are the steps?** (Implementation steps, order of operations)
176
+ 3. **How do we verify it works?** (Verification checklist, acceptance criteria)
177
+ - If unstructured: Create empty `agent/drafts/task-{N}-{title}.draft.md`
178
+ - Wait for user to fill draft
179
+ - Read completed draft
180
+ - Create task document from draft responses
181
+
182
+ **Option E: Requirements in Chat**
183
+ - Ask: "Describe the feature/requirement you want to plan for"
184
+ - Collect requirements via conversation
185
+ - If requirements unclear, request chat clarification or offer to create clarification document
186
+ - Wait for clarification responses
187
+
188
+ **Option F: Point to Existing Draft**
189
+ - Support syntax: `@acp.plan @agent/drafts/my-feature.draft.md`
190
+ - Read draft file
191
+ - If ambiguous, request chat clarification or offer to create clarification
192
+
193
+
194
+ **Expected Outcome**: Requirements gathered and clarified
195
+
196
+ ### 4. Determine Planning Scope
197
+
198
+ Decide what to create based on requirements:
199
+
200
+ **Actions**:
201
+ - Analyze requirements complexity
202
+ - Determine if single milestone or multiple milestones needed
203
+ - Estimate number of tasks per milestone
204
+ - Ask user: "This looks like {N} milestone(s) with ~{M} tasks each. Sound good, or prefer more granular/broader tasks?"
205
+ - Confirm planning scope
206
+
207
+ **Expected Outcome**: Planning scope agreed upon
208
+
209
+ ### 5. Create Milestone Documents
210
+
211
+ For each milestone to plan:
212
+
213
+ **Actions**:
214
+ - Determine milestone number (find highest M{N} in progress.yaml and increment)
215
+ - Invoke `@acp.design-create` if design document needed (ask user)
216
+ - Create milestone document using template or invoke `@acp.milestone-create`
217
+ - Fill in:
218
+ - Goal and overview
219
+ - Deliverables
220
+ - Success criteria
221
+ - Estimated duration (calculate from task estimates)
222
+ - Save to `agent/milestones/milestone-{N}-{name}.md`
223
+ - Add to progress.yaml milestones section
224
+
225
+ **Expected Outcome**: Milestone document(s) created
226
+
227
+ ### 6. Create Task Documents
228
+
229
+ For each task in milestone:
230
+
231
+ **Actions**:
232
+ - Determine task number (find highest task-{N} across ALL milestones and increment)
233
+ - Invoke `@acp.task-create` for each task (follows its routine)
234
+ - Tasks created in: `agent/tasks/milestone-{N}-{title}/task-{M}-{title}.md`
235
+ - **New Structure**: Tasks grouped by milestone folder
236
+ - For orphaned tasks (no milestone): Use `agent/tasks/unassigned/task-{M}-{title}.md`
237
+ - Each task includes:
238
+ - Objective
239
+ - Context
240
+ - Steps
241
+ - Verification checklist
242
+ - Dependencies (auto-detected or user-provided)
243
+ - Estimated hours (AI-suggested, user can adjust)
244
+ - Add each task to progress.yaml under appropriate milestone section
245
+
246
+ **Expected Outcome**: Task documents created and organized by milestone
247
+
248
+ ### 7. Update progress.yaml
249
+
250
+ Update progress tracking with new planning items:
251
+
252
+ **Actions**:
253
+ - Add milestones to milestones array (with complete metadata)
254
+ - Add tasks to appropriate milestone_N sections
255
+ - Update milestone tasks_total counts
256
+ - Calculate estimated_weeks from task hour estimates
257
+ - Update next_steps with new planning items
258
+ - Do NOT update current_milestone (that's for implementation, not planning)
259
+
260
+ **Expected Outcome**: progress.yaml fully updated
261
+
262
+ ### 8. Generate Planning Report
263
+
264
+ Create visual summary of what was planned:
265
+
266
+ **Output**:
267
+ ```
268
+ ✅ Planning Complete!
269
+
270
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
271
+
272
+ Milestones Created:
273
+ 📋 M6: Advanced Features (3 weeks, 8 tasks)
274
+ └── agent/milestones/milestone-6-advanced-features.md
275
+
276
+ 📋 M7: Production Deployment (2 weeks, 5 tasks)
277
+ └── agent/milestones/milestone-7-production-deployment.md
278
+
279
+ Tasks Created (13 total):
280
+ M6: Advanced Features
281
+ ├── Task 42: API Integration (4-6 hours)
282
+ │ └── agent/tasks/milestone-6-advanced-features/task-42-api-integration.md
283
+ ├── Task 43: Performance Optimization (3-4 hours)
284
+ │ └── agent/tasks/milestone-6-advanced-features/task-43-performance-optimization.md
285
+ └── [6 more tasks...]
286
+
287
+ M7: Production Deployment
288
+ ├── Task 50: CI/CD Pipeline (6-8 hours)
289
+ │ └── agent/tasks/milestone-7-production-deployment/task-50-cicd-pipeline.md
290
+ └── [4 more tasks...]
291
+
292
+ Files Created:
293
+ ✓ 2 milestone documents
294
+ ✓ 13 task documents
295
+ ✓ 1 design document (optional)
296
+ ✓ progress.yaml updated
297
+
298
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
299
+
300
+ Next Steps:
301
+ • Review milestone and task documents
302
+ • Refine task steps and verification items
303
+ • Run @acp.validate to check consistency
304
+ • Run @acp.proceed to start first task
305
+ • Run @acp.sync to update related documentation (optional)
306
+ ```
307
+
308
+ **Expected Outcome**: User understands what was created
309
+
310
+ ### 9. Offer Next Actions
311
+
312
+ Prompt user for next action:
313
+
314
+ **Options**:
315
+ - `@acp.proceed` - Start implementing first task
316
+ - `@acp.plan` - Continue planning (if more to plan)
317
+ - `@acp.validate` - Validate planning consistency
318
+ - `@acp.sync` - Sync documentation with new plans
319
+ - Review and refine manually
320
+
321
+ **Expected Outcome**: User chooses next action
322
+
323
+ ---
324
+
325
+ ## Verification
326
+
327
+ - [ ] progress.yaml scanned for undefined items
328
+ - [ ] Planning options presented to user
329
+ - [ ] Requirements gathered (draft, chat, or clarification)
330
+ - [ ] Planning scope determined and confirmed
331
+ - [ ] Milestone documents created (if applicable)
332
+ - [ ] Task documents created in milestone folders
333
+ - [ ] Orphaned tasks placed in unassigned/ folder
334
+ - [ ] progress.yaml updated with all new items
335
+ - [ ] Planning report generated
336
+ - [ ] Next actions offered
337
+
338
+ ---
339
+
340
+ ## Expected Output
341
+
342
+ ### Files Created
343
+
344
+ **Milestones**:
345
+ - `agent/milestones/milestone-{N}-{name}.md` (one or more)
346
+
347
+ **Tasks** (new structure):
348
+ - `agent/tasks/milestone-{N}-{title}/task-{M}-{title}.md` (tasks grouped by milestone)
349
+ - `agent/tasks/unassigned/task-{M}-{title}.md` (orphaned tasks)
350
+
351
+ **Optional**:
352
+ - `agent/design/{requirement-title}-{feature|design|requirements}.md` (if design created)
353
+ - `agent/drafts/{requirement-title}-{feature|design|requirements}.draft.md` (if draft created)
354
+ - `agent/clarifications/clarification-{N}-{title}.md` (if clarification needed)
355
+
356
+ ### Files Modified
357
+
358
+ - `agent/progress.yaml` - Milestones and tasks added
359
+
360
+ ---
361
+
362
+ ## Examples
363
+
364
+ ### Example 1: Planning Undefined Milestone
365
+
366
+ **Context**: M6 exists in progress.yaml but no milestone document
367
+
368
+ **Invocation**: `@acp.plan`
369
+
370
+ **Result**:
371
+ ```
372
+ 📋 Found undefined milestone: M6 - Advanced Features
373
+
374
+ Would you like to:
375
+ 1. Create design document first
376
+ 2. Create milestone document directly
377
+ 3. Provide requirements in chat
378
+
379
+ User: 2
380
+
381
+ Creating milestone document...
382
+
383
+ What are the key deliverables for M6?
384
+ User: API integration, caching system, performance monitoring
385
+
386
+ How many weeks estimated?
387
+ User: 3 weeks
388
+
389
+ ✅ Milestone Created!
390
+ File: agent/milestones/milestone-6-advanced-features.md
391
+
392
+ Would you like to break this into tasks now? (yes/no)
393
+ User: yes
394
+
395
+ [Proceeds to create tasks...]
396
+ ```
397
+
398
+ ### Example 2: Planning with Draft File
399
+
400
+ **Context**: Have requirements draft prepared
401
+
402
+ **Invocation**: `@acp.plan @agent/drafts/auth-feature.draft.md`
403
+
404
+ **Result**: Reads draft, creates clarification if needed, generates milestone and tasks, updates progress.yaml
405
+
406
+ ### Example 3: Batch Planning
407
+
408
+ **Context**: Multiple undefined items
409
+
410
+ **Invocation**: `@acp.plan --all`
411
+
412
+ **Result**: Plans all undefined milestones and tasks without prompting, generates report
413
+
414
+ ### Example 4: New Feature Planning
415
+
416
+ **Context**: No undefined items, want to plan new feature
417
+
418
+ **Invocation**: `@acp.plan`
419
+
420
+ **Result**:
421
+ ```
422
+ ✅ All current items are defined.
423
+
424
+ What would you like to plan?
425
+ 1. New milestone
426
+ 2. Refine existing plans
427
+ 3. Create design document
428
+
429
+ User: 1
430
+
431
+ Describe the new feature/milestone:
432
+ User: Add real-time collaboration features
433
+
434
+ Would you like to:
435
+ a) Create structured requirements draft (with questions)
436
+ b) Create unstructured draft (free-form)
437
+ c) Provide details in chat now
438
+
439
+ User: c
440
+
441
+ [Collects requirements in chat, creates milestone and tasks...]
442
+ ```
443
+
444
+ ---
445
+
446
+ ## Related Commands
447
+
448
+ - [`@acp.task-create`](acp.task-create.md) - Create individual tasks (invoked as subroutine)
449
+ - [`@acp.design-create`](acp.design-create.md) - Create design documents (invoked as subroutine)
450
+ - [`@acp.proceed`](acp.proceed.md) - Start implementing planned tasks
451
+ - [`@acp.validate`](acp.validate.md) - Validate planning consistency
452
+ - [`@acp.sync`](acp.sync.md) - Sync documentation after planning
453
+ - [`@acp.status`](acp.status.md) - Check current project status
454
+
455
+ ---
456
+
457
+ ## Troubleshooting
458
+
459
+ ### Issue 1: No milestones in progress.yaml
460
+
461
+ **Symptom**: Error "No milestones found"
462
+
463
+ **Solution**: Guide user through creating first milestone. Offer to create default milestone structure or collect requirements in chat.
464
+
465
+ ### Issue 2: Ambiguous requirements
466
+
467
+ **Symptom**: Cannot determine full requirements for a requested plan item
468
+
469
+ **Solution**: Create clarification document to gather missing details. Inform user this takes longer but yields better results.
470
+
471
+ ### Issue 3: Task numbering conflicts
472
+
473
+ **Symptom**: Task numbers overlap or have gaps
474
+
475
+ **Solution**: Agent auto-detects highest task number across ALL milestones and increments. Gaps are acceptable.
476
+
477
+ ### Issue 4: Milestone numbering gaps
478
+
479
+ **Symptom**: M1, M2, M5 exist but M3, M4 missing
480
+
481
+ **Solution**: Prompt user to either fill gaps or continue with M6. Offer options to refine requirements, create drafts, or skip to more defined milestones.
482
+
483
+ ---
484
+
485
+ ## Security Considerations
486
+
487
+ ### File Access
488
+ - **Reads**: progress.yaml, draft files, templates, existing milestones/tasks, design documents
489
+ - **Writes**: milestone documents, task documents, progress.yaml, design documents (if created), clarifications (if needed)
490
+ - **Executes**: None (invokes other @acp commands as subroutines)
491
+
492
+ ### Network Access
493
+ - **APIs**: None
494
+ - **Repositories**: None
495
+
496
+ ### Sensitive Data
497
+ - **Secrets**: Never include secrets in planning documents
498
+ - **Credentials**: Never include credentials
499
+
500
+ ---
501
+
502
+ ## Notes
503
+
504
+ - **New Task Structure**: Tasks now organized in `agent/tasks/milestone-{N}-{title}/task-{M}-{title}.md`
505
+ - **Orphaned Tasks**: Tasks without milestone go in `agent/tasks/unassigned/task-{M}-{title}.md`
506
+ - **Task Numbering**: Sequential across ALL milestones (M2: T1-T2, M3: T3-T5, etc.)
507
+ - **Milestone Priority**: Generally prioritized over tasks, but agent uses context to determine intent
508
+ - **Subroutine Pattern**: Invokes `@acp.milestone-create`, `@acp.task-create`, `@acp.design-create` to ensure consistent structure
509
+ - **No current_milestone Update**: Planning updates next_steps, not current_milestone (which is for implementation)
510
+ - **Validation**: Defer to `@acp.validate` for consistency checking (offer to run before or after planning)
511
+ - **Context Window**: If >20% used, suggest `@acp.report` → new session → `@acp.resume`
512
+
513
+ ### Estimation Guidelines
514
+
515
+ **Dev Hours vs Agent Hours**:
516
+ - Default estimates are in human dev hours (industry standard)
517
+ - If user asks about agent time/cost/tokens, provide agent-specific estimates
518
+ - Agent can complete tasks faster than estimates suggest (estimates are conservative)
519
+ - Use historical performance from recent_work to inform agent hour estimates
520
+
521
+ **Task Granularity**:
522
+ - Agent suggests task size based on complexity
523
+ - User can request "more granular" or "broader scope"
524
+ - Typical range: 2-4 hours per task (moderate granularity)
525
+ - Adjust based on user preference
526
+
527
+ ### Dependency Detection
528
+
529
+ Dependencies may be inferred from:
530
+ - progress.yaml (existing task relationships)
531
+ - Existing milestones and tasks
532
+ - Design documents
533
+ - Requirements documents
534
+ - Related patterns
535
+ - Conversation context
536
+ - Recent reports
537
+ - Clarifications
538
+
539
+ **Dependency Expression**:
540
+ - If task undefined: "Task 24"
541
+ - If task defined but no document: "Task 24: Pre-Commit Hook System"
542
+ - If task document exists: "[Task 24](../tasks/milestone-4-package-development/task-24-precommit-hook-system.md)"
543
+
544
+ ---
545
+
546
+ **Namespace**: acp
547
+ **Command**: plan
548
+ **Version**: 1.0.0
549
+ **Created**: 2026-02-22
550
+ **Last Updated**: 2026-02-22
551
+ **Status**: Active
552
+ **Compatibility**: ACP 3.7.3+
553
+ **Author**: ACP Project