@burneikis/pi-plan

Claude Code-style plan mode for pi — create, review, edit, and execute structured plans in a fresh context

Package details

extension

Install @burneikis/pi-plan from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@burneikis/pi-plan
Package
@burneikis/pi-plan
Version
1.0.1
Published
Mar 26, 2026
Downloads
82/mo · 31/wk
Author
burneikis
License
MIT
Types
extension
Size
22.7 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

Pi Plan

A pi extension that brings Claude Code-style plan mode to pi. Run /plan, let the agent explore your codebase and draft a step-by-step plan, review and refine it, then execute in a clean session with full context.

Features

  • Claude Code-style plan mode — Agent analyzes your codebase read-only, then produces an actionable plan before touching anything
  • Fresh context execution — Plans execute in a new session so the agent starts clean, with only the plan as context
  • Manual editing via $EDITOR — Open the plan in your preferred editor (vim, nvim, etc.) for hands-on changes
  • Conversational edits — Describe changes in natural language and the agent rewrites the plan for you
  • Persistent plans — Plans are saved to ~/.pi/agent/plans/<session_id>/plan.md and survive restarts

Installation

pi install npm:@burneikis/pi-plan

Or test without installing:

pi -e npm:@burneikis/pi-plan

Usage

/plan make a todo app with React and TypeScript

Flow

  1. Plan — You run /plan <description>. The agent explores the codebase (read-only) and writes a plan.md file.
  2. Review — You're prompted with options:
    • Ready — Execute the plan in a new session with cleared context
    • Edit — Describe changes in natural language, agent rewrites the plan
    • Open in $EDITOR — Edit the plan file manually in your terminal editor
    • Cancel — Discard and return to normal mode
  3. Execute — A fresh session starts with only the plan as context and full tool access.

Plan Format

# Plan: <title>

## Goal
Brief description of what we're building

## Steps

1. First step
2. Second step
3. Third step

## Notes
Additional context, constraints, or decisions