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

@piotr-oles/pi-plan

v0.2.0

Published

Pi Agent extension: save named markdown plans to disk and ask user to confirm before executing

Readme

pi-plan

A pi coding agent extension that adds a review-plan tool — lets the agent write a named markdown plan to disk and present it in an interactive terminal widget for the user to approve, request changes, or ask a question before execution begins.

Install

pi install npm:@piotr-oles/pi-plan

Usage

The extension registers a review-plan tool. The intended workflow is:

  1. The agent writes the plan file using the built-in write tool (path under ~/.pi/plan/<repo>/<name>.md)
  2. The agent calls review-plan with the relative path

Instruct the agent to follow this pattern:

Write the plan file to ~/.pi/plan/<repo>/<name>.md first, then call review-plan with the relative path.

Or reference it in a prompt template / skill file to enforce it project-wide.

How it works

When the agent calls review-plan:

  1. Ensures ~/.pi/plan/ is a git repository (initialises it on first use)

  2. Commits the plan file with message create: <name>.md

  3. Hides the working indicator and shows an interactive widget with the following options:

    • Open in [Editor] (shown when running inside Zed, VS Code, Cursor, or Windsurf) — opens the plan file in your IDE so you can edit it; the widget stays open so you can still approve or request changes afterwards
    • Request changes — edit the file then select this; the agent gets a diff of your edits and is told to update the plan, then call review-plan again
    • Approve — edit the file (optionally) then select this; the agent gets a diff of any edits and is told to proceed with execution
    • Ask question — type a free-form question; the agent receives it and can reply before you decide
  4. After the user responds, any edits made to the file before selecting are committed (approve: <name>.md / request-changes: <name>.md) and a diff is computed and sent back to the agent

Widget responses

| Selection | Agent receives | |-----------|----------------| | Open in [Editor] | Editor opens; widget re-shows with a ✓ Opened in … confirmation. Agent is not notified. | | Approve (no edits) | approve result, empty diff — told to proceed | | Approve (with edits) | approve result + git diff — told to address comments, fix up plan, then proceed | | Request changes (with edits) | request-changes result + git diff — told to address comments, update plan, call review-plan again | | Request changes (no edits) | request-changes result, empty diff — told to ask the user what to change | | Ask question | question result with the question text | | Esc / cancel | cancel result |

Git history

All plan versions are tracked in a git repo at ~/.pi/plan/. Each interaction creates a commit:

  • create: <name>.md — initial write by the agent
  • approve: <name>.md — user approved (records any edits made before approving)
  • request-changes: <name>.md — user requested changes (records edits)

Development

pnpm install
pnpm test
pnpm typecheck
pnpm check

To test changes manually, pass the source entry point directly to pi:

pi -ne -e packages/pi-plan/src/index.ts