pi-mono-btw

Pi extension that answers side questions while the main agent keeps running

Package details

extension

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.2
Published
Apr 23, 2026
Downloads
1,609/mo · 259/wk
Author
emanuelcasco
License
unknown
Types
extension
Size
27 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 answers in a passive widget below the editor while pi keeps working
  • stores hidden history as custom session entries (btw-history)

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+B asks the current editor text as a side question

Files

  • index.ts — extension entry point