maxsimcli 5.0.7 → 5.1.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 (91) hide show
  1. package/README.md +101 -99
  2. package/dist/assets/CHANGELOG.md +7 -0
  3. package/dist/assets/hooks/maxsim-capture-learnings.cjs +128 -0
  4. package/dist/assets/hooks/maxsim-capture-learnings.cjs.map +1 -0
  5. package/dist/assets/hooks/maxsim-check-update.cjs +126 -88
  6. package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
  7. package/dist/assets/hooks/maxsim-notification-sound.cjs +87 -43
  8. package/dist/assets/hooks/maxsim-notification-sound.cjs.map +1 -1
  9. package/dist/assets/hooks/maxsim-statusline.cjs +45 -171
  10. package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
  11. package/dist/assets/hooks/maxsim-stop-sound.cjs +86 -43
  12. package/dist/assets/hooks/maxsim-stop-sound.cjs.map +1 -1
  13. package/dist/assets/hooks/maxsim-sync-reminder.cjs +72 -21
  14. package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -1
  15. package/dist/assets/templates/agents/AGENTS.md +62 -51
  16. package/dist/assets/templates/agents/executor.md +44 -59
  17. package/dist/assets/templates/agents/planner.md +36 -31
  18. package/dist/assets/templates/agents/researcher.md +35 -43
  19. package/dist/assets/templates/agents/verifier.md +29 -31
  20. package/dist/assets/templates/commands/maxsim/debug.md +20 -154
  21. package/dist/assets/templates/commands/maxsim/execute.md +19 -33
  22. package/dist/assets/templates/commands/maxsim/go.md +21 -20
  23. package/dist/assets/templates/commands/maxsim/help.md +5 -14
  24. package/dist/assets/templates/commands/maxsim/init.md +18 -40
  25. package/dist/assets/templates/commands/maxsim/plan.md +22 -37
  26. package/dist/assets/templates/commands/maxsim/progress.md +15 -16
  27. package/dist/assets/templates/commands/maxsim/quick.md +18 -29
  28. package/dist/assets/templates/commands/maxsim/settings.md +18 -26
  29. package/dist/assets/templates/references/continuation-format.md +2 -4
  30. package/dist/assets/templates/references/model-profiles.md +2 -2
  31. package/dist/assets/templates/references/planning-config.md +10 -11
  32. package/dist/assets/templates/references/self-improvement.md +120 -0
  33. package/dist/assets/templates/rules/conventions.md +1 -1
  34. package/dist/assets/templates/rules/verification-protocol.md +1 -1
  35. package/dist/assets/templates/skills/brainstorming/SKILL.md +35 -26
  36. package/dist/assets/templates/skills/code-review/SKILL.md +78 -55
  37. package/dist/assets/templates/skills/commit-conventions/SKILL.md +70 -36
  38. package/dist/assets/templates/skills/github-operations/SKILL.md +142 -0
  39. package/dist/assets/templates/skills/handoff-contract/SKILL.md +62 -28
  40. package/dist/assets/templates/skills/maxsim-batch/SKILL.md +68 -42
  41. package/dist/assets/templates/skills/maxsim-simplify/SKILL.md +65 -40
  42. package/dist/assets/templates/skills/project-memory/SKILL.md +121 -0
  43. package/dist/assets/templates/skills/research/SKILL.md +126 -0
  44. package/dist/assets/templates/skills/roadmap-writing/SKILL.md +71 -68
  45. package/dist/assets/templates/skills/systematic-debugging/SKILL.md +37 -25
  46. package/dist/assets/templates/skills/tdd/SKILL.md +36 -39
  47. package/dist/assets/templates/skills/using-maxsim/SKILL.md +69 -55
  48. package/dist/assets/templates/skills/verification/SKILL.md +167 -0
  49. package/dist/assets/templates/workflows/batch.md +249 -268
  50. package/dist/assets/templates/workflows/diagnose-issues.md +225 -151
  51. package/dist/assets/templates/workflows/execute-plan.md +191 -981
  52. package/dist/assets/templates/workflows/execute.md +350 -309
  53. package/dist/assets/templates/workflows/go.md +119 -138
  54. package/dist/assets/templates/workflows/health.md +71 -114
  55. package/dist/assets/templates/workflows/help.md +85 -147
  56. package/dist/assets/templates/workflows/init-existing.md +180 -1373
  57. package/dist/assets/templates/workflows/init.md +53 -165
  58. package/dist/assets/templates/workflows/new-milestone.md +91 -334
  59. package/dist/assets/templates/workflows/new-project.md +165 -1384
  60. package/dist/assets/templates/workflows/plan-create.md +182 -73
  61. package/dist/assets/templates/workflows/plan-discuss.md +89 -82
  62. package/dist/assets/templates/workflows/plan-research.md +191 -85
  63. package/dist/assets/templates/workflows/plan.md +122 -58
  64. package/dist/assets/templates/workflows/progress.md +76 -310
  65. package/dist/assets/templates/workflows/quick.md +70 -495
  66. package/dist/assets/templates/workflows/sdd.md +231 -221
  67. package/dist/assets/templates/workflows/settings.md +90 -120
  68. package/dist/assets/templates/workflows/verify-phase.md +296 -258
  69. package/dist/cli.cjs +17 -23465
  70. package/dist/cli.cjs.map +1 -1
  71. package/dist/install.cjs +356 -8358
  72. package/dist/install.cjs.map +1 -1
  73. package/package.json +16 -22
  74. package/dist/assets/templates/skills/agent-system-map/SKILL.md +0 -92
  75. package/dist/assets/templates/skills/evidence-collection/SKILL.md +0 -87
  76. package/dist/assets/templates/skills/github-artifact-protocol/SKILL.md +0 -67
  77. package/dist/assets/templates/skills/github-tools-guide/SKILL.md +0 -89
  78. package/dist/assets/templates/skills/input-validation/SKILL.md +0 -51
  79. package/dist/assets/templates/skills/memory-management/SKILL.md +0 -75
  80. package/dist/assets/templates/skills/research-methodology/SKILL.md +0 -137
  81. package/dist/assets/templates/skills/sdd/SKILL.md +0 -91
  82. package/dist/assets/templates/skills/tool-priority-guide/SKILL.md +0 -80
  83. package/dist/assets/templates/skills/verification-before-completion/SKILL.md +0 -71
  84. package/dist/assets/templates/skills/verification-gates/SKILL.md +0 -169
  85. package/dist/assets/templates/workflows/discuss-phase.md +0 -683
  86. package/dist/assets/templates/workflows/research-phase.md +0 -73
  87. package/dist/assets/templates/workflows/verify-work.md +0 -572
  88. package/dist/core-D5zUr9cb.cjs +0 -4305
  89. package/dist/core-D5zUr9cb.cjs.map +0 -1
  90. package/dist/skills-CjFWZIGM.cjs +0 -6824
  91. package/dist/skills-CjFWZIGM.cjs.map +0 -1
