Phase: Any (no phase gate)
Usage: /flow-abort, /flow-abort --auto, or /flow-abort --manual
The escape hatch. Abandons the current feature completely — closes the PR, deletes the remote branch, removes the worktree, and deletes the state file.
Available from any phase, no prerequisites. Best-effort — warns if the state file is missing.
/flow-abort — uses configured mode from .flow.json (default: auto)/flow-abort --auto — skips confirmation and proceeds directly/flow-abort --manual — prompts for user confirmation before any destructive action.flow-states/<branch>.json for feature details
(or infers from git state if the file is missing)gh pr close and a commentgit worktree remove --forcegit push origin --deletegit branch -D.flow-states/<branch>.json and CI sentinelSteps 4–9 follow a mix of abort-specific actions and cleanup operations. Every step after confirmation is best-effort — if one fails (e.g., PR already closed, worktree already removed), it continues to the next.
/flow-complete |
/flow-abort |
|
|---|---|---|
| When | After Learn (Phase 5) | Any phase |
| PR | Squash-merged into main | Closed |
| Remote branch | Deleted (via cleanup) | Deleted (via cleanup) |
| Worktree | Removed | Removed |
| State file | Deleted | Deleted |
| Missing state | Warns, proceeds | Warns, proceeds |
Use /flow-complete for the happy path after a completed feature.
Use /flow-abort to walk away from a feature entirely.
--manual or .flow.json)