@mjfuertesf/pi-ask-pi
v0.1.4
Published
Run isolated Pi subagents from Pi via the AskPi tool
Downloads
621
Maintainers
Readme
pi-ask-pi
Run isolated Pi subagents from Pi with the AskPi tool.
pi-ask-pi is a Pi extension for local development workflows. It registers an AskPi tool that launches a fresh pi --print subprocess, passes it an isolated prompt, and returns the subagent output to the parent Pi session.
Install
pi install git:gitlab.com/mjfuertesf/pi-ask-pi
pi install npm:@mjfuertesf/pi-ask-piRepo: https://gitlab.com/mjfuertesf/pi-ask-pi
Usage
After installing, Pi exposes an AskPi tool with:
prompt— task or question for the isolated subagentmodel— optional model override; defaults to the parent modeltimeout— optional timeout in milliseconds
Example:
Use AskPi to review this implementation plan for edge cases.Demo


What it does
- registers the
AskPitool - always runs a fresh raw
pi --printsubprocess as an isolated subagent - defaults to the parent model when
modelis omitted - returns the subagent's inline output directly
- accepts an optional
timeoutin milliseconds
Development
npm install
npm testnpm test runs:
tsx --test ./*.test.ts