pi-better-subagents

extensionmaintained

Pi extension for detached, sandboxed subagent runs that keep the foreground session free.

by — · v0.2.0 · published 1d ago

$ pi install npm:pi-better-subagents
downloads/mo
1.5K
stars
5
last push
1d ago
open issues
24

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

No downloads in the last 12 weeks.

README

pi-better-subagents

pi-better-subagents is a Pi extension for detached, sandboxed subagent runs that keep the foreground Pi session free.

Quick Answer

Use pi-better-subagents when you want Pi to launch independent agent work without blocking the current conversation. Each subagent runs in its own pi -p child process, reports back when finished, and keeps durable logs for later inspection.

Screenshots

pi-better-subagents rendered in Pipi-better-subagents package overview

Core Features

  • Non-blocking subagent launches, with an optional role and named-agent catalog (docs/agent-catalog.md, docs/agent-catalog-lifecycle.md).
  • Default OS write sandboxing on macOS and Linux.
  • Explicit tool allowlists for child sessions.
  • Durable logs, result retrieval, and failure observations independent of lifecycle status.
  • Live background-work navigator for active runs.

Install

pi install npm:pi-better-subagents

Try it for one run:

pi -e npm:pi-better-subagents

Linux confinement requires a usable bubblewrap backend and Pi SDK 0.82.1 or newer. /sandbox controls the independent Subagents profile, which each launch freezes. Pi handles its own startup, authentication, and provider connection; task tools obey the selected file, command, and network permissions. Outside project defaults to Read. Currently confined children admit read, write, edit, and bash; unsupported requested tools are reported as unavailable. See usage notes for the runtime boundary and supported configurations.

When To Use

Use this package for independent coding, review, research, or verification work that can finish later. Do not use it for steps that need immediate foreground interaction or user clarification.

Compatibility

RequirementSupport
PiRequired
Install methodpi install npm:pi-better-subagents
macOS sandboxingSupported by default
Linux sandboxingUses bubblewrap when available
Development runtimeNode.js 22+

Update Or Remove

pi update npm:pi-better-subagents
pi remove npm:pi-better-subagents

More Detail