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-improve-workflow

v1.5.1

Published

Pi extension: configurable improvement workflow with /workflow and /tree commands (messages via bundled pi-msg-store)

Readme

pi-improve-workflow

A pi-coding-agent extension that automates a fully configurable improvement workflow on the current project.

Features

  • /workflow [rounds] — runs the configured workflow: a start phase (analysis messages), then review rounds. The whole sequence is defined in workflow.json, so you decide which messages or commands happen when.
  • /workflow-edit — opens an interactive editor overlay with two tabs: [Workflow] (rounds, start order, loop steps, tree anchor, add/delete/reorder, if-changes toggle) and [Messages] (add, edit and delete message entries). Changes are saved with s (per tab) and closing with unsaved changes warns you.
  • /tree-jump <number> — workflow-exclusive command that resets the agent's context to the response of a predefined message (by its /msg//cmd index). The workflow loop always begins with a tree step.
  • Start-phase resume. Messages whose text is already present in the session branch are skipped, so an interrupted workflow continues where it left off.
  • Resilient sends. Follow-ups are polled until they appear in the session branch (up to 3 attempts) before waiting for idle.
  • Config validation. Invalid workflow.json values are reported and fall back to safe defaults.

Installation

pi install npm:pi-improve-workflow

The workflow messages (17) are read from pi-msg-store, which is bundled as a dependency — install this package alone and /workflow works out of the box. Install pi-msg-store as well to edit the messages with /change-msg; both packages then share the same store.

Usage

/workflow
/workflow 3
/tree-jump 1
/workflow-edit

/workflow-edit key map

| Key | Action | | --- | --- | | Tab / Shift+Tab | switch between Workflow and Messages tabs | | j / k | move selection | | e | edit the selected row (tree anchor, step index, git args, message content) | | a | add a row (start index, send <n> / git <args> loop step, new message) | | x | delete the selected row | | J / K | move the selected step up/down (tree step stays first) | | t | toggle onlyIfChanges on a send step | | [ / ] | decrease / increase rounds | | s | save the active tab | | q / Esc | close (warns about unsaved changes) |

Saving the Workflow tab refuses indices that reference missing messages, so add those in the Messages tab first. The tree step is fixed as the first loop step — only its anchor index is editable.

Configuration

The workflow is defined in workflow.json inside the package:

{
  "rounds": 2,
  "start": ["1", "2", "3", "4", "5"],
  "loop": [
    { "tree": "1" },
    { "git": ["add", "."] },
    { "send": "6" },
    { "send": "7" },
    { "send": "5", "onlyIfChanges": true },
    { "git": ["add", "."] }
  ]
}

rounds

Number of review-loop iterations (default 2, max 5). /workflow <n> overrides it for a single run.

start

Ordered list of message indices sent once before the loop begins. Messages whose text is already in the session are skipped, so a re-run resumes the phase instead of repeating it.

loop

Ordered list of steps repeated each round. The first step must be a tree step — the context reset always happens at the beginning of the loop. Supported steps:

| Step | Meaning | | --- | --- | | { "tree": "1" } | Reset the agent's context to the response of message 1 (same as /tree-jump 1) | | { "send": "6" } | Send message 6 and wait for the turn to finish | | { "send": "5", "onlyIfChanges": true } | Send message 5 only when git status --porcelain shows changes | | { "git": ["add", "."] } | Run git with the given arguments (e.g. stage changes) |

Message indices refer to the numbered store shared with pi-msg-store — /msg 6, /cmd 6, and { "send": "6" } all address the same message. The default store is numbered 17 in workflow order: read, improvements, value check, implement, validate, closer look, fix.

Invalid config values are reported with a [pi-improve-workflow] warning and fall back to the defaults shown above.