@@ -1,40 +1,51 @@
1
1
  <purpose>
2
- Interactive configuration of MAXSIM workflow agents (research, plan_checker, verifier) and model profile selection via multi-question prompt. Includes integrated profile management with detailed model assignment descriptions per tier. Updates .planning/config.json with user preferences. Optionally saves settings as global defaults (~/.maxsim/defaults.json) for future projects.
2
+ View and modify MaxsimCLI configuration stored in .claude/maxsim/config.json.
3
3
  </purpose>
4
4
 
5
- <required_reading>
6
- Read all files referenced by the invoking prompt's execution_context before starting.
7
- </required_reading>
8
-
9
5
  <process>
10
6
 
11
- <step name="ensure_and_load_config">
12
- Ensure config exists and load current state:
7
+ ## Step 1: Load current config
13
8
 
14
9
  ```bash
15
10
  node ~/.claude/maxsim/bin/maxsim-tools.cjs config-ensure-section
16
- INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs state load)
17
11
  ```
18
12
 
19
- Creates `.planning/config.json` with defaults if missing and loads current config values.
20
- </step>
13
+ Then read the current config:
21
14
 
22
- <step name="read_current">
23
15
  ```bash
24
- cat .planning/config.json
16
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs state load
17
+ ```
18
+
19
+ Parse current values (use defaults if field is absent):
20
+ - `model_profile` — "quality" | "balanced" | "budget" (default: "balanced")
21
+ - `workflow.research` — true | false (default: true)
22
+ - `workflow.plan_checker` — true | false (default: true)
23
+ - `workflow.verifier` — true | false (default: true)
24
+ - `workflow.auto_advance` — true | false (default: false)
25
+ - `parallelism` — "conservative" | "standard" | "aggressive" (default: "standard")
26
+ - `git.branching_strategy` — "none" | "phase" | "milestone" (default: "none")
27
+
28
+ Display current settings before prompting for changes:
29
+
25
30
  ```
31
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
32
+ MAXSIM ► CURRENT SETTINGS
33
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
26
34
 
27
- Parse current values (default to `true` if not present):
28
- - `workflow.research` — spawn researcher during /maxsim:plan
29
- - `workflow.plan_checker` spawn plan checker during /maxsim:plan
30
- - `workflow.verifier` spawn verifier during /maxsim:execute
31
- - `workflow.nyquist_validation` validation architecture research during planning
32
- - `model_profile` which model each agent uses (default: `balanced`)
33
- - `git.branching_strategy` — branching approach (default: `"none"`)
34
- </step>
35
+ | Setting | Current Value |
36
+ |-------------------|--------------------|
37
+ | Model Profile | [quality/balanced/budget] |
38
+ | Researcher | [On/Off] |
39
+ | Plan Checker | [On/Off] |
40
+ | Verifier | [On/Off] |
41
+ | Auto-Advance | [On/Off] |
42
+ | Parallelism | [conservative/standard/aggressive] |
43
+ | Git Branching | [none/phase/milestone] |
44
+ ```
35
45
 
