@ravshansbox/pi-subagent2.2.0
Subagent extension for pi
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.
Reports 0
No reports yet.
Readme
pi-subagent
Subagent extension for pi.
Install
pi install npm:@ravshansbox/pi-subagent
Add -l to install it in project settings.
Usage
Pi loads the extension from ./index.ts, adapted from pi's examples/extensions/subagent:
subagenttool for the model, with three modes:- single:
{ task } - parallel:
{ tasks: [...] }, up to 8 tasks, 4 at a time - chain:
{ chain: [...] }, where{previous}is replaced with the previous step's output
- single:
Each subagent runs in a separate pi process with its own context window. It uses the parent session's current provider, model and thinking level, passed as --provider, --model and --thinking.
The collapsed result shows one line per subagent, with its last tool call and usage, or the first line of its error. Press Ctrl+O to expand it.
Development
npm install
npm run check