Plan Mode
Feature Overview: Plan Mode is a working mode in iFlow CLI. Users can switch working modes by pressing
Shift+Tabin the CLI. In Plan Mode, a detailed plan is generated first before execution.Learning Time: 10 minutes
Prerequisites: iFlow CLI installed, authentication completed, and familiarity with the characteristics of various working modes
What is Plan Mode
When developing a large project or implementing a complex task, it is generally necessary to draft a plan first, then let the CLI execute according to the plan. This makes execution clearer and more effective, and easier to understand and track long-term tasks.
Usage
In Plan Mode, enter your requirements. The CLI will analyze the existing codebase, create a workflow, and generate a reviewable plan that can be edited before building. Press Shift+Tab in the CLI to switch to this mode.
How It Works
- Update the to-do list based on requirements using
todo_write - Complete the implementation plan according to the to-do list
- Users review the plan
- Users let iFlow execute the plan
Using Existing Plans
When options appear, you can choose
- "Yes, execute the plan in YOLO mode" or
- "Yes, manually approve the plan execution" to directly execute the plan, or choose
- "No, continue planning" to generate a new plan.
Modifying Plans with Markdown Documents
When you want to modify the specific content of a plan generated in Plan Mode, you can choose the "Modify plan with Markdown file" option.
Plan Modification Process
- Make a plan in Plan Mode
- After generating the plan, choose option 4 "Modify plan with Markdown file"
- iFlow will create a
plan.mddocument in the.iflow/directory, write the plan into it, and open it in the system - Modify the plan in the
plan.mddocument and save it - Choose the execution method according to your needs, providing the following three processing options:
- Execute the plan in
YOLOmode (no further confirmation required) - Execute the plan in default mode (confirm each step)
- Continue planning (request more details)
- Execute the plan in
- After selecting the corresponding processing method, iFlow will read the modified plan and automatically delete the
plan.mdfile in the.iflow/directory - Execute the processing according to the selected method