Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions crates/tui/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,7 @@ mod tests {
step: "keep checklist primary".to_string(),
status: StepStatus::InProgress,
}],
..Default::default()
});
}

Expand Down
16 changes: 16 additions & 0 deletions crates/tui/src/prompts/modes/plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ the final plan; that is the handoff signal that lets the UI show the accept / re
All writes and patches are blocked — you can read the world but you
can't change it. Shell and code execution are unavailable.

Produce a grounded plan artifact through `update_plan`, not just a step list. Include what you
discovered during investigation so the user can make an informed decision:

- `title` — short summary
- `objective` — what this plan aims to achieve
- `context_summary` — what you found during investigation
- `sources_used` — files, docs, commands, or sub-agents consulted
- `constraints` — user rules, repo constitution, mode limits, safety constraints
- `recommended_approach` — high-level approach and rationale
- `plan` — ordered execution steps with statuses (required)
- `verification_plan` — how to verify correctness
- `risks_and_unknowns` — known risks, assumptions, open questions
- `handoff_packet` — compact summary for Agent-mode execution

All fields except `plan` are optional — only include what you actually discovered.

Use this mode to build a thorough plan. Spawn read-only sub-agents for parallel investigation.
After `update_plan` presents the plan, wait for the user's next action instead of continuing to
tool around in Plan mode.
Loading
Loading