36
- <step name="present_settings">
37
- Use AskUserQuestion with current values pre-selected:
46
+ ---
47
+
48
+ ## Step 2: Prompt user for changes
38
49
 
39
50
  ```
40
51
  AskUserQuestion([
@@ -43,54 +54,56 @@ AskUserQuestion([
43
54
  header: "Model Profile",
44
55
  multiSelect: false,
45
56
  options: [
46
- { label: "Quality", description: "Opus for planning/execution/debugging, Sonnet for verification. Best results, highest cost." },
47
- { label: "Balanced (Recommended)", description: "Opus for planning, Sonnet for execution/verification. Good balance of quality and cost." },
48
- { label: "Budget", description: "Sonnet for planning/execution, Haiku for research/verification. Lowest cost, good for rapid iteration." }
57
+ { label: "Quality", description: "Opus for all agents. Best results, highest cost." },
58
+ { label: "Balanced (Recommended)", description: "Opus for planning, Sonnet for execution/verification." },
59
+ { label: "Budget", description: "Sonnet for all agents. Fastest and cheapest." }
49
60
  ]
50
61
  },
51
62
  {
52
- question: "Spawn Plan Researcher? (researches domain before planning)",
63
+ question: "Spawn Research agent during planning?",
53
64
  header: "Research",
54
65
  multiSelect: false,
55
66
  options: [
56
- { label: "Yes", description: "Research phase goals before planning" },
57
- { label: "No", description: "Skip research, plan directly" }
67
+ { label: "Yes (Recommended)", description: "Research domain before planning each phase." },
68
+ { label: "No", description: "Skip research, plan directly." }
58
69
  ]
59
70
  },
60
71
  {
61
- question: "Spawn Plan Checker? (verifies plans before execution)",
72
+ question: "Spawn Plan Checker agent?",
62
73
  header: "Plan Check",
63
74
  multiSelect: false,
64
75
  options: [
65
- { label: "Yes", description: "Verify plans meet phase goals" },
66
- { label: "No", description: "Skip plan verification" }
76
+ { label: "Yes (Recommended)", description: "Verify plans meet phase goals before execution." },
77
+ { label: "No", description: "Skip plan verification." }
67
78
  ]
68
79
  },
69
80
  {
70
- question: "Spawn Execution Verifier? (verifies phase completion)",
81
+ question: "Spawn Verifier agent after execution?",
71
82
  header: "Verifier",
72
83
  multiSelect: false,
73
84
  options: [
74
- { label: "Yes", description: "Verify must-haves after execution" },
75
- { label: "No", description: "Skip post-execution verification" }
85
+ { label: "Yes (Recommended)", description: "Verify phase completion against must-haves." },
86
+ { label: "No", description: "Skip post-execution verification." }
76
87
  ]
77
88
  },
78
89
  {
79
- question: "Auto-advance pipeline? (discuss plan execute automatically)",
80
- header: "Auto",
90
+ question: "Parallelism how many executor agents run at once?",
91
+ header: "Parallelism",
81
92
  multiSelect: false,
82
93
  options: [
83
- { label: "No (Recommended)", description: "Manual /clear + paste between stages" },
84
- { label: "Yes", description: "Chain stages via Task() subagents (same isolation)" }
94
+ { label: "Conservative", description: "1 executor at a time. Lowest resource use." },
95
+ { label: "Standard (Recommended)", description: "Parallel within waves (respects plan dependencies)." },
96
+ { label: "Aggressive", description: "Maximum parallel execution. Fastest, highest cost." }
85
97
  ]
86
98
  },
87
99
  {
88
- question: "Enable Nyquist Validation? (researches test coverage during planning)",
89
- header: "Nyquist",
100
+ question: "Competition strategy how do agents compete on a task?",
101
+ header: "Competition",
90
102
  multiSelect: false,
91
103
  options: [
92
- { label: "Yes (Recommended)", description: "Research automated test coverage during planning. Adds validation requirements to plans. Blocks approval if tasks lack automated verify." },
93
- { label: "No", description: "Skip validation research. Good for rapid prototyping or no-test phases." }
104
+ { label: "None (Recommended)", description: "Single agent per task." },
105
+ { label: "Best-of-2", description: "Two agents race, orchestrator picks winner." },
106
+ { label: "Best-of-3", description: "Three agents race, orchestrator picks winner." }
94
107
  ]
95
108
  },
96
109
  {
@@ -98,82 +111,58 @@ AskUserQuestion([
98
111
  header: "Branching",
99
112
  multiSelect: false,
100
113
  options: [
101
- { label: "None (Recommended)", description: "Commit directly to current branch" },
102
- { label: "Per Phase", description: "Create branch for each phase (maxsim/phase-{N}-{name})" },
103
- { label: "Per Milestone", description: "Create branch for entire milestone (maxsim/{version}-{name})" }
114
+ { label: "None (Recommended)", description: "Commit directly to current branch." },
115
+ { label: "Per Phase", description: "Create branch for each phase." },
116
+ { label: "Per Milestone", description: "Create branch for the entire milestone." }
104
117
  ]
105
118
  }
106
119
  ])
107
120
  ```
