← Catalog

pi-mono-btw

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

Extension

Install

Install with PiG

pig install npm:pi-mono-btw

Install with Pi

pi install npm:pi-mono-btw
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 1.7.4 (README.md). PiG does not review it.

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 /btw panel while pi keeps working
  • lets the user dismiss the panel with Esc/Enter, scroll long answers with ↑/↓, and clear displayed history with x
  • 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+B asks the current editor text as a side question

Files

  • index.ts — extension entry point