maxsimcli 4.8.0 → 4.9.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 (161) hide show
  1. package/dist/assets/CHANGELOG.md +13 -0
  2. package/dist/assets/hooks/maxsim-check-update.cjs +38 -0
  3. package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
  4. package/dist/assets/hooks/maxsim-statusline.cjs +116 -48
  5. package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
  6. package/dist/assets/hooks/maxsim-sync-reminder.cjs +117 -0
  7. package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -0
  8. package/dist/assets/templates/agents/AGENTS.md +78 -106
  9. package/dist/assets/templates/agents/executor.md +101 -0
  10. package/dist/assets/templates/agents/planner.md +86 -0
  11. package/dist/assets/templates/agents/researcher.md +71 -0
  12. package/dist/assets/templates/agents/verifier.md +88 -0
  13. package/dist/assets/templates/commands/maxsim/debug.md +7 -7
  14. package/dist/assets/templates/commands/maxsim/execute.md +45 -0
  15. package/dist/assets/templates/commands/maxsim/go.md +29 -0
  16. package/dist/assets/templates/commands/maxsim/help.md +2 -2
  17. package/dist/assets/templates/commands/maxsim/init.md +52 -0
  18. package/dist/assets/templates/commands/maxsim/plan.md +50 -0
  19. package/dist/assets/templates/commands/maxsim/progress.md +4 -3
  20. package/dist/assets/templates/commands/maxsim/quick.md +6 -4
  21. package/dist/assets/templates/commands/maxsim/settings.md +4 -3
  22. package/dist/assets/templates/references/continuation-format.md +16 -16
  23. package/dist/assets/templates/references/model-profile-resolution.md +1 -1
  24. package/dist/assets/templates/references/model-profiles.md +12 -19
  25. package/dist/assets/templates/rules/conventions.md +51 -0
  26. package/dist/assets/templates/rules/verification-protocol.md +57 -0
  27. package/dist/assets/templates/skills/agent-system-map/SKILL.md +92 -0
  28. package/dist/assets/templates/skills/brainstorming/SKILL.md +48 -36
  29. package/dist/assets/templates/skills/code-review/SKILL.md +40 -61
  30. package/dist/assets/templates/skills/commit-conventions/SKILL.md +75 -0
  31. package/dist/assets/templates/skills/evidence-collection/SKILL.md +87 -0
  32. package/dist/assets/templates/skills/handoff-contract/SKILL.md +70 -0
  33. package/dist/assets/templates/skills/input-validation/SKILL.md +51 -0
  34. package/dist/assets/templates/skills/maxsim-batch/SKILL.md +41 -45
  35. package/dist/assets/templates/skills/maxsim-simplify/SKILL.md +37 -90
  36. package/dist/assets/templates/skills/memory-management/SKILL.md +32 -67
  37. package/dist/assets/templates/skills/research-methodology/SKILL.md +137 -0
  38. package/dist/assets/templates/skills/roadmap-writing/SKILL.md +40 -58
  39. package/dist/assets/templates/skills/sdd/SKILL.md +34 -69
  40. package/dist/assets/templates/skills/systematic-debugging/SKILL.md +20 -26
  41. package/dist/assets/templates/skills/tdd/SKILL.md +25 -33
  42. package/dist/assets/templates/skills/tool-priority-guide/SKILL.md +80 -0
  43. package/dist/assets/templates/skills/using-maxsim/SKILL.md +42 -73
  44. package/dist/assets/templates/skills/verification-before-completion/SKILL.md +12 -24
  45. package/dist/assets/templates/skills/verification-gates/SKILL.md +169 -0
  46. package/dist/assets/templates/templates/UAT.md +3 -3
  47. package/dist/assets/templates/templates/VALIDATION.md +1 -1
  48. package/dist/assets/templates/templates/context.md +4 -4
  49. package/dist/assets/templates/templates/debug-subagent-prompt.md +3 -3
  50. package/dist/assets/templates/templates/discovery.md +2 -2
  51. package/dist/assets/templates/templates/phase-prompt.md +2 -2
  52. package/dist/assets/templates/templates/planner-subagent-prompt.md +7 -7
  53. package/dist/assets/templates/templates/project.md +1 -1
  54. package/dist/assets/templates/templates/research.md +1 -1
  55. package/dist/assets/templates/templates/state.md +2 -2
  56. package/dist/assets/templates/templates/summary.md +41 -0
  57. package/dist/assets/templates/workflows/batch.md +5 -5
  58. package/dist/assets/templates/workflows/diagnose-issues.md +2 -2
  59. package/dist/assets/templates/workflows/discovery-phase.md +3 -3
  60. package/dist/assets/templates/workflows/discuss-phase.md +11 -11
  61. package/dist/assets/templates/workflows/execute-phase.md +205 -11
  62. package/dist/assets/templates/workflows/execute-plan.md +299 -34
  63. package/dist/assets/templates/workflows/execute.md +421 -0
  64. package/dist/assets/templates/workflows/go.md +250 -0
  65. package/dist/assets/templates/workflows/health.md +5 -5
  66. package/dist/assets/templates/workflows/help.md +165 -435
  67. package/dist/assets/templates/workflows/init-existing.md +23 -23
  68. package/dist/assets/templates/workflows/init.md +205 -0
  69. package/dist/assets/templates/workflows/new-milestone.md +9 -9
  70. package/dist/assets/templates/workflows/new-project.md +26 -26
  71. package/dist/assets/templates/workflows/plan-create.md +298 -0
  72. package/dist/assets/templates/workflows/plan-discuss.md +347 -0
  73. package/dist/assets/templates/workflows/plan-phase.md +29 -29
  74. package/dist/assets/templates/workflows/plan-research.md +177 -0
  75. package/dist/assets/templates/workflows/plan.md +231 -0
  76. package/dist/assets/templates/workflows/progress.md +46 -42
  77. package/dist/assets/templates/workflows/quick.md +195 -14
  78. package/dist/assets/templates/workflows/research-phase.md +5 -5
  79. package/dist/assets/templates/workflows/sdd.md +20 -12
  80. package/dist/assets/templates/workflows/settings.md +18 -14
  81. package/dist/assets/templates/workflows/verify-phase.md +1 -1
  82. package/dist/assets/templates/workflows/verify-work.md +16 -16
  83. package/dist/cli.cjs +496 -91
  84. package/dist/cli.cjs.map +1 -1
  85. package/dist/core-D5zUr9cb.cjs.map +1 -1
  86. package/dist/install.cjs +234 -17
  87. package/dist/install.cjs.map +1 -1
  88. package/dist/mcp-server.cjs +21 -2
  89. package/dist/mcp-server.cjs.map +1 -1
  90. package/dist/skills-CjFWZIGM.cjs.map +1 -1
  91. package/package.json +1 -1
  92. package/dist/assets/hooks/maxsim-context-monitor.cjs +0 -121
  93. package/dist/assets/hooks/maxsim-context-monitor.cjs.map +0 -1
  94. package/dist/assets/templates/agents/maxsim-code-reviewer.md +0 -239
  95. package/dist/assets/templates/agents/maxsim-codebase-mapper.md +0 -214
  96. package/dist/assets/templates/agents/maxsim-debugger.md +0 -572
  97. package/dist/assets/templates/agents/maxsim-drift-checker.md +0 -522
  98. package/dist/assets/templates/agents/maxsim-executor.md +0 -504
  99. package/dist/assets/templates/agents/maxsim-integration-checker.md +0 -273
  100. package/dist/assets/templates/agents/maxsim-phase-researcher.md +0 -305
  101. package/dist/assets/templates/agents/maxsim-plan-checker.md +0 -343
  102. package/dist/assets/templates/agents/maxsim-planner.md +0 -610
  103. package/dist/assets/templates/agents/maxsim-project-researcher.md +0 -359
  104. package/dist/assets/templates/agents/maxsim-research-synthesizer.md +0 -263
  105. package/dist/assets/templates/agents/maxsim-roadmapper.md +0 -324
  106. package/dist/assets/templates/agents/maxsim-spec-reviewer.md +0 -245
  107. package/dist/assets/templates/agents/maxsim-verifier.md +0 -393
  108. package/dist/assets/templates/commands/maxsim/add-phase.md +0 -43
  109. package/dist/assets/templates/commands/maxsim/add-tests.md +0 -41
  110. package/dist/assets/templates/commands/maxsim/add-todo.md +0 -57
  111. package/dist/assets/templates/commands/maxsim/artefakte.md +0 -122
  112. package/dist/assets/templates/commands/maxsim/audit-milestone.md +0 -36
  113. package/dist/assets/templates/commands/maxsim/batch.md +0 -42
  114. package/dist/assets/templates/commands/maxsim/check-drift.md +0 -56
  115. package/dist/assets/templates/commands/maxsim/check-todos.md +0 -46
  116. package/dist/assets/templates/commands/maxsim/cleanup.md +0 -18
  117. package/dist/assets/templates/commands/maxsim/complete-milestone.md +0 -136
  118. package/dist/assets/templates/commands/maxsim/discuss-phase.md +0 -87
  119. package/dist/assets/templates/commands/maxsim/discuss.md +0 -70
  120. package/dist/assets/templates/commands/maxsim/execute-phase.md +0 -41
  121. package/dist/assets/templates/commands/maxsim/health.md +0 -22
  122. package/dist/assets/templates/commands/maxsim/init-existing.md +0 -46
  123. package/dist/assets/templates/commands/maxsim/insert-phase.md +0 -32
  124. package/dist/assets/templates/commands/maxsim/list-phase-assumptions.md +0 -46
  125. package/dist/assets/templates/commands/maxsim/map-codebase.md +0 -71
  126. package/dist/assets/templates/commands/maxsim/new-milestone.md +0 -44
  127. package/dist/assets/templates/commands/maxsim/new-project.md +0 -46
  128. package/dist/assets/templates/commands/maxsim/pause-work.md +0 -38
  129. package/dist/assets/templates/commands/maxsim/plan-milestone-gaps.md +0 -34
  130. package/dist/assets/templates/commands/maxsim/plan-phase.md +0 -44
  131. package/dist/assets/templates/commands/maxsim/realign.md +0 -39
  132. package/dist/assets/templates/commands/maxsim/reapply-patches.md +0 -110
  133. package/dist/assets/templates/commands/maxsim/remove-phase.md +0 -31
  134. package/dist/assets/templates/commands/maxsim/research-phase.md +0 -189
  135. package/dist/assets/templates/commands/maxsim/resume-work.md +0 -40
  136. package/dist/assets/templates/commands/maxsim/roadmap.md +0 -19
  137. package/dist/assets/templates/commands/maxsim/sdd.md +0 -39
  138. package/dist/assets/templates/commands/maxsim/set-profile.md +0 -34
  139. package/dist/assets/templates/commands/maxsim/update.md +0 -37
  140. package/dist/assets/templates/commands/maxsim/verify-work.md +0 -38
  141. package/dist/assets/templates/workflows/add-phase.md +0 -111
  142. package/dist/assets/templates/workflows/add-tests.md +0 -351
  143. package/dist/assets/templates/workflows/add-todo.md +0 -247
  144. package/dist/assets/templates/workflows/audit-milestone.md +0 -297
  145. package/dist/assets/templates/workflows/check-drift.md +0 -248
  146. package/dist/assets/templates/workflows/check-todos.md +0 -261
  147. package/dist/assets/templates/workflows/cleanup.md +0 -153
  148. package/dist/assets/templates/workflows/complete-milestone.md +0 -701
  149. package/dist/assets/templates/workflows/discuss.md +0 -343
  150. package/dist/assets/templates/workflows/insert-phase.md +0 -129
  151. package/dist/assets/templates/workflows/list-phase-assumptions.md +0 -178
  152. package/dist/assets/templates/workflows/map-codebase.md +0 -315
  153. package/dist/assets/templates/workflows/pause-work.md +0 -122
  154. package/dist/assets/templates/workflows/plan-milestone-gaps.md +0 -274
  155. package/dist/assets/templates/workflows/realign.md +0 -288
  156. package/dist/assets/templates/workflows/remove-phase.md +0 -154
  157. package/dist/assets/templates/workflows/resume-project.md +0 -306
  158. package/dist/assets/templates/workflows/roadmap.md +0 -130
  159. package/dist/assets/templates/workflows/set-profile.md +0 -81
  160. package/dist/assets/templates/workflows/transition.md +0 -544
  161. package/dist/assets/templates/workflows/update.md +0 -220
