@howaboua/pi-smart-btw
Async side-session questions for Pi with explicit injection into the main chat.
Package details
Install @howaboua/pi-smart-btw from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@howaboua/pi-smart-btw- Package
@howaboua/pi-smart-btw- Version
0.2.5- Published
- Jul 14, 2026
- Downloads
- 976/mo · 166/wk
- Author
- howaboua
- License
- MIT
- Types
- extension
- Size
- 65.7 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
@howaboua/pi-smart-btw
Adds /btw for questions you do not want to derail the main chat. Each numbered slot runs an async, ephemeral child Pi RPC process. Its answers stay out of the main model context until you inject them.
Install
pi install npm:@howaboua/pi-smart-btw
Usage
/btw 1 what is this repo?
/btw 2 explain this error
/btw 1 continue that answer
/btw
/btw N <question>sends to slot N./btw <question>sends to the active slot./btw Nswitches slots;/btwopens the panel.- Each slot has its own queue and child, so a slow answer in one does not block another.
Answers live in the transcript and survive restarts, but stay outside the main model context until injected. The widget only shows status and controls.
Controls
Alt+C— inject the active slot's answers into the main chat, then clear itAlt+X— clear the active slot without injectionAlt+Z— prefill/btwAlt+H/Alt+L— previous/next slotAlt+1…Alt+9— jump to a slotAlt+J/Alt+K— fold/unfold the widget/btw config— model, thinking, shortcut, and link settings
Configuration
Settings live at ~/.pi/agent/pi-smart-btw.json. /btw config edits provider, model, and thinking. Edit shortcuts opens the JSON file in $VISUAL or $EDITOR; reload after changing shortcuts or advanced options such as command. Thinking is clamped to the selected model.