pi-mono-btw
Pi extension that answers side questions while the main agent keeps running
Package details
Install pi-mono-btw from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-mono-btw- Package
pi-mono-btw- Version
1.7.4- Published
- May 8, 2026
- Downloads
- 127/mo · 24/wk
- Author
- emanuelcasco
- License
- unknown
- Types
- extension
- Size
- 29.5 KB
- Dependencies
- 0 dependencies · 4 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
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