@narumitw/pi-btw
Pi extension that adds a /btw side-question command.
Package details
Install @narumitw/pi-btw from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@narumitw/pi-btw- Package
@narumitw/pi-btw- Version
0.1.34- Published
- May 24, 2026
- Downloads
- 3,743/mo · 2,324/wk
- Author
- narumitw
- License
- MIT
- Types
- extension
- Size
- 10.3 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./src/btw.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
💬 pi-btw — Side Questions for the Pi Coding Agent
@narumitw/pi-btw is a native Pi coding agent extension that adds /btw, a side-question command for quick clarifications that should not interrupt or pollute the main agent conversation.
Use it when you want to ask a temporary question, inspect context, or get a short explanation while keeping the primary coding task focused.
✨ Features
- Adds a
/btw <question>command to Pi. - Answers side questions in a temporary UI.
- Uses the current session branch as context.
- Does not append the side question or answer to the main conversation.
- Works as an independently installable npm Pi extension package.
📦 Install
pi install npm:@narumitw/pi-btw
Try without installing permanently:
pi -e npm:@narumitw/pi-btw
Try this package locally from the repository root:
pi -e ./extensions/pi-btw
🚀 Usage
/btw <your side question>
Examples:
/btw what does this TypeScript error mean?
/btw summarize the current implementation before we continue
/btw is this API name idiomatic?
🧠 Why use pi-btw?
Normal assistant messages become part of the main Pi conversation and can distract the coding agent from the task. pi-btw creates a lightweight side channel for context-aware questions, making it useful for pair programming, debugging, code review, and repository exploration.
🗂️ Package layout
extensions/pi-btw/
├── src/
│ └── btw.ts
├── README.md
├── LICENSE
├── tsconfig.json
└── package.json
The package exposes its Pi extension through package.json:
{
"pi": {
"extensions": ["./src/btw.ts"]
}
}
🔎 Keywords
Pi extension, Pi coding agent, AI coding agent, side question command, agent chat workflow, TypeScript Pi package, npm Pi extension.
📄 License
MIT. See LICENSE.