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

@jerryan/pi-subagent-tools

v0.1.1

Published

Minimal pi extension: delegate, review, and explore via isolated subagent processes

Readme

@jerryan/pi-subagent-tools

A minimal pi extension for delegating work to isolated subagent processes. Three tools, one job each. The agent is a project manager — delegate by default, dive in only when necessary.

What makes this different?

Every subagent is a fresh pi process with an isolated context window. No agent definitions to write, no configuration files to maintain, no mode-switching parameters to misconfigure. Each tool's name is the contract:

  • review — always read-only, always in the current project. You can't forget to lock it down.
  • explore — always read-only, requires a target directory. Picks up the target project's settings, skills, and context.
  • delegate — general-purpose worker. Inherits the parent's tools and system prompt for optimal cache reuse. Optional CWD and skills.

Installation

pi install npm:@jerryan/pi-subagent-tools

The extension is available the next time you start a pi session.

Tools

review

Review code, diffs, or files in the current project. The reviewer is always read-only — it cannot modify files or execute commands.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | task | string | Yes | What to review | | skills | string[] | No | Skills to load via --skill |

explore

Map a project directory. The explorer runs in the target directory, picking up its .pi/settings.json, skills, AGENTS.md, and other context files. Always read-only.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | task | string | Yes | What to explore | | cwd | string | Yes | Target project directory | | skills | string[] | No | Skills to load via --skill |

delegate

General-purpose worker. No tool filtering, no system prompt override — the subagent inherits the parent's full environment, enabling cache hits when used with context inheritance (future).

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | task | string | Yes | Task to delegate | | cwd | string | No | Working directory (defaults to parent's CWD) | | skills | string[] | No | Skills to load via --skill | | context | "fresh" | "inherit" | No | Context mode (not yet implemented) |

Recursion guard

Subagents cannot spawn further subagents beyond one level:

| Parent role | review | explore | delegate | |-------------|:--:|:--:|:--:| | Parent (normal) | ✓ | ✓ | ✓ | | Delegate child | ✓ | ✓ | Rejects at runtime | | Review / explore child | — | — | — |

Related

  • pi-subagents — Feature-rich implementation with agent definitions, background runs, session forking, inter-process communication, and a full management UI. The definitive reference for what's possible, though possibly more than most workflows need.
  • pi-subagent-lite — Ultra-minimal (~250 lines). A single task tool with minimal context overhead.

License

MIT