/plan ModeAdded a project-local Pi extension that lets users type /plan to activate a guarded planning mode, then /plan off or /implement to return to implementation mode.
.pi/extensions/plan-mode.ts./plan command that enables plan mode./implement command and /plan off argument to disable plan mode.write, edit, and common mutating shell commands while plan mode is active.Pi does not ship with built-in plan mode. Its documented extension system supports custom slash commands and tool-call interception, which fits this workflow without patching Pi internals.
/plan # enable planning guardrails
/plan off # disable planning guardrails
/implement # disable planning guardrails
When active, plan mode appends explicit system instructions before each agent turn and blocks file mutation tools. Bash commands are screened with conservative patterns for filesystem, git, package-manager, and Docker mutations.
NODE_PATH=/opt/homebrew/lib/node_modules bun --check .pi/extensions/plan-mode.ts successfully.bun --check .pi/extensions/plan-mode.ts failed because the Pi package is installed globally, not as a repo dependency. Retried with NODE_PATH pointed at Homebrew global Node modules.write and edit calls are fully blocked.~/.pi/agent/extensions/.No required follow-up work. Beads issue: islandflow-hio.