@pi-vault/pi-subagents
Pi extension for delegating tasks to isolated and specialized subagents
Package details
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
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, anddefaultTimeoutMs
Bundled Agents
scoutfinds relevant files, entry points, and code pathsplannerturns a task into a short, verifiable planresearchergathers evidence, tradeoffs, and implementation contextworkerhandles focused implementation workreviewerreviews 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:
nameoptional display name; otherwise the filename slug is useddescriptionrequired short summarytoolscomma-separated tool allowlistmodeloptional model override;defaultfalls back to the host sessionthinkingoptional thinking levelsubagent_agentsoptional allowlist of child agents this agent may invokeskillsoptional skill policy: comma-separated names,all, ornonetimeout_msoptional 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