maxsimcli 4.8.0 → 4.10.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.
- package/README.md +180 -202
- package/dist/assets/CHANGELOG.md +61 -0
- package/dist/assets/hooks/maxsim-check-update.cjs +38 -0
- package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-statusline.cjs +116 -48
- package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-sync-reminder.cjs +117 -0
- package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -0
- package/dist/assets/templates/agents/AGENTS.md +78 -106
- package/dist/assets/templates/agents/executor.md +101 -0
- package/dist/assets/templates/agents/planner.md +86 -0
- package/dist/assets/templates/agents/researcher.md +71 -0
- package/dist/assets/templates/agents/verifier.md +88 -0
- package/dist/assets/templates/commands/maxsim/debug.md +7 -7
- package/dist/assets/templates/commands/maxsim/execute.md +45 -0
- package/dist/assets/templates/commands/maxsim/go.md +29 -0
- package/dist/assets/templates/commands/maxsim/help.md +2 -2
- package/dist/assets/templates/commands/maxsim/init.md +52 -0
- package/dist/assets/templates/commands/maxsim/plan.md +50 -0
- package/dist/assets/templates/commands/maxsim/progress.md +4 -3
- package/dist/assets/templates/commands/maxsim/quick.md +6 -4
- package/dist/assets/templates/commands/maxsim/settings.md +4 -3
- package/dist/assets/templates/references/continuation-format.md +16 -16
- package/dist/assets/templates/references/model-profile-resolution.md +1 -1
- package/dist/assets/templates/references/model-profiles.md +12 -19
- package/dist/assets/templates/rules/conventions.md +51 -0
- package/dist/assets/templates/rules/verification-protocol.md +57 -0
- package/dist/assets/templates/skills/agent-system-map/SKILL.md +92 -0
- package/dist/assets/templates/skills/brainstorming/SKILL.md +48 -36
- package/dist/assets/templates/skills/code-review/SKILL.md +40 -61
- package/dist/assets/templates/skills/commit-conventions/SKILL.md +75 -0
- package/dist/assets/templates/skills/evidence-collection/SKILL.md +87 -0
- package/dist/assets/templates/skills/handoff-contract/SKILL.md +70 -0
- package/dist/assets/templates/skills/input-validation/SKILL.md +51 -0
- package/dist/assets/templates/skills/maxsim-batch/SKILL.md +41 -45
- package/dist/assets/templates/skills/maxsim-simplify/SKILL.md +37 -90
- package/dist/assets/templates/skills/memory-management/SKILL.md +32 -67
- package/dist/assets/templates/skills/research-methodology/SKILL.md +137 -0
- package/dist/assets/templates/skills/roadmap-writing/SKILL.md +40 -58
- package/dist/assets/templates/skills/sdd/SKILL.md +34 -69
- package/dist/assets/templates/skills/systematic-debugging/SKILL.md +20 -26
- package/dist/assets/templates/skills/tdd/SKILL.md +25 -33
- package/dist/assets/templates/skills/tool-priority-guide/SKILL.md +80 -0
- package/dist/assets/templates/skills/using-maxsim/SKILL.md +42 -73
- package/dist/assets/templates/skills/verification-before-completion/SKILL.md +12 -24
- package/dist/assets/templates/skills/verification-gates/SKILL.md +169 -0
- package/dist/assets/templates/templates/UAT.md +3 -3
- package/dist/assets/templates/templates/VALIDATION.md +1 -1
- package/dist/assets/templates/templates/context.md +4 -4
- package/dist/assets/templates/templates/debug-subagent-prompt.md +3 -3
- package/dist/assets/templates/templates/discovery.md +2 -2
- package/dist/assets/templates/templates/phase-prompt.md +2 -2
- package/dist/assets/templates/templates/planner-subagent-prompt.md +7 -7
- package/dist/assets/templates/templates/project.md +1 -1
- package/dist/assets/templates/templates/research.md +1 -1
- package/dist/assets/templates/templates/state.md +2 -2
- package/dist/assets/templates/templates/summary.md +41 -0
- package/dist/assets/templates/workflows/batch.md +5 -5
- package/dist/assets/templates/workflows/diagnose-issues.md +2 -2
- package/dist/assets/templates/workflows/discovery-phase.md +3 -3
- package/dist/assets/templates/workflows/discuss-phase.md +11 -11
- package/dist/assets/templates/workflows/execute-phase.md +205 -11
- package/dist/assets/templates/workflows/execute-plan.md +299 -34
- package/dist/assets/templates/workflows/execute.md +421 -0
- package/dist/assets/templates/workflows/go.md +250 -0
- package/dist/assets/templates/workflows/health.md +5 -5
- package/dist/assets/templates/workflows/help.md +165 -435
- package/dist/assets/templates/workflows/init-existing.md +23 -23
- package/dist/assets/templates/workflows/init.md +205 -0
- package/dist/assets/templates/workflows/new-milestone.md +9 -9
- package/dist/assets/templates/workflows/new-project.md +26 -26
- package/dist/assets/templates/workflows/plan-create.md +298 -0
- package/dist/assets/templates/workflows/plan-discuss.md +347 -0
- package/dist/assets/templates/workflows/plan-phase.md +29 -29
- package/dist/assets/templates/workflows/plan-research.md +177 -0
- package/dist/assets/templates/workflows/plan.md +231 -0
- package/dist/assets/templates/workflows/progress.md +46 -42
- package/dist/assets/templates/workflows/quick.md +195 -14
- package/dist/assets/templates/workflows/research-phase.md +5 -5
- package/dist/assets/templates/workflows/sdd.md +20 -12
- package/dist/assets/templates/workflows/settings.md +18 -14
- package/dist/assets/templates/workflows/verify-phase.md +1 -1
- package/dist/assets/templates/workflows/verify-work.md +16 -16
- package/dist/cli.cjs +4589 -229
- package/dist/cli.cjs.map +1 -1
- package/dist/core-D5zUr9cb.cjs.map +1 -1
- package/dist/install.cjs +234 -17
- package/dist/install.cjs.map +1 -1
- package/dist/mcp-server.cjs +298 -20
- package/dist/mcp-server.cjs.map +1 -1
- package/dist/skills-CjFWZIGM.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/assets/hooks/maxsim-context-monitor.cjs +0 -121
- package/dist/assets/hooks/maxsim-context-monitor.cjs.map +0 -1
- package/dist/assets/templates/agents/maxsim-code-reviewer.md +0 -239
- package/dist/assets/templates/agents/maxsim-codebase-mapper.md +0 -214
- package/dist/assets/templates/agents/maxsim-debugger.md +0 -572
- package/dist/assets/templates/agents/maxsim-drift-checker.md +0 -522
- package/dist/assets/templates/agents/maxsim-executor.md +0 -504
- package/dist/assets/templates/agents/maxsim-integration-checker.md +0 -273
- package/dist/assets/templates/agents/maxsim-phase-researcher.md +0 -305
- package/dist/assets/templates/agents/maxsim-plan-checker.md +0 -343
- package/dist/assets/templates/agents/maxsim-planner.md +0 -610
- package/dist/assets/templates/agents/maxsim-project-researcher.md +0 -359
- package/dist/assets/templates/agents/maxsim-research-synthesizer.md +0 -263
- package/dist/assets/templates/agents/maxsim-roadmapper.md +0 -324
- package/dist/assets/templates/agents/maxsim-spec-reviewer.md +0 -245
- package/dist/assets/templates/agents/maxsim-verifier.md +0 -393
- package/dist/assets/templates/commands/maxsim/add-phase.md +0 -43
- package/dist/assets/templates/commands/maxsim/add-tests.md +0 -41
- package/dist/assets/templates/commands/maxsim/add-todo.md +0 -57
- package/dist/assets/templates/commands/maxsim/artefakte.md +0 -122
- package/dist/assets/templates/commands/maxsim/audit-milestone.md +0 -36
- package/dist/assets/templates/commands/maxsim/batch.md +0 -42
- package/dist/assets/templates/commands/maxsim/check-drift.md +0 -56
- package/dist/assets/templates/commands/maxsim/check-todos.md +0 -46
- package/dist/assets/templates/commands/maxsim/cleanup.md +0 -18
- package/dist/assets/templates/commands/maxsim/complete-milestone.md +0 -136
- package/dist/assets/templates/commands/maxsim/discuss-phase.md +0 -87
- package/dist/assets/templates/commands/maxsim/discuss.md +0 -70
- package/dist/assets/templates/commands/maxsim/execute-phase.md +0 -41
- package/dist/assets/templates/commands/maxsim/health.md +0 -22
- package/dist/assets/templates/commands/maxsim/init-existing.md +0 -46
- package/dist/assets/templates/commands/maxsim/insert-phase.md +0 -32
- package/dist/assets/templates/commands/maxsim/list-phase-assumptions.md +0 -46
- package/dist/assets/templates/commands/maxsim/map-codebase.md +0 -71
- package/dist/assets/templates/commands/maxsim/new-milestone.md +0 -44
- package/dist/assets/templates/commands/maxsim/new-project.md +0 -46
- package/dist/assets/templates/commands/maxsim/pause-work.md +0 -38
- package/dist/assets/templates/commands/maxsim/plan-milestone-gaps.md +0 -34
- package/dist/assets/templates/commands/maxsim/plan-phase.md +0 -44
- package/dist/assets/templates/commands/maxsim/realign.md +0 -39
- package/dist/assets/templates/commands/maxsim/reapply-patches.md +0 -110
- package/dist/assets/templates/commands/maxsim/remove-phase.md +0 -31
- package/dist/assets/templates/commands/maxsim/research-phase.md +0 -189
- package/dist/assets/templates/commands/maxsim/resume-work.md +0 -40
- package/dist/assets/templates/commands/maxsim/roadmap.md +0 -19
- package/dist/assets/templates/commands/maxsim/sdd.md +0 -39
- package/dist/assets/templates/commands/maxsim/set-profile.md +0 -34
- package/dist/assets/templates/commands/maxsim/update.md +0 -37
- package/dist/assets/templates/commands/maxsim/verify-work.md +0 -38
- package/dist/assets/templates/workflows/add-phase.md +0 -111
- package/dist/assets/templates/workflows/add-tests.md +0 -351
- package/dist/assets/templates/workflows/add-todo.md +0 -247
- package/dist/assets/templates/workflows/audit-milestone.md +0 -297
- package/dist/assets/templates/workflows/check-drift.md +0 -248
- package/dist/assets/templates/workflows/check-todos.md +0 -261
- package/dist/assets/templates/workflows/cleanup.md +0 -153
- package/dist/assets/templates/workflows/complete-milestone.md +0 -701
- package/dist/assets/templates/workflows/discuss.md +0 -343
- package/dist/assets/templates/workflows/insert-phase.md +0 -129
- package/dist/assets/templates/workflows/list-phase-assumptions.md +0 -178
- package/dist/assets/templates/workflows/map-codebase.md +0 -315
- package/dist/assets/templates/workflows/pause-work.md +0 -122
- package/dist/assets/templates/workflows/plan-milestone-gaps.md +0 -274
- package/dist/assets/templates/workflows/realign.md +0 -288
- package/dist/assets/templates/workflows/remove-phase.md +0 -154
- package/dist/assets/templates/workflows/resume-project.md +0 -306
- package/dist/assets/templates/workflows/roadmap.md +0 -130
- package/dist/assets/templates/workflows/set-profile.md +0 -81
- package/dist/assets/templates/workflows/transition.md +0 -544
- package/dist/assets/templates/workflows/update.md +0 -220
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maxsim:help
|
|
3
|
-
description: Show
|
|
3
|
+
description: Show MAXSIM command reference and usage guide
|
|
4
4
|
---
|
|
5
5
|
<objective>
|
|
6
6
|
Display the complete MAXSIM command reference.
|
|
@@ -18,5 +18,5 @@ Output ONLY the reference content below. Do NOT add:
|
|
|
18
18
|
|
|
19
19
|
<process>
|
|
20
20
|
Output the complete MAXSIM command reference from @./workflows/help.md.
|
|
21
|
-
Display
|
|
21
|
+
Display directly -- no additions or modifications.
|
|
22
22
|
</process>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maxsim:init
|
|
3
|
+
description: Initialize a new project or manage milestone lifecycle
|
|
4
|
+
argument-hint: "[--auto]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- Task
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
- Glob
|
|
12
|
+
- Grep
|
|
13
|
+
- WebFetch
|
|
14
|
+
- mcp__context7__resolve-library-id
|
|
15
|
+
- mcp__context7__get-library-docs
|
|
16
|
+
---
|
|
17
|
+
<context>
|
|
18
|
+
**Flags:**
|
|
19
|
+
- `--auto` -- Automatic mode. After config questions, runs the appropriate flow without further interaction. For new projects, expects idea document via @ reference.
|
|
20
|
+
</context>
|
|
21
|
+
|
|
22
|
+
<objective>
|
|
23
|
+
Unified project initialization. Detects whether this is a new project, existing project, or milestone lifecycle and routes to the appropriate workflow.
|
|
24
|
+
|
|
25
|
+
**Creates (depending on scenario):**
|
|
26
|
+
- `.planning/PROJECT.md` -- project context
|
|
27
|
+
- `.planning/config.json` -- workflow preferences
|
|
28
|
+
- `.planning/REQUIREMENTS.md` -- scoped requirements
|
|
29
|
+
- `.planning/ROADMAP.md` -- phase structure
|
|
30
|
+
- `.planning/STATE.md` -- project memory
|
|
31
|
+
- `.planning/DECISIONS.md` -- key decisions with rationale
|
|
32
|
+
- `.planning/ACCEPTANCE-CRITERIA.md` -- measurable success criteria
|
|
33
|
+
- `.planning/NO-GOS.md` -- explicit exclusions and anti-patterns
|
|
34
|
+
- `.planning/codebase/` -- codebase analysis (existing projects only)
|
|
35
|
+
- `.planning/research/` -- domain research (optional)
|
|
36
|
+
|
|
37
|
+
**After this command:** Run `/maxsim:plan 1` to start phase planning.
|
|
38
|
+
</objective>
|
|
39
|
+
|
|
40
|
+
<execution_context>
|
|
41
|
+
@./workflows/init.md
|
|
42
|
+
@./references/questioning.md
|
|
43
|
+
@./references/thinking-partner.md
|
|
44
|
+
@./references/ui-brand.md
|
|
45
|
+
@./templates/project.md
|
|
46
|
+
@./templates/requirements.md
|
|
47
|
+
</execution_context>
|
|
48
|
+
|
|
49
|
+
<process>
|
|
50
|
+
Execute the init workflow from @./workflows/init.md end-to-end.
|
|
51
|
+
Pass $ARGUMENTS through to the workflow for flag handling (--auto).
|
|
52
|
+
</process>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: maxsim:plan
|
|
3
|
+
description: State-machine plan command — Discussion, Research, Planning stages with gate confirmations
|
|
4
|
+
argument-hint: "[phase-number] [--force-research] [--skip-verify]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Task
|
|
12
|
+
- WebFetch
|
|
13
|
+
- mcp__context7__*
|
|
14
|
+
---
|
|
15
|
+
<objective>
|
|
16
|
+
Execute the plan state machine: Discussion -> Research -> Planning. Each stage produces artifacts, shows a gate summary, and waits for user confirmation before advancing.
|
|
17
|
+
|
|
18
|
+
**How it works:**
|
|
19
|
+
1. Detect current stage from phase artifacts (CONTEXT.md, RESEARCH.md, PLAN.md)
|
|
20
|
+
2. Start at the earliest incomplete stage
|
|
21
|
+
3. Run each stage via dedicated sub-workflow
|
|
22
|
+
4. Show rich gate summary after each stage — wait for user confirmation
|
|
23
|
+
5. Advance to next stage on confirmation
|
|
24
|
+
|
|
25
|
+
**Re-entry:** If phase is already planned, show status and offer options (view, re-plan, execute).
|
|
26
|
+
|
|
27
|
+
**Flags:**
|
|
28
|
+
- `--force-research` — Re-run research even if RESEARCH.md exists
|
|
29
|
+
- `--skip-verify` — Skip plan verification loop after planning stage
|
|
30
|
+
</objective>
|
|
31
|
+
|
|
32
|
+
<execution_context>
|
|
33
|
+
@./workflows/plan.md
|
|
34
|
+
@./references/ui-brand.md
|
|
35
|
+
</execution_context>
|
|
36
|
+
|
|
37
|
+
<context>
|
|
38
|
+
Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
|
|
39
|
+
|
|
40
|
+
**Flags:**
|
|
41
|
+
- `--force-research` — Re-run research even if RESEARCH.md exists
|
|
42
|
+
- `--skip-verify` — Skip plan verification loop after planning stage
|
|
43
|
+
|
|
44
|
+
Context files are resolved inside the workflow via `maxsim-tools init plan-phase` and per-subagent context assembly.
|
|
45
|
+
</context>
|
|
46
|
+
|
|
47
|
+
<process>
|
|
48
|
+
Execute the plan workflow from @./workflows/plan.md end-to-end.
|
|
49
|
+
Preserve all workflow gates (stage detection, discussion, research, planning, gate confirmations, re-entry flow).
|
|
50
|
+
</process>
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maxsim:progress
|
|
3
|
-
description: Check project progress,
|
|
3
|
+
description: Check project progress, milestone status, and route to next action
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- Read
|
|
6
6
|
- Bash
|
|
7
7
|
- Grep
|
|
8
8
|
- Glob
|
|
9
|
+
- Task
|
|
9
10
|
- SlashCommand
|
|
10
11
|
---
|
|
11
12
|
<objective>
|
|
12
|
-
Check project progress,
|
|
13
|
+
Check project progress, milestone status, and offer milestone completion when all phases are done. Shows GitHub Issues-based progress alongside local ROADMAP.md progress for cross-validation.
|
|
13
14
|
|
|
14
|
-
Provides situational awareness before continuing work.
|
|
15
|
+
Provides situational awareness before continuing work, detects phase gaps, and intelligently routes to the next action.
|
|
15
16
|
</objective>
|
|
16
17
|
|
|
17
18
|
<execution_context>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: maxsim:quick
|
|
3
|
-
description: Execute a quick task with MAXSIM guarantees
|
|
4
|
-
argument-hint: "[--full]"
|
|
3
|
+
description: Execute a quick task with MAXSIM guarantees, or capture todos for later work
|
|
4
|
+
argument-hint: "[--full] [--todo]"
|
|
5
5
|
allowed-tools:
|
|
6
6
|
- Read
|
|
7
7
|
- Write
|
|
@@ -13,16 +13,18 @@ allowed-tools:
|
|
|
13
13
|
- AskUserQuestion
|
|
14
14
|
---
|
|
15
15
|
<objective>
|
|
16
|
-
Execute small, ad-hoc tasks with MAXSIM guarantees (atomic commits, STATE.md tracking).
|
|
16
|
+
Execute small, ad-hoc tasks with MAXSIM guarantees (atomic commits, STATE.md tracking). Also supports "save for later" -- capturing ideas as GitHub Issues with 'todo' label for future work.
|
|
17
17
|
|
|
18
18
|
Quick mode is the same system with a shorter path:
|
|
19
|
-
- Spawns
|
|
19
|
+
- Spawns planner (quick mode) + executor(s)
|
|
20
20
|
- Quick tasks live in `.planning/quick/` separate from planned phases
|
|
21
21
|
- Updates STATE.md "Quick Tasks Completed" table (NOT ROADMAP.md)
|
|
22
22
|
|
|
23
23
|
**Default:** Skips research, plan-checker, verifier. Use when you know exactly what to do.
|
|
24
24
|
|
|
25
25
|
**`--full` flag:** Enables plan-checking (max 2 iterations) and post-execution verification. Use when you want quality guarantees without full milestone ceremony.
|
|
26
|
+
|
|
27
|
+
**`--todo` flag:** Enters todo management mode. List, capture, complete, and triage todos without executing tasks. "Save for later" creates a local todo + best-effort GitHub Issue with 'todo' label.
|
|
26
28
|
</objective>
|
|
27
29
|
|
|
28
30
|
<execution_context>
|
|
@@ -9,14 +9,15 @@ allowed-tools:
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
<objective>
|
|
12
|
-
Interactive configuration of MAXSIM workflow agents
|
|
12
|
+
Interactive configuration of MAXSIM workflow agents, model profile, and pipeline settings via multi-question prompt. Includes integrated profile management with model assignment details per tier.
|
|
13
13
|
|
|
14
14
|
Routes to the settings workflow which handles:
|
|
15
15
|
- Config existence ensuring
|
|
16
16
|
- Current settings reading and parsing
|
|
17
|
-
- Interactive
|
|
17
|
+
- Interactive prompt (model profile, research, plan_checker, verifier, auto-advance, nyquist, branching)
|
|
18
|
+
- Profile description showing actual model assignments per profile tier
|
|
18
19
|
- Config merging and writing
|
|
19
|
-
- Confirmation display
|
|
20
|
+
- Confirmation display
|
|
20
21
|
</objective>
|
|
21
22
|
|
|
22
23
|
<execution_context>
|
|
@@ -44,7 +44,7 @@ Standard format for presenting next steps after completing a command or workflow
|
|
|
44
44
|
|
|
45
45
|
**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
|
|
46
46
|
|
|
47
|
-
`/maxsim:execute
|
|
47
|
+
`/maxsim:execute 2`
|
|
48
48
|
|
|
49
49
|
<sub>`/clear` first → fresh context window</sub>
|
|
50
50
|
|
|
@@ -52,7 +52,7 @@ Standard format for presenting next steps after completing a command or workflow
|
|
|
52
52
|
|
|
53
53
|
**Also available:**
|
|
54
54
|
- Review plan before executing
|
|
55
|
-
- `/maxsim:
|
|
55
|
+
- `/maxsim:plan --review 2` — check assumptions
|
|
56
56
|
|
|
57
57
|
---
|
|
58
58
|
```
|
|
@@ -69,7 +69,7 @@ Add note that this is the last plan and what comes after:
|
|
|
69
69
|
**02-03: Refresh Token Rotation** — Add /api/auth/refresh with sliding expiry
|
|
70
70
|
<sub>Final plan in Phase 2</sub>
|
|
71
71
|
|
|
72
|
-
`/maxsim:execute
|
|
72
|
+
`/maxsim:execute 2`
|
|
73
73
|
|
|
74
74
|
<sub>`/clear` first → fresh context window</sub>
|
|
75
75
|
|
|
@@ -91,15 +91,15 @@ Add note that this is the last plan and what comes after:
|
|
|
91
91
|
|
|
92
92
|
**Phase 2: Authentication** — JWT login flow with refresh tokens
|
|
93
93
|
|
|
94
|
-
`/maxsim:plan
|
|
94
|
+
`/maxsim:plan 2`
|
|
95
95
|
|
|
96
96
|
<sub>`/clear` first → fresh context window</sub>
|
|
97
97
|
|
|
98
98
|
---
|
|
99
99
|
|
|
100
100
|
**Also available:**
|
|
101
|
-
- `/maxsim:
|
|
102
|
-
- `/maxsim:research
|
|
101
|
+
- `/maxsim:plan 2` — gather context first
|
|
102
|
+
- `/maxsim:plan --research 2` — investigate unknowns
|
|
103
103
|
- Review roadmap
|
|
104
104
|
|
|
105
105
|
---
|
|
@@ -120,15 +120,15 @@ Show completion status before next action:
|
|
|
120
120
|
|
|
121
121
|
**Phase 3: Core Features** — User dashboard, settings, and data export
|
|
122
122
|
|
|
123
|
-
`/maxsim:plan
|
|
123
|
+
`/maxsim:plan 3`
|
|
124
124
|
|
|
125
125
|
<sub>`/clear` first → fresh context window</sub>
|
|
126
126
|
|
|
127
127
|
---
|
|
128
128
|
|
|
129
129
|
**Also available:**
|
|
130
|
-
- `/maxsim:
|
|
131
|
-
- `/maxsim:research
|
|
130
|
+
- `/maxsim:plan 3` — gather context first
|
|
131
|
+
- `/maxsim:plan --research 3` — investigate unknowns
|
|
132
132
|
- Review what Phase 2 built
|
|
133
133
|
|
|
134
134
|
---
|
|
@@ -145,11 +145,11 @@ When there's no clear primary action:
|
|
|
145
145
|
|
|
146
146
|
**Phase 3: Core Features** — User dashboard, settings, and data export
|
|
147
147
|
|
|
148
|
-
**To plan directly:** `/maxsim:plan
|
|
148
|
+
**To plan directly:** `/maxsim:plan 3`
|
|
149
149
|
|
|
150
|
-
**To discuss context first:** `/maxsim:
|
|
150
|
+
**To discuss context first:** `/maxsim:plan 3`
|
|
151
151
|
|
|
152
|
-
**To research unknowns:** `/maxsim:research
|
|
152
|
+
**To research unknowns:** `/maxsim:plan --research 3`
|
|
153
153
|
|
|
154
154
|
<sub>`/clear` first → fresh context window</sub>
|
|
155
155
|
|
|
@@ -169,7 +169,7 @@ All 4 phases shipped
|
|
|
169
169
|
|
|
170
170
|
**Start v1.1** — questioning → research → requirements → roadmap
|
|
171
171
|
|
|
172
|
-
`/maxsim:
|
|
172
|
+
`/maxsim:init`
|
|
173
173
|
|
|
174
174
|
<sub>`/clear` first → fresh context window</sub>
|
|
175
175
|
|
|
@@ -214,7 +214,7 @@ Extract: `**02-03: Refresh Token Rotation** — Add /api/auth/refresh with slidi
|
|
|
214
214
|
## To Continue
|
|
215
215
|
|
|
216
216
|
Run `/clear`, then paste:
|
|
217
|
-
/maxsim:execute
|
|
217
|
+
/maxsim:execute 2
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
User has no idea what 02-03 is about.
|
|
@@ -222,7 +222,7 @@ User has no idea what 02-03 is about.
|
|
|
222
222
|
### Don't: Missing /clear explanation
|
|
223
223
|
|
|
224
224
|
```
|
|
225
|
-
`/maxsim:plan
|
|
225
|
+
`/maxsim:plan 3`
|
|
226
226
|
|
|
227
227
|
Run /clear first.
|
|
228
228
|
```
|
|
@@ -242,7 +242,7 @@ Sounds like an afterthought. Use "Also available:" instead.
|
|
|
242
242
|
|
|
243
243
|
```
|
|
244
244
|
```
|
|
245
|
-
/maxsim:plan
|
|
245
|
+
/maxsim:plan 3
|
|
246
246
|
```
|
|
247
247
|
```
|
|
248
248
|
|
|
@@ -6,17 +6,10 @@ Model profiles control which Claude model each MAXSIM agent uses. This allows ba
|
|
|
6
6
|
|
|
7
7
|
| Agent | `quality` | `balanced` | `budget` |
|
|
8
8
|
|-------|-----------|------------|----------|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
| maxsim-project-researcher | opus | sonnet | haiku |
|
|
14
|
-
| maxsim-research-synthesizer | sonnet | sonnet | haiku |
|
|
15
|
-
| maxsim-debugger | opus | sonnet | sonnet |
|
|
16
|
-
| maxsim-codebase-mapper | sonnet | haiku | haiku |
|
|
17
|
-
| maxsim-verifier | sonnet | sonnet | haiku |
|
|
18
|
-
| maxsim-plan-checker | sonnet | sonnet | haiku |
|
|
19
|
-
| maxsim-integration-checker | sonnet | sonnet | haiku |
|
|
9
|
+
| planner | opus | sonnet | haiku |
|
|
10
|
+
| executor | opus | sonnet | sonnet |
|
|
11
|
+
| researcher | opus | sonnet | haiku |
|
|
12
|
+
| verifier | sonnet | sonnet | haiku |
|
|
20
13
|
|
|
21
14
|
## Profile Philosophy
|
|
22
15
|
|
|
@@ -55,8 +48,8 @@ Override specific agents without changing the entire profile:
|
|
|
55
48
|
{
|
|
56
49
|
"model_profile": "balanced",
|
|
57
50
|
"model_overrides": {
|
|
58
|
-
"
|
|
59
|
-
"
|
|
51
|
+
"executor": "opus",
|
|
52
|
+
"planner": "haiku"
|
|
60
53
|
}
|
|
61
54
|
}
|
|
62
55
|
```
|
|
@@ -65,7 +58,7 @@ Overrides take precedence over the profile. Valid values: `opus`, `sonnet`, `hai
|
|
|
65
58
|
|
|
66
59
|
## Switching Profiles
|
|
67
60
|
|
|
68
|
-
Runtime: `/maxsim:
|
|
61
|
+
Runtime: `/maxsim:settings` (change profile)
|
|
69
62
|
|
|
70
63
|
Per-project default: Set in `.planning/config.json`:
|
|
71
64
|
```json
|
|
@@ -76,17 +69,17 @@ Per-project default: Set in `.planning/config.json`:
|
|
|
76
69
|
|
|
77
70
|
## Design Rationale
|
|
78
71
|
|
|
79
|
-
**Why Opus for
|
|
72
|
+
**Why Opus for planner?**
|
|
80
73
|
Planning involves architecture decisions, goal decomposition, and task design. This is where model quality has the highest impact.
|
|
81
74
|
|
|
82
|
-
**Why Sonnet for
|
|
75
|
+
**Why Sonnet for executor?**
|
|
83
76
|
Executors follow explicit PLAN.md instructions. The plan already contains the reasoning; execution is implementation.
|
|
84
77
|
|
|
85
|
-
**Why Sonnet (not Haiku) for
|
|
78
|
+
**Why Sonnet (not Haiku) for verifier in balanced?**
|
|
86
79
|
Verification requires goal-backward reasoning - checking if code *delivers* what the phase promised, not just pattern matching. Sonnet handles this well; Haiku may miss subtle gaps.
|
|
87
80
|
|
|
88
|
-
**Why Haiku for
|
|
89
|
-
Read-only exploration and pattern extraction.
|
|
81
|
+
**Why Haiku for researcher in budget?**
|
|
82
|
+
Read-only exploration and pattern extraction. Research is guided by orchestrator questions; Haiku can follow structured research protocols effectively at lower cost.
|
|
90
83
|
|
|
91
84
|
**Why `inherit` instead of passing `opus` directly?**
|
|
92
85
|
Claude Code's `"opus"` alias maps to a specific model version. Organizations may block older opus versions while allowing newer ones. MAXSIM returns `"inherit"` for opus-tier agents, causing them to use whatever opus version the user has configured in their session. This avoids version conflicts and silent fallbacks to Sonnet.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# MAXSIM Conventions
|
|
2
|
+
|
|
3
|
+
These conventions apply to all MAXSIM-managed work. Follow them alongside project-specific CLAUDE.md conventions.
|
|
4
|
+
|
|
5
|
+
## Commit Messages
|
|
6
|
+
|
|
7
|
+
Use conventional commits with scope:
|
|
8
|
+
|
|
9
|
+
| Prefix | When |
|
|
10
|
+
|--------|------|
|
|
11
|
+
| `fix(scope):` | Bug fix |
|
|
12
|
+
| `feat(scope):` | New feature |
|
|
13
|
+
| `chore(scope):` | Build, deps, maintenance |
|
|
14
|
+
| `docs(scope):` | Documentation only |
|
|
15
|
+
| `test(scope):` | Adding or fixing tests |
|
|
16
|
+
| `refactor(scope):` | Neither fix nor feature |
|
|
17
|
+
| `fix!(scope):` / `feat!(scope):` | Breaking change |
|
|
18
|
+
|
|
19
|
+
Scope reflects the area of change: `fix(install):`, `feat(phase-04):`, `refactor(core):`.
|
|
20
|
+
|
|
21
|
+
Atomic commits: one logical change per commit. Do not bundle unrelated changes.
|
|
22
|
+
|
|
23
|
+
Co-author line when AI-assisted: `Co-Authored-By: Claude <noreply@anthropic.com>`
|
|
24
|
+
|
|
25
|
+
## File Naming
|
|
26
|
+
|
|
27
|
+
| Type | Path Pattern |
|
|
28
|
+
|------|-------------|
|
|
29
|
+
| Skills | `.claude/skills/<kebab-case>/SKILL.md` |
|
|
30
|
+
| Agents | `.claude/agents/<simple-name>.md` |
|
|
31
|
+
| Rules | `.claude/rules/<topic>.md` |
|
|
32
|
+
| Plans | `.planning/phases/XX-Name/XX-NN-PLAN.md` |
|
|
33
|
+
|
|
34
|
+
Use kebab-case for directory names. Use UPPER_CASE for protocol files (SKILL.md, PLAN.md, STATE.md).
|
|
35
|
+
|
|
36
|
+
## Code Style
|
|
37
|
+
|
|
38
|
+
- Follow the project CLAUDE.md for language-specific conventions
|
|
39
|
+
- TypeScript: async-only functions (no sync duplicates)
|
|
40
|
+
- Markdown: ATX headers (`#`), no trailing whitespace, blank line before headers
|
|
41
|
+
- Keep files focused: one responsibility per module
|
|
42
|
+
|
|
43
|
+
## Deferred Items
|
|
44
|
+
|
|
45
|
+
When encountering work outside current scope, log it instead of implementing it:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
- [{category}] {description} -- {why deferred}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Categories: `feature`, `bug`, `refactor`, `investigation`
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Verification Protocol
|
|
2
|
+
|
|
3
|
+
Evidence before claims, always. No exceptions.
|
|
4
|
+
|
|
5
|
+
## HARD GATE
|
|
6
|
+
|
|
7
|
+
**No completion claims without fresh verification evidence.**
|
|
8
|
+
|
|
9
|
+
This gate is non-negotiable. There is no advisory mode, no config override, no escape hatch. Either evidence passes or it fails. No middle ground. Partial success is failure. "Good enough" is not enough.
|
|
10
|
+
|
|
11
|
+
Do NOT pass this gate by arguing it's "close enough", "minor issue", or "will fix later".
|
|
12
|
+
|
|
13
|
+
## THIS-Turn Requirement
|
|
14
|
+
|
|
15
|
+
If you have not run the verification command in THIS turn, you cannot claim it passes.
|
|
16
|
+
|
|
17
|
+
Evidence must come from tool output executed in the current turn. Prior turn results, cached knowledge, and reasoning are not evidence. Any tool output qualifies: test output, build results, git diff, file reads, linter output.
|
|
18
|
+
|
|
19
|
+
## Evidence Block Format
|
|
20
|
+
|
|
21
|
+
Every completion claim requires an evidence block:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
CLAIM: [what you are claiming]
|
|
25
|
+
EVIDENCE: [exact command run in THIS turn]
|
|
26
|
+
OUTPUT: [relevant excerpt of actual output]
|
|
27
|
+
VERDICT: PASS | FAIL
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
If VERDICT is FAIL: do NOT commit. Fix the issue, re-run verification, produce a new evidence block.
|
|
31
|
+
|
|
32
|
+
## FORBIDDEN PHRASES
|
|
33
|
+
|
|
34
|
+
If you catch yourself using any of these, STOP immediately. You are rationalizing instead of verifying:
|
|
35
|
+
|
|
36
|
+
- "should work"
|
|
37
|
+
- "probably passes"
|
|
38
|
+
- "I'm confident that..."
|
|
39
|
+
- "based on my analysis..."
|
|
40
|
+
- "the logic suggests..."
|
|
41
|
+
- "it's reasonable to assume..."
|
|
42
|
+
|
|
43
|
+
These phrases indicate reasoning without evidence. Replace them with a verification command and its actual output.
|
|
44
|
+
|
|
45
|
+
## What Counts as Evidence
|
|
46
|
+
|
|
47
|
+
| Claim | Requires | Not Sufficient |
|
|
48
|
+
|-------|----------|----------------|
|
|
49
|
+
| "Tests pass" | Test command output showing 0 failures | Previous run, "should pass" |
|
|
50
|
+
| "Build succeeds" | Build command with exit code 0 | Linter passing only |
|
|
51
|
+
| "Bug is fixed" | Original failing test now passes | "Code changed, assumed fixed" |
|
|
52
|
+
| "Task complete" | All done criteria checked with evidence | "I implemented everything" |
|
|
53
|
+
| "No regressions" | Full test suite passing | "I only changed one file" |
|
|
54
|
+
|
|
55
|
+
## Retry Protocol
|
|
56
|
+
|
|
57
|
+
When verification fails: read the error, fix the issue, re-run the command, produce a new evidence block. Maximum 3 total attempts per gate before escalating. The `verification-gates` skill provides detailed methodology for gate types, retry feedback, and escalation.
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-system-map
|
|
3
|
+
description: >-
|
|
4
|
+
Registry of MAXSIM's 4 agent types with their roles, base tools, preloaded
|
|
5
|
+
skills, and typical tasks. Documents the orchestrator-mediated communication
|
|
6
|
+
pattern where agents return results to the orchestrator for pipeline routing.
|
|
7
|
+
Use when spawning agents, understanding agent capabilities, or designing
|
|
8
|
+
agent interactions.
|
|
9
|
+
user-invocable: false
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Agent System Map
|
|
13
|
+
|
|
14
|
+
MAXSIM uses 4 generic agent types. Specialization comes from orchestrator instructions and skills, not from separate agent definitions.
|
|
15
|
+
|
|
16
|
+
## Agent Registry
|
|
17
|
+
|
|
18
|
+
| Agent | Role | Base Tools | Preloaded Skills |
|
|
19
|
+
|-------|------|-----------|-----------------|
|
|
20
|
+
| **executor** | Implements plans with atomic commits and verified completion | Read, Write, Edit, Bash, Grep, Glob | handoff-contract, evidence-collection, commit-conventions |
|
|
21
|
+
| **planner** | Creates structured PLAN.md files from requirements and research | Read, Bash, Grep, Glob | handoff-contract |
|
|
22
|
+
| **researcher** | Investigates technical domains and produces structured findings | Read, Bash, Grep, Glob, WebFetch | research-methodology, handoff-contract |
|
|
23
|
+
| **verifier** | Verifies work quality, spec compliance, and goal achievement | Read, Bash, Grep, Glob | verification-gates, evidence-collection, handoff-contract |
|
|
24
|
+
|
|
25
|
+
## Specialization via Orchestrator
|
|
26
|
+
|
|
27
|
+
The orchestrator provides task-specific context in the spawn prompt. The same `verifier` agent handles code review, spec review, debugging, and integration checking based on what the orchestrator asks:
|
|
28
|
+
|
|
29
|
+
| Task | Orchestrator Instruction |
|
|
30
|
+
|------|------------------------|
|
|
31
|
+
| Code review | "Review these files for code quality, security, and conventions" |
|
|
32
|
+
| Spec review | "Check these files against the plan's must_haves and done criteria" |
|
|
33
|
+
| Debugging | "Investigate this failing test using systematic hypothesis testing" |
|
|
34
|
+
| Integration check | "Validate cross-component integration for these changed files" |
|
|
35
|
+
|
|
36
|
+
## Communication Pattern: Orchestrator-Mediated
|
|
37
|
+
|
|
38
|
+
**Subagents CANNOT spawn other subagents.** This is a Claude Code platform constraint. All agent-to-agent communication routes through the orchestrator.
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Orchestrator
|
|
42
|
+
|-- spawns --> Researcher (returns findings)
|
|
43
|
+
|-- spawns --> Planner (returns PLAN.md)
|
|
44
|
+
|-- spawns --> Executor (returns SUMMARY.md)
|
|
45
|
+
|-- spawns --> Verifier (returns verification report)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Flow:**
|
|
49
|
+
1. Orchestrator spawns Agent A with task + context
|
|
50
|
+
2. Agent A executes, produces results using handoff contract
|
|
51
|
+
3. Agent A returns to orchestrator
|
|
52
|
+
4. Orchestrator reads results, decides next step
|
|
53
|
+
5. Orchestrator spawns Agent B with Agent A's results as context
|
|
54
|
+
|
|
55
|
+
Agents never call each other directly. The orchestrator is the single routing point.
|
|
56
|
+
|
|
57
|
+
## Spawn Prompt Format
|
|
58
|
+
|
|
59
|
+
When spawning an agent, use natural language with markdown sections:
|
|
60
|
+
|
|
61
|
+
```markdown
|
|
62
|
+
## Task
|
|
63
|
+
[What the agent should do -- specific, actionable]
|
|
64
|
+
|
|
65
|
+
## Context
|
|
66
|
+
[Phase, plan, prior results, relevant decisions]
|
|
67
|
+
|
|
68
|
+
## Files to Read
|
|
69
|
+
- [file paths the agent should read at startup]
|
|
70
|
+
|
|
71
|
+
## Suggested Skills
|
|
72
|
+
- [skills that may be helpful for this task]
|
|
73
|
+
|
|
74
|
+
## Success Criteria
|
|
75
|
+
- [measurable outcomes the orchestrator will check]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The orchestrator carries the specialization context. Agents are generic -- the spawn prompt makes them specific.
|
|
79
|
+
|
|
80
|
+
## Model Selection
|
|
81
|
+
|
|
82
|
+
Each agent type has a default model from the config profile:
|
|
83
|
+
|
|
84
|
+
| Profile | Executor | Planner | Researcher | Verifier |
|
|
85
|
+
|---------|----------|---------|------------|----------|
|
|
86
|
+
| quality | opus | opus | opus | sonnet |
|
|
87
|
+
| balanced | sonnet | sonnet | sonnet | sonnet |
|
|
88
|
+
| budget | sonnet | haiku | haiku | haiku |
|
|
89
|
+
|
|
90
|
+
The orchestrator can override per-spawn for complex tasks (e.g., force opus for critical research).
|
|
91
|
+
|
|
92
|
+
Agents use `model: inherit` in their frontmatter -- the orchestrator or CLI resolves the actual model at spawn time based on the config profile.
|