Skip to main content

Plan Mode

Feature Overview: Plan Mode is a working mode in iFlow CLI. Users can switch working modes by pressing Shift+Tab in 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

  1. Update the to-do list based on requirements using todo_write
  2. Complete the implementation plan according to the to-do list
  3. Users review the plan
  4. Users let iFlow execute the plan

Using Existing Plans

When options appear, you can choose

  1. "Yes, execute the plan in YOLO mode" or
  2. "Yes, manually approve the plan execution" to directly execute the plan, or choose
  3. "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

  1. Make a plan in Plan Mode
  2. After generating the plan, choose option 4 "Modify plan with Markdown file"
  3. iFlow will create a plan.md document in the .iflow/ directory, write the plan into it, and open it in the system
  4. Modify the plan in the plan.md document and save it
  5. Choose the execution method according to your needs, providing the following three processing options:
    • Execute the plan in YOLO mode (no further confirmation required)
    • Execute the plan in default mode (confirm each step)
    • Continue planning (request more details)
  6. After selecting the corresponding processing method, iFlow will read the modified plan and automatically delete the plan.md file in the .iflow/ directory
  7. Execute the processing according to the selected method