Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

planmode

A read-only mode. The model investigates and writes a plan, then you accept it, keep planning, or leave.

require("planmode").setup({ allow = { "npm test" } })
OptionMeaningDefault
allowCommand prefixes that run without asking while planning.none
confirmfalse skips the accept picker at the end of a turn.true
keysfalse leaves Ctrl+B unbound.true
priorityThe priority of its before_tool hook.10

Commands are /plan, /plan <task> and /approve. Ctrl+B toggles plan mode.