pi-pretty-tui

Polished tool calls and list rendering for the Pi coding agent TUI

Packages

Package details

extension

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

$ pi install npm:pi-pretty-tui
Package
pi-pretty-tui
Version
0.1.3
Published
Aug 17, 2026
Downloads
395/mo · 395/wk
Author
ykn0309
License
MIT
Types
extension
Size
218.2 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions/index.ts"
  ],
  "image": "https://unpkg.com/pi-pretty-tui@0.1.3/assets/screenshot.png"
}

Security note

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

README

pi-pretty-tui

A visual refinement extension for the Pi coding agent. It provides compact tool-call rendering and cleaner list presentation while preserving Pi's built-in tool behavior.

pi-pretty-tui preview

Features

  • Compact Read, Bash, Edit, Write, Grep, Find, and List calls
  • Gray running, green success, and red failure indicators
  • Concise result summaries with expandable output
  • Native-style Write previews: first 10 lines when collapsed, full content when expanded
  • Live Bash output: latest 5 lines when collapsed, all available output when expanded
  • Colored +added and -removed edit statistics and diffs
  • Correct hanging indentation for long paths and wrapped tool output
  • Bullet () markers for unordered Markdown lists

Install

pi install npm:pi-pretty-tui

Restart Pi or run /reload after installation.

Pi may warn that built-in tools are being overridden. This is expected: pi-pretty-tui re-registers Pi's built-in tools and delegates execution to their original implementations, changing only their TUI renderers.

Expand tool output

Press Ctrl+O (Pi's default app.tools.expand keybinding) to show or hide detailed output, edit diffs, and complete Write content.

Compatibility notice

Tool rendering uses Pi's documented extension APIs. Changing unordered-list markers currently requires runtime patching of an internal @earendil-works/pi-tui Markdown renderer method because Pi does not expose a public hook for that presentation detail. Code blocks use Pi's original renderer without modification.

No Pi source files are modified. The list-marker patch is removed during session shutdown, but a future Pi release may require this extension to be updated.

Uninstall

pi remove npm:pi-pretty-tui

Then restart Pi.

License

MIT