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

@mporenta/pi-cmux-orchestrator

v0.1.0

Published

Pi extension for orchestrating visible, interactive Pi workers in cmux terminal surfaces.

Readme

@mporenta/pi-cmux-orchestrator

A Pi package that lets a parent Pi session create and supervise visible, interactive Pi workers in cmux terminal surfaces. Workers remain human-observable and can be prompted, inspected, stopped, or handed over between the orchestrator and a person.

Requirements

  • macOS with cmux installed and running
  • cmux available on PATH
  • pi available on PATH
  • A Pi session launched inside cmux

Install

pi install npm:@mporenta/pi-cmux-orchestrator

For project-local installation:

pi install -l npm:@mporenta/pi-cmux-orchestrator

Try the package without installing it:

pi -e npm:@mporenta/pi-cmux-orchestrator

After installation, restart Pi. When developing from an auto-discovered extension directory, /reload reloads the extension.

First prompts to try

  • “Spawn a Pi worker to review the current changes.”
  • “List the Pi workers and show their ownership and liveness.”
  • “Ask the worker to run the targeted tests, then report its latest result.”

Tools

| Tool | Purpose | |---|---| | spawn_pi_worker | Start a visible interactive Pi worker in the same or a new cmux workspace. | | send_worker_prompt | Send a follow-up or steering prompt to an orchestrator-owned worker. | | list_workers | List worker ownership, cmux surface, and liveness state. | | stop_worker | Gracefully stop a worker and optionally close its cmux surface. | | get_worker_result | Retrieve the worker's latest result. | | release_worker | Return a human-taken worker to orchestrator ownership. |

How it works

The parent extension starts a local Unix-domain socket server under the system temporary directory. It creates cmux terminal surfaces and launches child Pi processes in RPC mode with worker-specific environment variables. Workers connect back to the parent, exchange lifecycle events and prompts over the local socket, and stay visible in cmux.

A worker becomes human-owned when activity is detected directly in its terminal surface. The orchestrator will not prompt a human-owned worker until it is explicitly released.

Configuration

The extension configures workers internally through these environment variables; users normally do not need to set them:

  • PI_CMUX_ORCH_ROLE
  • PI_CMUX_ORCH_WORKER_ID
  • PI_CMUX_ORCH_PARENT_SOCKET
  • PI_CMUX_ORCH_RUN_DIR

Security and permissions

Pi packages run with the installing user's full system permissions. This extension:

  • runs cmux commands to create, inspect, focus, and close terminal surfaces;
  • starts local pi --mode rpc worker processes;
  • sends text and key events to cmux surfaces;
  • creates Unix sockets and transient runtime files under the system temporary directory;
  • sends prompts and receives agent output over a local Unix socket;
  • inherits the parent environment and therefore may expose available credentials to worker Pi processes.

It does not intentionally contact a remote service itself, but Pi workers may use configured model providers and tools. Review worker prompts and cmux surfaces before granting access to sensitive repositories or credentials.

Remove the package with:

pi remove npm:@mporenta/pi-cmux-orchestrator

Troubleshooting

  • Not running in cmux: launch Pi from a cmux terminal surface.
  • cmux or pi not found: ensure both executables are on PATH inherited by Pi.
  • Worker does not come online: inspect its visible surface; startup waits are bounded and the surface may show an authentication or configuration error.
  • Worker cannot be prompted: check list_workers; release it if ownership was transferred to a human.

Development

npm install
npm run typecheck
npm run pack:dry-run
pi -e ./index.ts

License

MIT