108
- </step>
109
-
110
- <step name="update_config">
111
- Merge new settings into existing config.json:
112
-
113
- ```json
114
- {
115
- ...existing_config,
116
- "model_profile": "quality" | "balanced" | "budget",
117
- "workflow": {
118
- "research": true/false,
119
- "plan_checker": true/false,
120
- "verifier": true/false,
121
- "auto_advance": true/false,
122
- "nyquist_validation": true/false
123
- },
124
- "git": {
125
- "branching_strategy": "none" | "phase" | "milestone"
126
- }
127
- }
121
+
122
+ ---
123
+
124
+ ## Step 3: Save updated config
125
+
126
+ Merge new settings into config.json:
127
+
128
+ ```bash
129
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set model_profile "[value]"
130
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set workflow.research [true/false]
131
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set workflow.plan_checker [true/false]
132
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set workflow.verifier [true/false]
133
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set workflow.auto_advance [true/false]
134
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set parallelism "[value]"
135
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set competition "[none/best-of-2/best-of-3]"
136
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-set git.branching_strategy "[value]"
128
137
  ```
129
138
 
130
- Write updated config to `.planning/config.json`.
131
- </step>
139
+ ---
140
+
141
+ ## Step 4: Confirm and offer global save
132
142
 
133
- <step name="save_as_defaults">
134
- Ask whether to save these settings as global defaults for future projects:
143
+ Display updated settings table, then ask:
135
144
 
136
145
  ```