@@ -1,306 +0,0 @@
1
- <trigger>
2
- Use this workflow when:
3
- - Starting a new session on an existing project
4
- - User says "continue", "what's next", "where were we", "resume"
5
- - Any planning operation when .planning/ already exists
6
- - User returns after time away from project
7
- </trigger>
8
-
9
- <purpose>
10
- Instantly restore full project context so "Where were we?" has an immediate, complete answer.
11
- </purpose>
12
-
13
- <required_reading>
14
- @./references/continuation-format.md
15
- </required_reading>
16
-
17
- <process>
18
-
19
- <step name="initialize">
20
- Load all context in one call:
21
-
22
- ```bash
23
- INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs init resume)
24
- ```
25
-
26
- Parse JSON for: `state_exists`, `roadmap_exists`, `project_exists`, `planning_exists`, `has_interrupted_agent`, `interrupted_agent_id`, `commit_docs`.
27
-
28
- **If `state_exists` is true:** Proceed to load_state
29
- **If `state_exists` is false but `roadmap_exists` or `project_exists` is true:** Offer to reconstruct STATE.md
30
- **If `planning_exists` is false:** This is a new project - route to /maxsim:new-project
31
- </step>
32
-
33
- <step name="load_state">
34
-
35
- Read and parse STATE.md, then PROJECT.md:
36
-
37
- ```bash
38
- cat .planning/STATE.md
39
- cat .planning/PROJECT.md
40
- ```
41
-
42
- **From STATE.md extract:**
43
-
44
- - **Project Reference**: Core value and current focus
45
- - **Current Position**: Phase X of Y, Plan A of B, Status
46
- - **Progress**: Visual progress bar
47
- - **Recent Decisions**: Key decisions affecting current work
48
- - **Pending Todos**: Ideas captured during sessions
49
- - **Blockers/Concerns**: Issues carried forward
50
- - **Session Continuity**: Where we left off, any resume files
51
-
52
- **From PROJECT.md extract:**
53
-
54
- - **What This Is**: Current accurate description
55
- - **Requirements**: Validated, Active, Out of Scope
56
- - **Key Decisions**: Full decision log with outcomes
57
- - **Constraints**: Hard limits on implementation
58
-
59
- </step>
60
-
61
- <step name="check_incomplete_work">
62
- Look for incomplete work that needs attention:
63
-
64
- ```bash
65
- # Check for continue-here files (mid-plan resumption)
66
- ls .planning/phases/*/.continue-here*.md 2>/dev/null
67
-
68
- # Check for plans without summaries (incomplete execution)
69
- for plan in .planning/phases/*/*-PLAN.md; do
70
- summary="${plan/PLAN/SUMMARY}"
71
- [ ! -f "$summary" ] && echo "Incomplete: $plan"
72
- done 2>/dev/null
73
-
74
- # Check for interrupted agents (use has_interrupted_agent and interrupted_agent_id from init)
75
- if [ "$has_interrupted_agent" = "true" ]; then
76
- echo "Interrupted agent: $interrupted_agent_id"
77
- fi
78
- ```
79
-
80
- **If .continue-here file exists:**
81
-
82
- - This is a mid-plan resumption point
83
- - Read the file for specific resumption context
84
- - Flag: "Found mid-plan checkpoint"
85
-
86
- **If PLAN without SUMMARY exists:**
87
-
88
- - Execution was started but not completed
89
- - Flag: "Found incomplete plan execution"
90
-
91
- **If interrupted agent found:**
92
-
93
- - Subagent was spawned but session ended before completion
94
- - Read agent-history.json for task details
95
- - Flag: "Found interrupted agent"
96
- </step>
97
-
98
- <step name="present_status">
99
- Present complete project status to user:
100
-
101
- ```
102
- ╔══════════════════════════════════════════════════════════════╗
103
- ║ PROJECT STATUS ║
104
- ╠══════════════════════════════════════════════════════════════╣
105
- ║ Building: [one-liner from PROJECT.md "What This Is"] ║
106
- ║ ║
107
- ║ Phase: [X] of [Y] - [Phase name] ║
108
- ║ Plan: [A] of [B] - [Status] ║
109
- ║ Progress: [██████░░░░] XX% ║
110
- ║ ║
111
- ║ Last activity: [date] - [what happened] ║
112
- ╚══════════════════════════════════════════════════════════════╝
113
-
114
- [If incomplete work found:]
115
- ⚠️ Incomplete work detected:
116
- - [.continue-here file or incomplete plan]
117
-
118
- [If interrupted agent found:]
119
- ⚠️ Interrupted agent detected:
120
- Agent ID: [id]
121
- Task: [task description from agent-history.json]
122
- Interrupted: [timestamp]
123
-
124
- Resume with: Task tool (resume parameter with agent ID)
125
-
126
- [If pending todos exist:]
127
- 📋 [N] pending todos — /maxsim:check-todos to review
128
-
129
- [If blockers exist:]
130
- ⚠️ Carried concerns:
131
- - [blocker 1]
132
- - [blocker 2]
133
-
134
- [If alignment is not ✓:]
135
- ⚠️ Brief alignment: [status] - [assessment]
136
- ```
137
-
138
- </step>
139
-
140
- <step name="determine_next_action">
141
- Based on project state, determine the most logical next action:
142
-
143
- **If interrupted agent exists:**
144
- → Primary: Resume interrupted agent (Task tool with resume parameter)
145
- → Option: Start fresh (abandon agent work)
146
-
147
- **If .continue-here file exists:**
148
- → Primary: Resume from checkpoint
149
- → Option: Start fresh on current plan
150
-
151
- **If incomplete plan (PLAN without SUMMARY):**
152
- → Primary: Complete the incomplete plan
153
- → Option: Abandon and move on
154
-
155
- **If phase in progress, all plans complete:**
156
- → Primary: Transition to next phase
157
- → Option: Review completed work
158
-
159
- **If phase ready to plan:**
160
- → Check if CONTEXT.md exists for this phase:
161
-
162
- - If CONTEXT.md missing:
163
- → Primary: Discuss phase vision (how user imagines it working)
164
- → Secondary: Plan directly (skip context gathering)
165
- - If CONTEXT.md exists:
166
- → Primary: Plan the phase
167
- → Option: Review roadmap
168
-
169
- **If phase ready to execute:**
170
- → Primary: Execute next plan
171
- → Option: Review the plan first
172
- </step>
173
-
174
- <step name="offer_options">
175
- Present contextual options based on project state:
176
-
177
- ```
178
- What would you like to do?
179
-
180
- [Primary action based on state - e.g.:]
181
- 1. Resume interrupted agent [if interrupted agent found]
182
- OR
183
- 1. Execute phase (/maxsim:execute-phase {phase})
184
- OR
185
- 1. Discuss Phase 3 context (/maxsim:discuss-phase 3) [if CONTEXT.md missing]
186
- OR
187
- 1. Plan Phase 3 (/maxsim:plan-phase 3) [if CONTEXT.md exists or discuss option declined]
188
-
189
- [Secondary options:]
190
- 2. Review current phase status
191
- 3. Check pending todos ([N] pending)
192
- 4. Review brief alignment
193
- 5. Something else
194
- ```
195
-
196
- **Note:** When offering phase planning, check for CONTEXT.md existence first:
197
-
198
- ```bash
199
- ls .planning/phases/XX-name/*-CONTEXT.md 2>/dev/null
200
- ```
201
-
202
- If missing, suggest discuss-phase before plan. If exists, offer plan directly.
203
-
204
- Wait for user selection.
205
- </step>
206
-
207
- <step name="route_to_workflow">
208
- Based on user selection, route to appropriate workflow:
209
-
210
- - **Execute plan** → Show command for user to run after clearing:
211
- ```
212
- ---
213
-
214
- ## ▶ Next Up
215
-
216
- **{phase}-{plan}: [Plan Name]** — [objective from PLAN.md]
217
-
218
- `/maxsim:execute-phase {phase}`
219
-
220
- <sub>`/clear` first → fresh context window</sub>
221
-
222
- ---
223
- ```
224
- - **Plan phase** → Show command for user to run after clearing:
225
- ```
226
- ---
227
-
228
- ## ▶ Next Up
229
-
230
- **Phase [N]: [Name]** — [Goal from ROADMAP.md]
231
-
232
- `/maxsim:plan-phase [phase-number]`
233
-
234
- <sub>`/clear` first → fresh context window</sub>
235
-
236
- ---
237
-
238
- **Also available:**
239
- - `/maxsim:discuss-phase [N]` — gather context first
240
- - `/maxsim:research-phase [N]` — investigate unknowns
241
-
242
- ---
243
- ```
244
- - **Transition** → ./transition.md
245
- - **Check todos** → Read .planning/todos/pending/, present summary
246
- - **Review alignment** → Read PROJECT.md, compare to current state
247
- - **Something else** → Ask what they need
248
- </step>
249
-
250
- <step name="update_session">
251
- Before proceeding to routed workflow, update session continuity:
252
-
253
- Update STATE.md:
254
-
255
- ```markdown
256
- ## Session Continuity
257
-
258
- Last session: [now]
259
- Stopped at: Session resumed, proceeding to [action]
260
- Resume file: [updated if applicable]
261
- ```
262
-
263
- This ensures if session ends unexpectedly, next resume knows the state.
264
- </step>
265
-
266
- </process>
267
-
268
- <reconstruction>
269
- If STATE.md is missing but other artifacts exist:
270
-
271
- "STATE.md missing. Reconstructing from artifacts..."
272
-
273
- 1. Read PROJECT.md → Extract "What This Is" and Core Value
274
- 2. Read ROADMAP.md → Determine phases, find current position
275
- 3. Scan \*-SUMMARY.md files → Extract decisions, concerns
276
- 4. Count pending todos in .planning/todos/pending/
277
- 5. Check for .continue-here files → Session continuity
278
-
279
- Reconstruct and write STATE.md, then proceed normally.
280
-
281
- This handles cases where:
282
-
283
- - Project predates STATE.md introduction
284
- - File was accidentally deleted
285
- - Cloning repo without full .planning/ state
286
- </reconstruction>
287
-
288
- <quick_resume>
289
- If user says "continue" or "go":
290
- - Load state silently
291
- - Determine primary action
292
- - Execute immediately without presenting options
293
-
294
- "Continuing from [state]... [action]"
295
- </quick_resume>
296
-
297
- <success_criteria>
298
- Resume is complete when:
299
-
300
- - [ ] STATE.md loaded (or reconstructed)
301
- - [ ] Incomplete work detected and flagged
302
- - [ ] Clear status presented to user
303
- - [ ] Contextual next actions offered
304
- - [ ] User knows exactly where project stands
305
- - [ ] Session continuity updated
306
- </success_criteria>
@@ -1,130 +0,0 @@
1
- <purpose>
2
- Render the project roadmap in a readable format with phase status icons and plan progress counts. Auto-collapses completed phases to one-liners for visual clarity and paginates at 20 phases per page for large projects. Read-only — does not modify any files.
3
- </purpose>
4
-
5
- <process>
6
-
7
- <step name="check_planning">
8
- Verify the project is initialized:
9
-
10
- ```bash
11
- INIT=$(node ./.claude/maxsim/bin/maxsim-tools.cjs state-load --raw)
12
- ```
13
-
14
- Parse JSON. If `planning_exists` is false, hard stop:
15
-
16
- > No roadmap found. Run /maxsim:new-project to initialize.
17
-
18
- Exit immediately. Do not continue.
19
-
20
- **Parse `--page` argument:** If the command was invoked with `--page N`, extract the page number (default: 1). This controls which page of phases to display when total phases exceed 20.
21
- </step>
22
-
23
- <step name="analyze">
24
- Load roadmap analysis:
25
-
26
- ```bash
27
- ROADMAP=$(node ./.claude/maxsim/bin/maxsim-tools.cjs roadmap analyze)
28
- ```
29
-
30
- Parse JSON for: `phases[]` (each with `number`, `name`, `disk_status`, `plan_count`, `summary_count`), `milestone_name`, `milestone_version`.
31
-
32
- Count phases by status:
33
- - `done_count` = phases where `disk_status === 'complete'`
34
- - `active_count` = phases where `disk_status === 'partial'`
35
- - `planned_count` = phases where `disk_status === 'planned' || disk_status === 'empty' || disk_status === 'discussed' || disk_status === 'researched' || disk_status === 'no_directory'`
36
- </step>
37
-
38
- <step name="render">
39
- Print the roadmap to the terminal.
40
-
41
- **Milestone header line:**
42
- ```
43
- {milestone_name} — {done_count} done / {active_count} active / {planned_count} planned
44
- ```
45
-
46
- **Blank line.**
47
-
48
- **Auto-collapse completed phases (always active, regardless of phase count):**
49
-
50
- Render phases in two visual groups:
51
-
52
- 1. **Completed phases** — collapsed one-liners with no plan counts or status label:
53
- ```
54
- ✓ Phase {number}: {name}
55
- ```
56
- Just checkmark + phase number + name. One line per completed phase. This keeps the roadmap scannable when many phases are done.
57
-
58
- 2. **Active and upcoming phases** — full detail format with icon, label, and plan counts:
59
- ```
60
- {icon} Phase {number}: {name} {label} ({summary_count}/{plan_count} plans)
61
- ```
62
-
63
- For active/upcoming phases:
64
- - `disk_status === 'partial'` -> icon `>`, label `IN PROGRESS`
65
- - `disk_status === 'planned' || 'empty' || 'discussed' || 'researched' || 'no_directory'` -> icon `[ ]`, label `PLANNED`
66
-
67
- Pad phase names with spaces so status labels align in a column (within the active/upcoming group only).
68
-
69
- Only show `({summary_count}/{plan_count} plans)` when `plan_count > 0`.
70
-
71
- **Pagination (only when total phases exceed 20):**
72
-
73
- After assembling all phase lines (both collapsed completed and full-detail active/upcoming), check the total phase count:
74
-
75
- - If total phases is **20 or fewer**: show all phases. No pagination footer. This is the default experience for small/medium projects.
76
- - If total phases **exceeds 20**: apply pagination.
77
- - Page size: 20 phases per page.
78
- - Use the `--page N` argument (default page 1) to determine which slice to show.
79
- - Calculate: `first = (page - 1) * 20 + 1`, `last = min(page * 20, total)`.
80
- - Show only phases from index `first` to `last`.
81
- - Add a footer line after the phase list:
82
- ```
83
- Showing phases {first}-{last} of {total}. Use --page {next_page} for next.
84
- ```
85
- - If on the last page, omit the "Use --page" hint.
86
-
87
- Example output (small project, no pagination):
88
- ```
89
- Context-Aware SDD — 3 done / 1 active / 1 planned
90
-
91
- ✓ Phase 1: Context Rot Prevention
92
- ✓ Phase 2: Init Flow Overhaul
93
- ✓ Phase 3: Agent Coherence
94
-
95
- > Phase 4: Spec Drift Management IN PROGRESS (2/3 plans)
96
- [ ] Phase 5: Workflow Coverage PLANNED
97
- ```
98
-
99
- Example output (large project with pagination, page 1):
100
- ```
101
- NX Monorepo Migration — 15 done / 1 active / 9 planned
102
-
103
- ✓ Phase 01: NX Workspace Scaffold
104
- ✓ Phase 02: packages/core TypeScript Port
105
- ✓ Phase 03: Shared Types
106
- ...
107
- ✓ Phase 15: CI Pipeline
108
-
109
- > Phase 16: Dashboard Rewrite IN PROGRESS (2/5 plans)
110
- [ ] Phase 17: Plugin System PLANNED
111
- [ ] Phase 18: Performance Optimization PLANNED
112
- [ ] Phase 19: Documentation PLANNED
113
- [ ] Phase 20: Security Audit PLANNED
114
-
115
- Showing phases 1-20 of 25. Use --page 2 for next.
116
- ```
117
- </step>
118
-
119
- </process>
120
-
121
- <success_criteria>
122
- - [ ] Milestone summary header rendered with done/active/planned counts
123
- - [ ] Completed phases auto-collapsed to one-liners (checkmark + name only, no plan counts)
124
- - [ ] Active/upcoming phases shown with full detail (icon, label, plan counts)
125
- - [ ] Phases listed in numeric order within each group
126
- - [ ] Pagination footer shown only when total phases exceed 20
127
- - [ ] `--page N` argument controls which page to display
128
- - [ ] Plan progress shown inline for active/upcoming phases that have plans
129
- - [ ] Hard stop if .planning/ is missing
130
- </success_criteria>
@@ -1,81 +0,0 @@
1
- <purpose>
2
- Switch the model profile used by MAXSIM agents. Controls which Claude model each agent uses, balancing quality vs token spend.
3
- </purpose>
4
-
5
- <required_reading>
6
- Read all files referenced by the invoking prompt's execution_context before starting.
7
- </required_reading>
8
-
9
- <process>
10
-
11
- <step name="validate">
12
- Validate argument:
13
-
14
- ```
15
- if $ARGUMENTS.profile not in ["quality", "balanced", "budget", "tokenburner"]:
16
- Error: Invalid profile "$ARGUMENTS.profile"
17
- Valid profiles: quality, balanced, budget, tokenburner
18
- EXIT
19
- ```
20
- </step>
21
-
22
- <step name="ensure_and_load_config">
23
- Ensure config exists and load current state:
24
-
25
- ```bash
26
- node ~/.claude/maxsim/bin/maxsim-tools.cjs config-ensure-section
27
- INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs state load)
28
- ```
29
-
30
- This creates `.planning/config.json` with defaults if missing and loads current config.
31
- </step>
32
-
33
- <step name="update_config">
34
- Read current config from state load or directly:
35
-
36
- Update `model_profile` field:
37
- ```json
38
- {
39
- "model_profile": "$ARGUMENTS.profile"
40
- }
41
- ```
42
-
43
- Write updated config back to `.planning/config.json`.
44
- </step>
45
-
46
- <step name="confirm">
47
- Display confirmation with model table for selected profile:
48
-
49
- ```
50
- ✓ Model profile set to: $ARGUMENTS.profile
51
-
52
- Agents will now use:
53
-
54
- [Show table from MODEL_PROFILES in maxsim-tools.cjs for selected profile]
55
-
56
- Example:
57
- | Agent | Model |
58
- |-------|-------|
59
- | maxsim-planner | opus |
60
- | maxsim-executor | sonnet |
61
- | maxsim-verifier | haiku |
62
- | ... | ... |
63
-
64
- Next spawned agents will use the new profile.
65
- ```
66
-
67
- Map profile names:
68
- - quality: use "quality" column from MODEL_PROFILES
69
- - balanced: use "balanced" column from MODEL_PROFILES
70
- - budget: use "budget" column from MODEL_PROFILES
71
- - tokenburner: use "tokenburner" column from MODEL_PROFILES (all opus)
72
- </step>
73
-
74
- </process>
75
-
76
- <success_criteria>
77
- - [ ] Argument validated
78
- - [ ] Config file ensured
79
- - [ ] Config updated with new model_profile
80
- - [ ] Confirmation displayed with model table
81
- </success_criteria>