npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@plannotator/pi-extension

v0.9.2

Published

Plannotator extension for Pi coding agent - interactive plan review with visual annotation

Downloads

503

Readme

Plannotator for Pi

Plannotator integration for the Pi coding agent. Adds file-based plan mode with a visual browser UI for reviewing, annotating, and approving agent plans.

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

Plan mode

Start Pi in plan mode:

pi --plan

Or toggle it during a session with /plannotator or Ctrl+Alt+P.

In plan mode the agent is restricted to read-only tools. It explores your codebase, then writes a plan to PLAN.md using markdown checklists:

- [ ] Add validation to the login form
- [ ] Write tests for the new validation logic
- [ ] Update error messages in the UI

When the agent calls exit_plan_mode, the Plannotator UI opens in your browser. You can:

  • Approve the plan to begin execution
  • Deny with annotations to send structured feedback back to the agent
  • Approve with notes to proceed but include implementation guidance

The agent iterates on the plan until you approve, then executes with full tool access. On resubmission, Plan Diff highlights what changed since the previous version.

Code review

Run /plannotator-review to open your current git changes in the code review UI. Annotate specific lines, switch between diff views (uncommitted, staged, last commit, branch), and submit feedback that gets sent to the agent.

Markdown annotation

Run /plannotator-annotate <file.md> to open any markdown file in the annotation UI. Useful for reviewing documentation or design specs with the agent.

Progress tracking

During execution, the agent marks completed steps with [DONE:n] markers. Progress is shown in the status line and as a checklist widget in the terminal.

Commands

| Command | Description | |---------|-------------| | /plannotator | Toggle plan mode on/off | | /plannotator-status | Show current phase, plan file, and progress | | /plannotator-review | Open code review UI for current changes | | /plannotator-annotate <file> | Open markdown file in annotation UI |

Flags

| Flag | Description | |------|-------------| | --plan | Start in plan mode | | --plan-file <path> | Custom plan file path (default: PLAN.md) |

Keyboard shortcuts

| Shortcut | Description | |----------|-------------| | Ctrl+Alt+P | Toggle plan mode |

How it works

The extension manages a state machine: idleplanningexecutingidle.

During planning:

  • Tools restricted to: read, bash (read-only commands only), grep, find, ls, write (plan file only), exit_plan_mode
  • edit is disabled, bash is gated to a read-only allowlist, writes only allowed to the plan file

During executing:

  • Full tool access: read, bash, edit, write
  • Progress tracked via [DONE:n] markers in agent responses
  • Plan re-read from disk each turn to stay current

State persists across session restarts via Pi's appendEntry API.

Requirements

  • Pi >= 0.53.0