pi-mono-btw
v1.7.4
Published
Pi extension that answers side questions while the main agent keeps running
Readme
btw extension
This extension adds Claude Code-style /btw behavior to pi.
Behavior
- intercepts
/btw <question>through the input pipeline instead of a normal extension command - starts a separate model request immediately
- does not queue the question into the main agent loop
- does not interrupt the current task
- renders active requests and answers in a focused
/btwpanel while pi keeps working - lets the user dismiss the panel with
Esc/Enter, scroll long answers with↑/↓, and clear displayed history withx - stores hidden history as custom session entries (
btw-history) without injecting answers into the visible transcript or main agent context
Why it is implemented this way
In pi, normal extension commands are checked before input expansion and are not the same as prompt templates or skills. To make /btw work while pi is already busy, this extension handles raw input that starts with /btw and launches its own background completion.
Extra shortcut
Ctrl+Shift+Basks the current editor text as a side question
Files
index.ts— extension entry point
