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

pi-plan-md

v0.1.12

Published

Branch-based planning workflow extension for pi

Readme

Plan Mode extension

Branch-based planning workflow for pi.

Install

pi install npm:pi-plan-md

What it does

  • /plan-md starts planning when inactive and opens plan mode actions when already active.
  • Start location picker (shown when the session has branchable history):
    • Empty branch (jumps to a clean branch point)
    • Current branch (stays where you are)
  • If a session plan already exists with content, startup offers:
    • Continue planning
    • Empty branch / Current branch when branchable history is available
    • Start fresh when no branchable history is available
  • /plan-md accepts an optional location argument:
    • file path → use that exact file as the plan file
    • directory path → create <timestamp>-<sessionId>.plan.md in that directory
  • Shows a persistent banner while active:
    • Plan mode active; /plan-md to exit. /plan-md <location> to move plan file.
    • Plan file: <path>
  • Running /plan-md while active (without args) shows:
    • Exit
    • Exit & stay in current branch
  • Running /plan-md <location> while active moves the current plan file to the resolved location.
  • Starting or moving to an existing file asks for overwrite confirmation (and refuses overwrite in non-interactive mode).
  • Exit returns to the point from before plan mode started. If that point was the root user message, it restores a fresh branch from that message instead of dropping to an empty root.
  • Exit & stay in current branch ends plan mode without navigating away from the planning branch tip.
  • Exiting plan mode prefills the editor only when the active plan file has content.
  • After exit, a Plan mode ended. message is shown. When a plan exists, the message includes Plan file: <path> and an expandable plan preview (Ctrl+O); otherwise it shows No plan created..

Commands

  • /plan-md [location]

Built-in tools in plan mode

Plan mode adds these tools only while active:

  • request_user_input — ask clarifying questions with optional choices and optional freeform answers
  • set_plan — overwrite the active plan file with the complete latest plan text

When plan mode ends, these tools are removed again.

Optional companion extension

If you also want delegated research tools, install pi-task-subagents separately:

pi install npm:pi-task-subagents

That adds subagents and steer_subagent everywhere, including during plan mode, but pi-plan-md does not require it.

Notes

  • By default, plan mode uses one plan file per session in the same directory as the session file, replacing the session extension with .plan.md.
  • /plan-md [location] can override the plan file path.
  • Plan files are kept after exiting so planning can be resumed later.
  • Entering plan mode posts a visible Plan mode instructions message once and injects the hidden plan-mode prompt for the next agent turn.
  • After session compaction, plan mode reposts the visible instructions and reinjects the hidden plan-mode prompt for the next agent turn.
  • The default plan-mode prompt is stored in plan-md/prompts/PLAN.prompt.md.
  • You can override that prompt globally by creating ~/.pi/agent/PLAN.prompt.md.
  • If the override file is missing or blank, the bundled prompt is used.