- HTML 98%
- TypeScript 2%
- Shell <1%
Plannotator for Pi #
Plannotator integration for the Pi coding agent. Adds a single tool — plannotator_review_plan — that opens a plan file in a browser-based review UI and returns the user's decision without changing agent behavior.
Install #
From npm (recommended):
pi install npm:@plannotator/pi-extension
From source:
git clone https://github.com/backnotprop/plannotator.git
pi install ./plannotator/apps/pi-extension
Try without installing:
pi -e npm:@plannotator/pi-extension
Build from source #
If installing from a local clone, build the HTML assets first:
cd plannotator
bun install
bun run build:pi
This builds the plan review and code review UIs and copies them into apps/pi-extension/.
Usage #
The extension registers a single tool: plannotator_review_plan.
When the agent calls this tool with a file path, the Plannotator UI opens in your browser. You can:
- Approve the plan — the tool returns the plan content and any approval notes, and tells the agent to wait for your instructions before proceeding.
- Deny with feedback — the tool returns the feedback so the agent can revise and re-submit.
- Annotate — add inline comments on specific parts of the plan.
The tool does not:
- Enter any planning mode or change agent behavior
- Restrict tools, switch models, or adjust thinking levels
- Automatically begin execution after approval
- Track
[DONE:n]progress markers - Send follow-up messages on your behalf
After the tool returns, you decide what happens next — switch agents, give the go-ahead, or leave the plan for later.
Example workflow #
- Ask the agent to write a plan file (e.g.
PLAN.md) - The agent calls
plannotator_review_planwith the file path - Review the plan in your browser — approve, deny, or annotate
- The tool returns the decision to the agent
- You give your instructions: "go ahead", "switch to codex", "save it for later", etc.
Shared event API #
Plannotator listens on the shared plannotator:request event channel so other extensions can reuse the same browser review flows without importing Plannotator internals.
Supported actions and payloads:
plan-review:{ planContent, planFilePath? }review-status:{ reviewId }code-review:{ cwd?, defaultBranch?, diffType? }annotate:{ filePath, markdown?, mode?, folderPath? }annotate-last:{ markdown? }archive:{ customPlanPath? }
Tool reference #
| Tool | Description |
|---|---|
plannotator_review_plan |
Open a plan file in the browser review UI. Returns the user's decision (approved/denied with feedback) without changing agent behavior. |
Requirements #
- Pi >= 0.53.0