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

@mzwing/pi-task-governor

v0.2.0

Published

Runs Pi work as a governed task tree: independent executor sessions, jj workspaces and evidence-backed sign-off

Readme

@mzwing/pi-task-governor

npm

A Pi extension that works a jj repository through declared tasks. You talk to one coordinator session, which writes each task down with its problem, scope, boundary, non-goals and acceptance criteria. A headless executor session then works the task in a jj workspace of its own through developer and reviewer subagents, and the task merges only once a fresh reviewer has signed off every criterion with evidence.

Install

pi install npm:@mzwing/pi-session-hub
pi install npm:@mzwing/pi-task-governor

Requires Pi 1.1.0 or later and jj 0.46 or later. A repository with an .envrc also needs direnv, and one with only a flake.nix needs Nix.

Usage

Run /governor coordinate in the main workspace of a jj repository. That session becomes the coordinator: tell it what you want, and it declares the tasks. From then on:

  • Up to maxExecutors tasks are worked at once, each in its own workspace and inside the environment of the repository's .envrc or flake.nix.
  • An executor that needs a decision asks the coordinator and is restarted with the answer. One that stops before its task ends is restarted a few times, then reported as stalled.
  • A task that runs into a separate problem opens a subtask and finishes it first; a task is reviewed only after its subtasks.
  • A signed-off task merges into the bookmark it was declared against, which only ever moves forward. A merge that conflicts goes back to the executor to resolve and review again. The workspace of a finished task is removed.

Governed sessions cannot run git, jj or pi, the coordinator works without Pi's edit and write tools and without pi-subagents' agents, and the session that declared or worked a task cannot sign it off. These rules stop a model's habits and slips, not one set on getting around them.

/governor shows the task tree. /governor pause and /governor resume stop and restart launching executors, /governor unlock [minutes] lifts the git, jj and pi block in the current session for 30 minutes or the given number (0 restores it), and /governor handoff continues coordinating in a fresh session. These commands work only in Pi's interactive TUI.

Tasks are kept in .jj/pi-task-governor/ inside the repository, out of version control.

With @gotgenes/pi-permission-system, what would ask in an executor or in its developers and reviewers goes to the coordinator, which answers through its authorizer chain, such as @mzwing/pi-permission-auto-review, or by asking you. While the coordinator is not running, such asks are denied.

Configuration

Optional. ~/.pi/agent/extensions/pi-task-governor/config.json and .pi/extensions/pi-task-governor/config.json are merged, the project over the global one and role by role; the project file is read only once Pi trusts the project. The config is read when /governor coordinate runs, and executors use the copy saved then.

| Field | Default | Description | | --------------------------- | -------------- | --------------------------------------------------------------------------------------------------- | | workspaceRoot | <repo>.tasks | Where task workspaces go, relative to the repository | | maxExecutors | 3 | Tasks worked at once | | defaultBookmark | main | Bookmark a task branches from and merges into, unless it names another | | roles.<role>.model | — | provider/id for the executor, developer or reviewer role | | roles.<role>.thinking | — | Thinking level of that role | | roles.<role>.instructions | — | Added to the built-in instructions of the coordinator, executor, developer or reviewer role | | roles.developer.maxTurns | 100 | Turns a developer gets | | roles.reviewer.maxTurns | 40 | Turns a reviewer gets | | env.provider | auto | direnv, flake or none; auto picks direnv for an .envrc, then a flake | | env.setup | [] | Commands run once in each new workspace, such as pnpm install --frozen-lockfile | | globalChecks | [] | { statement, check } criteria added to every task |

See the example config and the JSON Schema for every option.

Credits

Super thanks https://t.me/im_RORIRI/34988 for the idea of the roles! Without the outstanding idea, this package would not exist.

Developer and reviewer sessions inherit the providers extensions registered at runtime the way @gotgenes/pi-subagents does.

License

MIT