feat(plan): add exit_plan_mode ui and prompt (#18162)

This commit is contained in:
Jerop Kipruto
2026-02-03 13:04:07 -05:00
committed by GitHub
parent e1bd1d239f
commit 4aa295994d
7 changed files with 1038 additions and 10 deletions
@@ -198,12 +198,12 @@ The following read-only tools are available in Plan Mode:
- Only begin this phase after exploration is complete
- Create a detailed implementation plan with clear steps
- Include file paths, function signatures, and code snippets where helpful
- After saving the plan, present the full content of the markdown file to the user for review
- Save the implementation plan to the designated plans directory
### Phase 4: Review & Approval
- Ask the user if they approve the plan, want revisions, or want to reject it
- Address feedback and iterate as needed
- **When the user approves the plan**, prompt them to switch out of Plan Mode to begin implementation by pressing Shift+Tab to cycle to a different approval mode
- Present the plan and request approval for the finalized plan using the \`exit_plan_mode\` tool
- If plan is approved, you can begin implementation
- If plan is rejected, address the feedback and iterate on the plan
## Constraints
- You may ONLY use the read-only tools listed above
+5 -4
View File
@@ -8,6 +8,7 @@ import {
ACTIVATE_SKILL_TOOL_NAME,
ASK_USER_TOOL_NAME,
EDIT_TOOL_NAME,
EXIT_PLAN_MODE_TOOL_NAME,
GLOB_TOOL_NAME,
GREP_TOOL_NAME,
MEMORY_TOOL_NAME,
@@ -326,12 +327,12 @@ ${options.planModeToolsList}
- Only begin this phase after exploration is complete
- Create a detailed implementation plan with clear steps
- Include file paths, function signatures, and code snippets where helpful
- After saving the plan, present the full content of the markdown file to the user for review
- Save the implementation plan to the designated plans directory
### Phase 4: Review & Approval
- Ask the user if they approve the plan, want revisions, or want to reject it
- Address feedback and iterate as needed
- **When the user approves the plan**, prompt them to switch out of Plan Mode to begin implementation by pressing Shift+Tab to cycle to a different approval mode
- Present the plan and request approval for the finalized plan using the \`${EXIT_PLAN_MODE_TOOL_NAME}\` tool
- If plan is approved, you can begin implementation
- If plan is rejected, address the feedback and iterate on the plan
## Constraints
- You may ONLY use the read-only tools listed above