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-unipi/subagents

v3.0.3

Published

Subagents for UniPi — Devin-model independent child agents

Readme

Subagents

Subagents let the agent give a self-contained task to a child agent, so the main context stays small.

@pi-unipi/subagents · part of UniPi

What it does

  • Starts each child agent as a separate Pi process (pi --mode rpc).
  • Runs a child in the foreground, or in the background. A background child sends one completion notice when it finishes.
  • Can resume an earlier child in its own session.
  • Gives two built-in profiles and lets you add custom agents as Markdown files.
  • Shows a live card for each child, with the model, tool calls, tokens and cost.
  • Runs 8 children or fewer at the same time by default.

| Profile | What it does | |---|---| | subagent_explore | Read-only research. It uses the default subagent model. | | subagent_general | General tasks, also code changes. It uses your model. |

Quick start

  1. Install UniPi: pi install npm:@pi-unipi/unipi. You can also install this package alone: pi install npm:@pi-unipi/subagents.
  2. Ask the agent to explore a part of the code with a subagent.
  3. Push Ctrl+B to send a foreground child to the background.
  4. Push the down arrow in an empty input to open the work tray, then push Right for the Subagents tab.

Commands

| Command or key | What it does | |---|---| | /unipi:subagents | Opens the work tray on the Subagents tab. | | /unipi:agents | Lists profiles. Creates, edits, copies or deletes custom agents. | | Ctrl+B | Sends all foreground children to the background. | | Esc | Cancels a foreground child. |

In the panel, use the arrow keys to move. Push Enter to see the live transcript. Push f to bring a child to the foreground. Push x to cancel it.

Agent tools

| Tool | What it does | |---|---| | run_subagent | Starts a child with a title, task and profile. Use is_background to run without a wait. Use resume with an agent ID to continue a child. | | read_subagent | Reads the report of a subagent or a Fusion sidekick. |

A background child cannot show approval prompts. A denied call returns a reason to the child. A foreground child sends its prompts to you.

Settings

Namespace subagents. Open it with /unipi:settings. The package reads the settings and agent files again each turn, so you do not need to restart Pi.

| Key | Default | What it does | |---|---|---| | enabled | true | Gives run_subagent and read_subagent to the agent. | | defaultModel | empty | Model for subagent_explore and custom agents with no model. Empty uses the Fusion sidekick, then your model. | | defaultThinking | inherit | Thinking level for the same agents. | | maxConcurrent | 8 | Maximum children that run at the same time. Range 1 to 16. |

Set UNIPI_SUBAGENT_MAX_DEPTH to let children start children. The default is 1, which means no nesting.

Custom agents

Put a Markdown file in ~/.unipi/config/agents/ or in <project>/.unipi/config/agents/. The project file wins. The body is the system prompt. The front matter can have these keys: name, description, model, tools or allowed-tools, thinking and max-nesting.

The package keeps child sessions in ~/.unipi/workspace/<id>/state/subagents/sessions/<lead-session-id>/.

How it works

Read Delegation and Harness messages.

See also