1.4 KiB
1.4 KiB
Plan Mode
Minimal read-only mode. Built iteratively — v1 does one thing only.
v1: no writing
| Trigger | Effect |
|---|---|
/plan |
Toggle plan mode |
Ctrl+Alt+P |
Toggle plan mode |
pi --plan |
Start in plan mode |
While active:
- Built-in
writeandedittools are removed from the active tool set - A
planmarker appears in the footer status - The system prompt tells the model it cannot modify files
- State is persisted, so
/resumekeeps plan mode on
Toggling off restores the exact tool set captured when plan mode was enabled.
v2: /handover
/handover [focus] distils the session into a standalone plan document.
- Runs a side LLM call over the current branch — no extra turn is added to the conversation, and the transcript is not polluted
- Compaction-aware: uses the summary plus surviving entries if the branch was compacted
- Opens the result in the editor for review; saving writes the file, an empty buffer cancels
- Written to
.pi/plans/<YYYYMMDD-HHMM>-<slug>.md, slug derived from the#heading - Optional
focusargument steers what the document centres on
Document structure: Goal, Findings, Plan (numbered, file-scoped steps),
Risks & open questions, Files.
Works whether or not plan mode is active.
Not implemented (yet)
- Guarding
bashagainst writes —bashis still fully available - Reading a handover back in / resuming from one
- Approval and step-by-step execution flow