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

@howaboua/pi-explore-subagents

v0.1.9

Published

Isolated discovery-only explore subagents for Pi.

Readme

pi-explore-subagents

Give Pi a second set of eyes. pi-explore-subagents adds an isolated discovery tool that lets Pi send focused reconnaissance work to a child agent before the main agent edits anything. It is built for the moment when a codebase is unfamiliar, the right files are not obvious, or you want evidence gathered without dragging all of that exploration into the primary session.

What it does

This package gives Pi agents a dedicated explore_subagent tool. It is not meant to be called directly by users; agents use it when they need isolated reconnaissance before acting.

The tool starts a separate, no-session Pi subprocess with a discovery-only prompt. The subagent can inspect files, trace relationships, and report back with paths, line ranges, unknowns, and suggested next reads. It does not inherit the parent conversation, and it is instructed not to edit files.

Use it for:

  • finding the right entry points in an unfamiliar repo
  • tracing a behavior across nearby files
  • surveying a subsystem before implementation
  • collecting evidence before making a change
  • keeping broad exploration out of the main context

Modes

explore_subagent has two modes:

shallow

Fast, bounded reconnaissance. Use it with cheaper, faster, or less capable models when you only need hotspots, entry points, and the next few files to read.

Good for:

  • quick orientation
  • finding likely files
  • narrow questions
  • stopping early before the search sprawls

deep

Wider reconnaissance for longer investigations. Use it with a stronger model when the task needs cross-file synthesis, triage, or a more complete map.

Good for:

  • repo or subsystem surveys
  • following call paths
  • compare/rank/select work
  • tracing config, scripts, tests, and boundaries

Install

pi install npm:@howaboua/pi-explore-subagents

You can also clone the package and install your local copy if you want to tune the prompts or mode behavior for your own workflow.

Configuration

On first use, the package creates ~/.pi/agent/pi-explore-subagents.json with separate model settings for each mode. If an older local install already has a tuned package-local config.json, those settings are copied into the new user-local file first. A good starting point is to keep shallow fast and inexpensive, and reserve deep for longer work:

{
  "shallow": {
    "model": "openai-codex/gpt-5.3-codex-spark",
    "thinking": "low"
  },
  "deep": {
    "model": "openai-codex/gpt-5.4-mini",
    "thinking": "medium"
  }
}

Edit that user-local file to tune models or thinking levels. It lives outside the installed package, so reinstalls and updates will not wipe your changes.

Usage

Ask Pi naturally. The tool is for agents, not for direct user calls. When an agent uses it, it should provide a complete standalone brief, choose shallow or deep, and optionally set the working directory.

Because the subagent is isolated, the agent should include the context it needs in the task itself: project path, the exact question, relevant files or symbols, constraints, and the kind of evidence you want back.

Example:

Use a shallow explore subagent to find where authentication errors are rendered. Stay discovery-only. Return likely files, line ranges, and the best next reads.

For broader work:

Use a deep explore subagent to map the flow from CLI argument parsing to command execution. Include config and test boundaries. Stay discovery-only and return evidence by file and line range.

In short

  • shallow is for fast, bounded scans.
  • deep is for wider, longer investigations.
  • Subagents are isolated and discovery-only.
  • Better briefs produce better evidence.