pi-tui-prompt-box

A prompt box style for Pi that combines with other styling extensions

Packages

Package details

extension

Install pi-tui-prompt-box from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-tui-prompt-box
Package
pi-tui-prompt-box
Version
0.2.0
Published
Nov 17, 2026
Downloads
803/mo · 437/wk
Author
dimk90
License
MIT
Types
extension
Size
60.6 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "image": "https://media.githubusercontent.com/media/dimk90/pi-tui-prompt-box/e0ae300ca7aea2ed2d873e6c7d544951dc6b0564/doc/images/pi-tui-prompt-box.png",
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-tui-prompt-box

An alternative style for the prompt input in Pi: a filled prompt box with the model, thinking level, and busy indicator inside.

Your messages in the chat are drawn as the same boxes, which is optional. Other TUI components are only moved to line up with the prompt box. Their content and styling stay unchanged.

It is a building block, not a full theme: combine it with your favorite footer, completion menu, or any other styling extension.

Demo: Mode Colors

The accent bar and spinner colors show the selected thinking level:

Demo: Mode Colors

Demo: Message Colors

Each message in the chat keeps the color of the thinking level it was sent with:

Demo: Message Colors

Install

pi install npm:pi-tui-prompt-box

What It Changes

  • Moves the chat, widgets, dialogs, and footer right so they line up with the prompt box.

  • Removes the model, provider, and thinking level from the default footer, as the prompt box already shows them. Custom footers stay unchanged.

  • Moves Pi's busy indicator (spinner and message) into the prompt box. Custom spinner widgets stay unchanged.

  • Draws your messages in the chat as prompt boxes, colored by the thinking level they were sent with, and hides Pi's Thinking level chat status. This is optional.

Configuration

User message boxes are on by default. To keep Pi's own look for your messages in the chat, create ~/.pi/agent/extensions/pi-tui-prompt-box.json and run /reload:

{
  "userMessageBoxes": false
}

Context Footprint

None. The extension only changes the terminal UI: it adds no tools, prompt sections, or messages to the model context.

My Other Stuff

📌 S-VHS - A terminal recorder used to create the demo GIFs.

📌 pi-context-view - Pi extension to visualize context usage and inspect its hidden parts.

License

MIT