Skip to content

Commit 3c7d266

Browse files
authored
Merge pull request #191 from maystudios/worktree-agent-aa16ccd8
fix(debug-loop): add Plan Mode rejection/revision loop
2 parents aff2428 + d27e71c commit 3c7d266

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

templates/commands/maxsim/debug-loop.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ Invoke the `autoresearch` skill (debug workflow) to drive the investigation loop
3333
- **Scope** — which files/directories are likely involved (or "unknown")
3434
3. Attempt initial reproduction — run the reproduction command to confirm the bug exists
3535
4. Create a GitHub Issue labeled `debug` to track the session
36-
5. Show the investigation plan and confirm with user
37-
6. Exit Plan Mode via ExitPlanMode
36+
5. Show the investigation plan and ask user to confirm
37+
6. **Handle user response:**
38+
- **If user approves:** proceed to step 7
39+
- **If user requests changes:** revise the relevant parameters (scope, reproduction command, investigation approach). If the reproduction command changed, re-attempt reproduction (step 3). Update the GitHub Issue body with the revised plan. Return to step 5 (stay in Plan Mode).
40+
- **If user cancels:** close the GitHub Issue created in step 4 (`gh issue close {ISSUE_NUM} --comment "Debug session cancelled by user before investigation began"`), Exit Plan Mode via ExitPlanMode, and stop.
41+
7. Exit Plan Mode via ExitPlanMode
3842

3943
**Phase 2 — Debug Loop**
4044

0 commit comments

Comments
 (0)