@pi-vault/pi-subagents

Pi extension for delegating tasks to isolated and specialized subagents

Packages

Package details

extension

Install @pi-vault/pi-subagents from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@pi-vault/pi-subagents
Package
@pi-vault/pi-subagents
Version
0.2.1
Published
Jun 15, 2026
Downloads
168/mo · 168/wk
Author
lanhhoang
License
MIT
Types
extension
Size
122.4 KB
Dependencies
1 dependency · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@pi-vault/pi-subagents

npm version Quality Node >=22.19.0 License: MIT

Delegate focused work to bundled Pi subagents without leaving your current session.

Install

pi install npm:@pi-vault/pi-subagents

Reload Pi after install:

/reload

Quick Start

Run a bundled agent directly:

/agent scout trace where auth state is loaded

Open the interactive agent manager:

/agents

Use /agents when you want to:

  • create or edit a user agent override
  • export a bundled agent into your global Pi agent directory
  • disable an agent with a global override
  • delete an existing global override
  • change subagent settings such as maxConcurrency, maxRecursiveLevel, and defaultTimeoutMs

Bundled Agents

  • scout finds relevant files, entry points, and code paths
  • planner turns a task into a short, verifiable plan
  • researcher gathers evidence, tradeoffs, and implementation context
  • worker handles focused implementation work
  • reviewer reviews changes and looks for defects

Typical Usage

  • Use /agent scout ... to find where a feature or bug lives.
  • Use /agent planner ... before a non-trivial change.
  • Use /agent worker ... for a scoped implementation task.
  • Use /agent reviewer ... before shipping a diff.

Foreground runs are the supported execution mode in this release.

User Agent Overrides

User overrides are markdown files with frontmatter plus a prompt body. A minimal example:

---
name: my-worker
description: Focused implementation helper.
tools: read, write, bash
model: default
thinking: medium
subagent_agents: scout, reviewer
skills: tdd, verification-before-completion
timeout_ms: 180000
---

You are My Worker.

Make the smallest safe change that completes the task.

Supported frontmatter fields:

  • name optional display name; otherwise the filename slug is used
  • description required short summary
  • tools comma-separated tool allowlist
  • model optional model override; default falls back to the host session
  • thinking optional thinking level
  • subagent_agents optional allowlist of child agents this agent may invoke
  • skills optional skill policy: comma-separated names, all, or none
  • timeout_ms optional per-agent timeout in milliseconds

If you create an agent from /agents, you can edit the generated markdown later to refine its prompt or skills.

Compatibility

  • Node >=22.19.0
  • Peer dependencies: @earendil-works/pi-coding-agent, @earendil-works/pi-tui
  • Intended for Pi sessions with package and extension support

Development

pnpm install
pnpm check
pnpm pack --dry-run
pi -e .

License

MIT