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

@nativepi/subagents

v1.1.0

Published

Adds asynchronous, isolated Pi subagents to Pi and NativePi.

Readme

@nativepi/subagents

A Pi package for running isolated Pi subagents asynchronously. Children start with a fresh conversation, while retaining the current project, Pi configuration, context files, skills, tools, and extensions. Subagent tools are disabled inside children, so delegation cannot recurse.

Install

pi install @nativepi/subagents

Tools

  • subagent_spawn queues a child and returns its id immediately.
  • subagent_status returns one child's current state and final response when available.
  • subagent_list lists all children in the current parent session.
  • subagent_wait waits for selected children and returns their final responses.
  • subagent_cancel cancels queued or running children.

subagent_spawn accepts an optional model as provider/model and an optional Pi thinkingLevel. If either is omitted, the parent chat's current value is used. The delegated prompt must be self-contained because the child cannot see the parent conversation.

NativePi interface

NativePi adds a Subagents entry to the conversation header. It opens a full-size workspace for every child in the current chat, including queued, running, completed, failed, and cancelled work. Select a child to read its complete conversation with Pi—messages, reasoning, tool calls and results, errors, and final response—as it happens. Queued or running children can also be cancelled from the conversation header.

Terminal TUI

Inside Pi's terminal you can control subagents without relying on the model. /subagents replaces the composer with a compact control panel, so it does not cover the conversation in a modal.

  • / — select a subagent
  • Enter — open its task, status, recent activity, and final-response preview
  • N — enter a task and start a child using the chat's model and thinking level
  • X — stop the selected child after confirmation
  • L — change the user concurrency limit
  • Tab — switch between All, Active, Queued, and Done
  • Esc — go back or close the panel

For advanced spawning or scripting, use commands directly:

  • /subagents list
  • /subagents spawn <prompt> [--name LABEL] [--model provider/id] [--thinking LEVEL]
  • /subagents status <id>
  • /subagents cancel <id> [id ...]
  • /subagents concurrency <n>
  • /subagent is an alias for /subagents

The panel updates live and shows status, duration, model, token count, tool count, and whether concurrency comes from the user default or a project override.

Configure

The default concurrency is 6. Set a user-level value in ~/.pi/agent/subagents.json:

{
  "maxConcurrency": 6
}

A trusted project can override it in .pi/subagents.json. Run /reload after editing either file manually. NativePi also exposes the user-level value under Settings → General → Subagents. Reducing the limit does not stop children that are already running; it delays queued work until the running count falls below the new limit.

Subagent conversations are ephemeral and do not appear in Pi session history.