Skip to content

Commit 3e2c680

Browse files
gemini-cli-robotjeropgaldawave
authored
fix(patch): cherry-pick aa98caf to release/v0.31.0-preview.0-pr-20465 to patch version v0.31.0-preview.0 and create version 0.31.0-preview.1 (#20554)
Co-authored-by: Jerop Kipruto <jerop@google.com> Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
1 parent a8b444f commit 3e2c680

4 files changed

Lines changed: 137 additions & 110 deletions

File tree

docs/cli/plan-mode.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,29 @@ manually during a session.
8080
8181
### Planning Workflow
8282

83+
Plan Mode uses an adaptive planning workflow where the research depth, plan
84+
structure, and consultation level are proportional to the task's complexity:
85+
8386
1. **Explore & Analyze:** Analyze requirements and use read-only tools to map
84-
the codebase and validate assumptions. For complex tasks, identify at least
85-
two viable implementation approaches.
86-
2. **Consult:** Present a summary of the identified approaches via [`ask_user`]
87-
to obtain a selection. For simple or canonical tasks, this step may be
88-
skipped.
89-
3. **Draft:** Once an approach is selected, write a detailed implementation
90-
plan to the plans directory.
87+
affected modules and identify dependencies.
88+
2. **Consult:** The depth of consultation is proportional to the task's
89+
complexity:
90+
- **Simple Tasks:** Proceed directly to drafting.
91+
- **Standard Tasks:** Present a summary of viable approaches via
92+
[`ask_user`] for selection.
93+
- **Complex Tasks:** Present detailed trade-offs for at least two viable
94+
approaches via [`ask_user`] and obtain approval before drafting.
95+
3. **Draft:** Write a detailed implementation plan to the
96+
[plans directory](#custom-plan-directory-and-policies). The plan's structure
97+
adapts to the task:
98+
- **Simple Tasks:** Focused on specific **Changes** and **Verification**
99+
steps.
100+
- **Standard Tasks:** Includes an **Objective**, **Key Files & Context**,
101+
**Implementation Steps**, and **Verification & Testing**.
102+
- **Complex Tasks:** Comprehensive plans including **Background &
103+
Motivation**, **Scope & Impact**, **Proposed Solution**, **Alternatives
104+
Considered**, a phased **Implementation Plan**, **Verification**, and
105+
**Migration & Rollback** strategies.
91106
4. **Review & Approval:** Use the [`exit_plan_mode`] tool to present the plan
92107
and formally request approval.
93108
- **Approve:** Exit Plan Mode and start implementation.

0 commit comments

Comments
 (0)