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-archimedes/subagent

v1.8.3

Published

Subagent dispatch with live TUI streaming and cost tracking

Readme

@pi-archimedes/subagent

Subagent dispatch with live TUI streaming and cost tracking for the Pi coding agent.

Features

  • Single & parallel execution — dispatch one task or fan out multiple tasks across different agents simultaneously
  • Live TUI streaming — watch subagent progress in real-time with tool calls, token counts, and cost updates
  • Agent discovery — auto-discovers agents from .pi/agents/*.md files at project, user, and global scope
  • Per-agent model override — each subagent can use its own model, falling back to the parent's selection
  • Cost tracking — detailed token usage (input, output, cache read/write) and cost per subagent, emitted through the core bus for the footer to consume
  • /agents command — full CRUD TUI for managing agent definitions with model picker, tool picker, and cross-scope collision warnings (available via the meta package)

Screenshots

Main view — parallel execution

Live progress panel showing two parallel subagents with token stats, cost, and recent output:

subagents main view

Agent details view

Browse and inspect agent configurations — name, model, tools, system prompt, and more:

subagents agent view

Model selection

Pick from all available models registered in Pi's model registry:

subagents model selection

Tool selection

Toggle which tools are available to an agent from Pi's full toolset:

subagents tool selection

Installation

pi install @pi-archimedes/subagent

Or install the full pi-archimedes meta package for the integrated experience (cost tracking in footer, shared chrome, etc.):

pi install pi-archimedes

Usage

As a tool

The subagent tool accepts either a single task or an array of tasks for parallel execution:

{
  "agent": "reviewer",     // optional, defaults to "general"
  "task": "review the PR", // single task
  "model": "openrouter/anthropic/claude-4", // optional override
  "cwd": "/path/to/dir"    // optional working directory
}

Parallel mode:

{
  "tasks": [
    { "agent": "researcher", "task": "find all usages of foo" },
    { "agent": "reviewer", "task": "review the implementation plan" }
  ]
}

As a command

Run /agents to open the interactive Agents Manager for creating, editing, and deleting agent definitions.

Agent files

Agents are defined as .md files with YAML frontmatter, placed in one of:

  • Project scope: <cwd>/.pi/agents/ — available only in this project
  • User scope: ~/.pi/agents/ — available across all projects
  • Global scope: installed via packages or extensions

Frontmatter supports: name, model, tools, thinking, inheritProjectContext, inheritSkills, systemPromptMode, and systemPrompt.

Integration

When installed via pi-archimedes (the meta package), subagent cost events flow through @pi-archimedes/core/bus and are consumed by @pi-archimedes/footer's CostAccumulator. This merges subagent tokens and cost into the main status bar for a unified view.

The /agents command is also only registered by the meta package (not by standalone @pi-archimedes/subagent).