← Catalog

pi-subagent-manager

Hierarchical, steerable subagent threads for pi

Package

Install

Install with PiG

pig install npm:pi-subagent-manager

Install with Pi

pi install npm:pi-subagent-manager
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/championswimmer/pi-subagent-manager/main/assets/banner.png",
  "extensions": [
    "./dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 1.13.1 (README.md). PiG does not review it.

pi-subagent-manager

npm version npm downloads GitHub stars CI codecov

Let pi hand work to helper agents in parallel. Watch what they're doing, give them more direction, or pick up a finished agent's conversation.

Install

pi install npm:pi-subagent-manager

Requires pi 0.99.2+.

Why use it

  • Hand independent jobs to helper agents that run in parallel.
  • Watch any agent live in a nested agent tree.
  • Steer a running agent with more direction, or resume it after it finishes.
  • Choose fork: to share your conversation or fresh: to start clean.
  • Six bundled roles, with per-role model, tools, and instructions you can change, plus custom agents.

How to use

Pi running parallel agents, browsing a nested agent tree, steering a writer, and watching passing tests

A real Pi session with a customized footer and Nerd Font: parallel work, nested delegation, watching, and steering. Recording details (37 seconds; pauses shortened).

Start using it

Ask pi to delegate in plain language:

Have a reviewer check my last commit while a researcher looks up how this repo handles retries.

Or start an agent yourself:

/agents fork:coder fix the failing auth test

fork: includes your current conversation. Use fresh: instead for a task that needs no conversation history.

The Agents widget above the input shows what's running. Open /agents tree, select an agent, and press Enter to watch it. Type in the Steer input to give it more direction or resume it after it finishes. Results also return to the main agent.

Bundled agents

AgentUse it for
architectPlans, tradeoffs, coordinating helpers
coderImplementation and debugging
researcherCodebase and web research
reviewerFinding correctness and security issues
taskerSmall jobs and quick lookups
writerDrafting and editing prose

They use your current model until you configure preferences. Open /agents types to change a role's model, tools, or instructions, or add your own agent.

Settings and safety

Open /agents to change delegation mode, limits, and display settings; save with Ctrl+S. Experimental options are marked [labs] in their help. [lab] Subagent extensions opens a per-extension chooser (Space/Enter toggles, Esc returns); Save and apply persists the selection for new subagent sessions. It lists auto-discovered .ts/.js files and subdirectory entry points in Pi’s agent-dir extensions/ (honoring PI_CODING_AGENT_DIR), trusted project .pi/extensions/, and configured/package files—not CLI-only/inline/built-in extensions; see limitations.

Agents share your working directory and OS permissions: tool policies are not a sandbox. Don't run multiple subagent extensions together — they clash on /agents.

Documentation

MIT license

Check out my other Pi extensions

  • pi-cache-graph — Real-time prompt cache hit rates and token metrics.
  • pi-checklist — Session task checklist with dependencies and a TUI renderer.
  • pi-context-decisions — Selects relevant skills and optionally filters tools for each task.
  • pi-context-prune — Prunes verbose tool outputs from context while preserving history.
  • pi-context-usage — Dot-grid visualization of context window token usage.
  • pi-gauge — Live tokens/sec and TTFT in the status bar.
  • pi-subagent-manager — Delegate work to parallel subagents and monitor their progress.