Skip to content

Commit 3d0c956

Browse files
authored
Merge pull request #182 from maystudios/worktree-agent-aae4d4c7
fix(commands): add explicit EnterPlanMode/ExitPlanMode to execute, quick, settings
2 parents 3b873ee + e473725 commit 3d0c956

3 files changed

Lines changed: 28 additions & 20 deletions

File tree

templates/commands/maxsim/execute.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ Re-entry: If phase is already executed and verified, show status and offer optio
2222
<process>
2323
Follow @.claude/maxsim/workflows/execute.md end-to-end.
2424

25-
1. Detect phase state from GitHub Project Board (already done / partially executed / ready)
26-
2. Group task Issues by wave — re-evaluate wave composition before each spawn against current GitHub state, execute parallel Agents within each wave, sequential across waves
27-
3. Each Agent updates its GitHub Issue label on start and completion
28-
4. After all tasks complete, spawn a verifier Agent to check acceptance criteria
29-
5. On verification failure, auto-retry with gap-closure context (max 3 retries, 4 total attempts)
30-
6. On final failure, report what failed and surface options to user
25+
1. **Plan Mode:** Call `EnterPlanMode` before any execution
26+
2. Detect phase state from GitHub Project Board (already done / partially executed / ready)
27+
3. Group task Issues by wave — re-evaluate wave composition before each spawn against current GitHub state. Present the execution plan to the user for review.
28+
4. Exit Plan Mode via `ExitPlanMode` — user reviews and approves the execution plan
29+
5. Execute parallel Agents within each wave, sequential across waves
30+
6. Each Agent updates its GitHub Issue label on start and completion
31+
7. After all tasks complete, spawn a verifier Agent to check acceptance criteria
32+
8. On verification failure, auto-retry with gap-closure context (max 3 retries, 4 total attempts)
33+
9. On final failure, report what failed and surface options to user
3134
</process>

templates/commands/maxsim/quick.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ Quick tasks are tracked as GitHub Issues (label: `type:quick`) — separate from
2020
<process>
2121
Follow @.claude/maxsim/workflows/quick.md end-to-end.
2222

23-
1. Get task description from $ARGUMENTS or via AskUserQuestion
24-
2. Clarify scope if ambiguous (one focused question)
25-
3. Create a GitHub Issue labeled `type:quick` for the task
26-
4. Spawn a planner Agent (quick mode) to produce a concise implementation plan
27-
5. Spawn executor Agent(s) to implement the plan
28-
6. Spawn a verifier Agent to check the result (tests pass, build succeeds, lint clean)
29-
7. If verification fails, spawn a fix agent (max 2 retries)
30-
8. Commit with atomic message referencing the GitHub Issue
31-
9. Close the GitHub Issue with completion summary
23+
1. **Plan Mode:** Call `EnterPlanMode` before any planning or execution
24+
2. Get task description from $ARGUMENTS or via AskUserQuestion
25+
3. Clarify scope if ambiguous (one focused question)
26+
4. Create a GitHub Issue labeled `type:quick` for the task
27+
5. Spawn a planner Agent (quick mode) to produce a concise implementation plan
28+
6. Present the plan to user — Exit Plan Mode via `ExitPlanMode`
29+
7. Spawn executor Agent(s) to implement the plan
30+
8. Spawn a verifier Agent to check the result (tests pass, build succeeds, lint clean)
31+
9. If verification fails, spawn a fix agent (max 2 retries)
32+
10. Commit with atomic message referencing the GitHub Issue
33+
11. Close the GitHub Issue with completion summary
3234
</process>

templates/commands/maxsim/settings.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ Configuration is stored in `.claude/maxsim/config.json` (project-level). Present
1616
<process>
1717
Follow @.claude/maxsim/workflows/settings.md end-to-end.
1818

19-
1. Read current config from CLAUDE.md and `.claude/maxsim/config.json`
20-
2. Display current settings with descriptions
21-
3. Use AskUserQuestion to interactively configure:
19+
1. **Plan Mode:** Call `EnterPlanMode` before presenting settings
20+
2. Read current config from CLAUDE.md and `.claude/maxsim/config.json`
21+
3. Display current settings with descriptions
22+
4. Use AskUserQuestion to interactively configure:
2223
- Model profile (with per-tier model assignment details)
2324
- Research stage enabled/disabled
2425
- Plan-checker enabled/disabled
2526
- Verifier enabled/disabled
2627
- Auto-advance between stages
2728
- Branching strategy (per-phase / per-task / none)
2829
- Per-agent model overrides (override individual agent models beyond profile defaults)
29-
4. Merge answers and write updated config
30-
5. Display confirmation of saved settings
30+
5. Present proposed configuration changes for review
31+
6. Exit Plan Mode via `ExitPlanMode` — user reviews and approves changes
32+
7. Merge answers and write updated config
33+
8. Display confirmation of saved settings
3134
</process>

0 commit comments

Comments
 (0)