← Catalog

pi-plan-mode

Plan mode extension for pi - read-only exploration with plan file editing

Extension

Install

Install with PiG

pig install npm:pi-plan-mode

Install with Pi

pi install npm:pi-plan-mode
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./plan-mode.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.4.8 (README.md). PiG does not review it.

pi-plan-mode

Plan mode extension for pi: a toggleable read-only mode that blocks write/edit tools.

Features

  • Simple toggle: /plan enables/disables plan mode
  • Blocks write/edit tools: When active, write and edit tools are completely blocked
  • Smart bash filtering: Safe commands allowed, mutating commands reviewed by AI
  • Git command protection: Mutating git commands (commit, push, pull, merge, etc.) are blocked
  • Status indicator: Shows "⚠️ planning" in the UI when active
  • Session persistence: Plan mode state survives session resume
  • Bash override memory: Approved commands are remembered within a session

Quick Start

  1. Enable plan mode: /plan
  2. Explore the codebase with read-only tools
  3. Disable plan mode: /plan again

Command Reference

CommandWhat it does
/planToggle plan mode on/off

Safety & Restrictions

In plan mode:

  • write and edit tools are blocked
  • Safe bash commands (ls, cat, grep, find, etc.) are allowed
  • Potentially mutating bash commands are reviewed by an AI model
  • Mutating git commands are blocked
  • Commands can be approved manually and remembered for the session

Installation

npm install pi-plan-mode

Then enable it in pi via your packages/extensions configuration.

Development

  • Type-check: npm run typecheck
  • Releases: see docs/releases.md

License

MIT