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

v2.20.5

Published

Subagents for UniPi — parallel execution, file locking, workflow integration

Readme

@pi-unipi/subagents

Delegate work to focused child agents — in parallel, in the background, or as scripted multi-agent workflows. Feature parity with pi-subagents, built on unipi conventions: foreground children run in-process (live widget streaming), background/fork/resume/worktree runs use child pi processes.

Agents

Built-in agents (lowest discovery priority — user/project definitions override):

| Agent | Use it for | |-------|------------| | explore | Read-only file research and parallel reads | | work | File modifications with transparent locking | | scout | Fast codebase recon: entry points, data flow, risks | | researcher | Web research with sources (web_search, multi_web_content_read) | | worker | Implementation: narrow edits, validation, escalation | | reviewer | Code review of diffs, plans, solutions | | oracle | Second opinion; challenges assumptions without editing | | delegate | Lightweight general delegate close to the parent session |

Custom agents are markdown files with YAML frontmatter:

---
name: security-reviewer
description: Security-focused review
tools: read, grep, find
thinking: high
memory: { scope: "project", path: "security-reviewer" }
---

Review changes for unsafe input handling...

Discovery: project .unipi/config/agents/ > global ~/.unipi/config/agents/ > builtins. Aliases resolve (developerworker, advisororacle). Per-agent overrides live in subagents.json.

Tools

| Tool | Description | |------|-------------| | spawn_helper | Launch agents: single child, workflowScript orchestration, or management actions | | get_helper_result | Wait on / inspect background runs; nonBlocking wake subscriptions |

Single child

spawn_helper({ agent: "scout", task: "Analyze the auth flow" })
spawn_helper({ agent: "worker", task: "Implement it", run_in_background: true })
spawn_helper({ agent: "reviewer", task: "Review", gate: "npm test" })

Legacy aliases (type, prompt, max_turns) still work.

Scripted workflows

spawn_helper({ workflowScript: `
  const scan = await runs.run("scan", { agent: "scout", task: "Analyze auth" });
  const reviews = await runs.all([
    { key: "correctness", agent: "reviewer", task: "Review correctness: " + scan.output },
    { key: "tests", agent: "reviewer", task: "Review tests: " + scan.output }
  ]);
  return reviews.map(r => r.output);
`, async: false })

runs.run / runs.all / runs.steer inside a sandboxed VM. Budgets (turnBudget, toolBudget, usageBudget), worktree isolation, fork context, and acceptance gates available per child.

Management actions

spawn_helper({ action: "list" | "get" | "status" | "children.list" })
spawn_helper({ action: "resume", id: "<run>", message: "Reconsider X" })
spawn_helper({ action: "doctor" | "guide", topic: "workflows" })
spawn_helper({ action: "mission.create", mission: { title, objective } })
spawn_helper({ action: "schedule.create", name, agent, task, every: "30m" })

Observability

  • FleetView panel: active work from both transports. to inspect, j/k navigate, enter opens transcripts, esc closes.
  • /unipi:subagents-fleet · /unipi:subagents-doctor · /unipi:subagents-guide [topic]
  • Background completions arrive as <task-notification> follow-ups automatically.
  • Supervisor channel: blocked children can contact_supervisor for decisions.

Configuration

~/.unipi/config/subagents.json (global) + <workspace>/.unipi/config/subagents.json:

{
  "subagents": {
    "defaultModel": "ds/deepseek-v4-flash",
    "asyncByDefault": true,
    "maxSubagentSpawnsPerRun": 64,
    "fleetViewPlacement": "belowEditor"
  }
}

Full key reference: spawn_helper({ action: "guide", topic: "configuration" }). Env overrides use the UNIPI_SUBAGENT_* prefix.

Storage

| Path | Contents | |------|----------| | ~/.unipi/missions/<project-hash>/ | Durable mission records | | ~/.unipi/schedules/<project-hash>/ | Scheduled runs | | ~/.unipi/agent-memory/ | Per-agent persistent memory | | temp root (unipi-subagents-*) | Run artifacts, results, channels (auto-cleaned) |

Commands

| Command | Description | |---------|-------------| | /unipi:subagents-fleet | Show active fleet | | /unipi:subagents-doctor | Config + capacity diagnosis | | /unipi:subagents-guide [topic] | Bundled guide |

Prompt shortcuts

/council, /parallel-review, /review-loop, /parallel-research, /gather-context-and-clarify, /parallel-cleanup — packaged prompt templates for common orchestration patterns.