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-herdr-spawn

v1.0.0

Published

Spawn pi agents in isolated Herdr panes for parallel task execution

Readme

pi-herdr-spawn

Spawn pi agents in isolated Herdr panes to execute tasks in parallel.

Installation

pi install npm:pi-herdr-spawn

Or via git:

pi install git:github.com/duskoide/pi-herdr-spawn

Usage

Slash Commands

After installing, restart pi or run /reload:

# Basic usage - spawn with auto-generated name
/spawn Run tests and report failures

# With custom name
/spawn Review code pi-reviewer

# With custom name and model
/spawn Review code pi-reviewer claude-sonnet-5

# Quick spawn (shorthand)
/spawnp Run the linter and fix errors

# List running agents
/spawnlist

# Kill a specific agent
/spawnkill pi-test-runner

Tool Usage

You can also use the spawn_pi tool directly:

spawn_pi({
  prompt: "Run tests and report any failures",
  name: "pi-test-runner",
  model: "gpt-4o",
  timeout: 180000,
  direction: "right"
})

Command Line

~/.pi/agent/bin/herdr-spawn.sh <agent-name> "<prompt>" [--model <model>] [--timeout <ms>]

# Example:
~/.pi/agent/bin/herdr-spawn.sh pi-test "Run npm test and report results" --timeout 180000

How It Works

  1. Creates a new pane - Splits the current pane to create an isolated terminal
  2. Starts pi agent - Launches a fresh pi instance in the new pane
  3. Sends your prompt - Submits the task and waits for completion
  4. Reads the response - Gets the agent's output
  5. Cleans up - Closes the pane and stops the agent automatically

Requirements

  • Pi must be running inside a Herdr-managed pane (HERDR_ENV=1)
  • Herdr must be installed and running

Use Cases

Parallel Testing

/spawn npm test pi-tests
/spawn npm run lint pi-linter
/spawn npm run typecheck pi-types

Code Review

spawn_pi({ prompt: "Review the recent git changes and suggest improvements" })

Long-Running Tasks

spawn_pi({ 
  prompt: "Run the build process and report any errors",
  timeout: 300000 
})

License

MIT