Install
Install with PiG
pig install npm:@xvzc/pi-subagents-minimalInstall with Pi
pi install npm:@xvzc/pi-subagents-minimalPackages 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.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 1.1.2 (README.md). PiG does not review it.
pi-subagents-minimal
A minimal Pi extension for subagent invocation.
Installation
pi install npm:@xvzc/pi-subagents-minimal
To use it locally, clone the repository, install dependencies, and register
the package as a Pi extension via its declared ./src/index.ts entry
according to your Pi setup:
git clone <repo-url>
cd pi-subagents-minimal
npm install
Quick start
- Discover enabled roles: call
subagent_list(takes no parameters). - Start work: call
subagent_callwithtype: "new", anagentname from the list, and aprompt.newandresumerun in the background and return a queued acceptance promptly — do not poll withsubagent_output. - Collect the result: when a completion signal names a session, call
subagent_outputwith thatsession_id. Reads are non-consuming and may be repeated. - To continue the same session, call
subagent_callwithtype: "resume", thesession_id, and the follow-upprompt. To intervene in a running session immediately, usetype: "steer"with thesession_id. - While subagents run, continue independent work. Completion notifications are
pushed when children finish. For summaries only (never full output), call
subagent_status.
Tools
| Tool | Purpose | Key parameters |
|---|---|---|
subagent_call | Start (new), continue (resume), or immediately steer (steer) a subagent session. | type, prompt; agent (required for new); session_id (required for resume/steer); optional model, thinking, workspaceDir (new only). |
subagent_output | Read the retained full report for one session. | session_id. |
subagent_list | List enabled subagent roles. | None. |
subagent_status | Show lifecycle summaries of active and recent sessions. | None. |
Session IDs are 16 lowercase hex digits grouped 8-4-4. Failures return a
coded { error: { code, message } } envelope.
Configuration
Optional JSON file named pi-subagents-minimal.json, loaded from two paths
with field-level precedence defaults < global < project:
- Global:
<agent-dir>/extensions/pi-subagents-minimal.json - Project:
<cwd>/.pi/pi-subagents-minimal.json
| Field | Type | Default | Bounds / values |
|---|---|---|---|
historyRetentionDays | integer | 7 | 1–3650 |
maxConcurrentSubagents | integer | 8 | 1–64 |
injectGuidelines | boolean | true | true / false |
defaultModel | string | absent | non-empty string |
defaultThinking | string | absent | off, minimal, low, medium, high, xhigh, max |
Missing files are silent; malformed files, invalid known fields, and unknown fields are ignored with a warning and never throw. The effective config is frozen at activation. Example:
{
"historyRetentionDays": 7,
"maxConcurrentSubagents": 8,
"injectGuidelines": true
}
Development
Commands from package.json:
npm install
npm run check # format:check + lint + typecheck + test
npm test # vitest run
npm run build # emits to dist/
Further detail
- Internal design/specification notes:
.specs/README.md.
License
MIT — see LICENSE.