← Catalog

pi-bareplan

Pi extension that starts every session in plan mode: read-only investigation, then a proposal before any file changes.

Package

Install

Install with PiG

pig install npm:pi-bareplan

Install with Pi

pi install npm:pi-bareplan
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": [
    "./index.ts"
  ]
}

README

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

pi-bareplan

Pi extension that starts every new session in plan mode: investigate read-only, propose the change, then write. The status bar shows plan: ON.

While plan mode is on:

  • edit and write are removed from the tool set, and any call to them is blocked.
  • A hidden reminder on every user turn requires claims about the code to come from files read in that session, and stops at the proposal until you approve.
  • The model writes its proposal as a plain list: goal, numbered steps, open questions. No fenced block, so nothing has to be stripped or re-injected.
  • bash (powershell on Windows) stays available. The prompt forbids writes through it; nothing enforces it. A write tool registered under another name is not blocked either.

When the mode is off, a hidden notice tells the model writes are allowed, so it stops repeating plan-mode answers. The next session starts in plan mode again.

Install

pi install npm:pi-bareplan                          # from npm (recommended)
pi install git:github.com/fn-cafeina/pi-bareplan    # from git
pi install ./pi-bareplan                            # local path

pi list shows what is installed, pi remove npm:pi-bareplan removes it.

Usage

Plan mode is active from the first turn. Type /plan to switch it off, and again to switch it back on. The change lasts for the current session. Resuming a previous session restores the mode it last ended in.

Development

npm test           # self check (node selfcheck.ts)
npm run typecheck  # tsc --noEmit
npm run lint       # biome lint, checks only
npm run format     # biome format, checks only
biome check --write .   # apply formatting

No runtime dependencies. Type checking needs npm install first. Requires Node >= 22.18.

License

MIT. See LICENSE.