omp packages

pi-subagent-manager1.16.0

Hierarchical, steerable subagent threads for pi

GitHub Actions Published 4 days ago MIT ~5.2K downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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

Agent Use it for
architect Plans, tradeoffs, coordinating helpers
coder Implementation and debugging
researcher Codebase and web research
reviewer Finding correctness and security issues
tasker Small jobs and quick lookups
writer Drafting 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.

[lab] Fork history summaries is off by default. With a housekeeping model selected, forks inherit a bounded sequence of sampled activity lines rather than the parent transcript; fresh agents are unchanged. For subagents, history reuses the same housekeeping lines as the live labels; it does not make a separate history request. The live-label display can be on or off independently: if it is off but fork history is on, housekeeping still generates lines for history. Collection also adds background model calls for the main agent, but forks never request or wait for a summary. History may be incomplete (including before the setting was enabled), and missing history never falls back to the transcript.

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.