137
146
  AskUserQuestion([
138
147
  {
139
- question: "Save these as default settings for all new projects?",
148
+ question: "Save these as global defaults for all new projects?",
140
149
  header: "Defaults",
141
150
  multiSelect: false,
142
151
  options: [
143
- { label: "Yes", description: "New projects start with these settings (saved to ~/.maxsim/defaults.json)" },
144
- { label: "No", description: "Only apply to this project" }
152
+ { label: "Yes", description: "New projects start with these settings (~/.maxsim/defaults.json)." },
153
+ { label: "No", description: "Only apply to this project." }
145
154
  ]
146
155
  }
147
156
  ])
148
157
  ```
149
158
 
150
- If "Yes": write the same config object (minus project-specific fields like `brave_search`) to `~/.maxsim/defaults.json`:
159
+ If "Yes":
151
160
 
152
161
  ```bash
153
162
  mkdir -p ~/.maxsim
163
+ node ~/.claude/maxsim/bin/maxsim-tools.cjs config-save-defaults ~/.maxsim/defaults.json
154
164
  ```
155
165
 
156
- Write `~/.maxsim/defaults.json` with:
157
- ```json
158
- {
159
- "mode": <current>,
160
- "depth": <current>,
161
- "model_profile": <current>,
162
- "commit_docs": <current>,
163
- "parallelization": <current>,
164
- "branching_strategy": <current>,
165
- "workflow": {
166
- "research": <current>,
167
- "plan_checker": <current>,
168
- "verifier": <current>,
169
- "auto_advance": <current>,
170
- "nyquist_validation": <current>
171
- }
172
- }
173
- ```
174
- </step>
175
-
176
- <step name="confirm">
177
166
  Display:
178
167
 
179
168
  ```
@@ -181,37 +170,18 @@ Display:
181
170
  MAXSIM ► SETTINGS UPDATED
182
171
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
183
172
 
184
- | Setting | Value |
185
- |----------------------|-------|
186
- | Model Profile | {quality/balanced/budget} |
187
- | Plan Researcher | {On/Off} |
188
- | Plan Checker | {On/Off} |
189
- | Execution Verifier | {On/Off} |
190
- | Auto-Advance | {On/Off} |
191
- | Nyquist Validation | {On/Off} |
192
- | Git Branching | {None/Per Phase/Per Milestone} |
193
- | Saved as Defaults | {Yes/No} |
194
-
195
- These settings apply to future /maxsim:plan and /maxsim:execute runs.
196
-
197
- Profile Details ({quality/balanced/budget}):
198
- | Agent Role | Model |
199
- |------------|-------|
200
- | Planner | {model from MODEL_PROFILES} |
201
- | Executor | {model from MODEL_PROFILES} |
202
- | Researcher | {model from MODEL_PROFILES} |
203
- | Verifier | {model from MODEL_PROFILES} |
173
+ Settings saved to .planning/config.json
174
+ [If global: Also saved to ~/.maxsim/defaults.json]
204
175
 
205
176
  Re-run /maxsim:settings anytime to change these.
206
177
  ```
207
- </step>
208
178
 
209
179
  </process>
210
180
 
211
181
  <success_criteria>
212
- - [ ] Current config read
213
- - [ ] User presented with 7 settings (profile + 5 workflow toggles + git branching)
214
- - [ ] Config updated with model_profile, workflow, and git sections
215
- - [ ] User offered to save as global defaults (~/.maxsim/defaults.json)
216
- - [ ] Changes confirmed to user
182
+ - [ ] Current config loaded and displayed
183
+ - [ ] User presented with all 7 settings
184
+ - [ ] Config updated via maxsim-tools config-set commands
185
+ - [ ] User offered to save as global defaults
186
+ - [ ] Confirmation displayed after save
217
187
  </success_criteria>