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-next-steps

v1.2.0

Published

Next Steps extension for the Pi coding agent

Readme

pi-next-steps

hero

Next Steps puts the end of a reply to work. Instead of the agent asking "say the word and I'll push the branch", the reply ends with a row of selectable steps, and one pick sends that step as the next message. Pick several and one send delivers them together.

A Pi port of the Hermes Next Steps plugin, adapted for the Pi coding agent's extension API.

Features

  • Tool-driven offers. The agent calls the next_steps tool with 2-6 short option strings at the end of a choice reply.
  • Recommended marks. Options the classifier prefers carry a ★ tag and start selected. Several may be recommended when the steps belong together.
  • Risky pills. An option that could damage files, a build, or money carries a ⚠ tag. Off by default.
  • Subtitles. A chip can carry a dim second line when the label alone would be read wrongly.
  • Multi-select. Pick comma-separated indices (1,3) and one send delivers them together.
  • Auto-classification. When rec/risky are omitted, the extension asks the session model to classify the options (best-effort).
  • System-prompt guidance. The model is told to call next_steps at choice points instead of asking in prose.

Install

pi install npm:pi-next-steps
# or from git:
pi install git:github.com/apoapostolov/pi-next-steps

Then reload Pi so the extension loads.

Usage

The agent calls next_steps automatically when a reply ends with a choice. You can also invoke it manually from the TUI:

/ns

A tabbed picker opens with one tab per collected reply, newest first. Space toggles a label, arrows move and switch tab, Enter sends. Every chosen step travels as one user message, so a pick that spans several tabs still costs one turn. Carried labels show how many offering replies back they came from.

Stale carried steps can be pruned from the picker. On an older tab, Ctrl+D turns the focused row red, then Ctrl+D again deletes it. Shift+Ctrl+D turns every stale row red, and a second Shift+Ctrl+D deletes all of them. The current reply's rows cannot be deleted this way. /ns clear remains the coarse option when you want whole older replies gone at once.

Clear what you no longer want:

/ns clear     # drop stale steps from older replies, keep the last prompt's
/ns clear 2   # drop the steps collected in the last 2 posts

Alias: /nextsteps.

Tool parameters

| Parameter | Type | Description | |---|---|---| | options | string[] | The option labels to offer (2-6 recommended). | | multi | boolean | Allow picking multiple (default true). | | rec | string | Comma-separated 1-based indices to mark recommended. | | risky | string | Comma-separated 1-based indices to mark risky. | | subtitles | string[] | Optional dim second lines, one per option. |

Example directive (no tool calling)

When tool calling is unavailable, the same row can be expressed as a directive:

::nextsteps{multi="1" rec="1" risky="2" q1="Push the branch and open the PR" q2="Force-push over the review commit" q3="Write the release note first" d2="Rewrites origin, discarding the commit already there"}

Requirements

  • Pi 1.5+
  • A Nerd Font (for the ★/⚠ glyphs) is recommended but not required.

Limits

  • A step is a sentence. A vague option sends a vague request; the plugin does not rewrite what the agent wrote.
  • Ticks are per block. Two blocks in one reply keep separate picks.
  • The RISKY pill is an opinion from a classifier reading labels and context, not a reading of your repository.
  • Auto-classification is best-effort and may fail on providers that require extra headers (e.g. opencode-go).

License

MIT. Inspired by Follow-up Chips and the Hermes Next Steps plugin.