pi-agent-beautify

Terminal visual polish for pi coding agent: natural multi-level headings, tool-panel code blocks, user message accent bar, clipboard image chips

Packages

Package details

extension

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

$ pi install npm:pi-agent-beautify
Package
pi-agent-beautify
Version
0.1.3
Published
Jul 27, 2026
Downloads
596/mo · 596/wk
Author
souyo
License
MIT
Types
extension
Size
32.4 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "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-agent-beautify

Terminal visual polish for pi coding agent.
Forked and extended from @smoose/pi-beautify.

Features

1. Natural multi-level headings

Upstream pi-tui hides # / ## for H1/H2, but still prints raw ###… for deeper levels.

This extension:

  • hides raw # markers for all levels (H1–H6)
  • adds a clear hierarchy with markers, weight, indent, and rule lines

2. Code blocks with tool-panel background

  • no raw ``` fence lines
  • no box-drawing characters on code lines (copy stays clean)
  • uses the same background as pi tool-execution panels (toolPendingBg)
  • text / plain / plaintext fences also get the panel background for emphasis

3. Clipboard image chips

Clipboard pi-clipboard-* paths render as compact [image1] chips in the editor, then expand back to real paths before submit.

4. User message accent bar

User prompts get a soft blue left stripe (, theme borderAccent / blue) so they read clearly against assistant output — similar to modern chat UIs.

Install

npm (recommended)

pi install npm:pi-agent-beautify
# pin a version
pi install npm:pi-agent-beautify@0.1.3

GitHub

pi install git:github.com/baipiaoking88/pi-agent-beautify
# or
pi install https://github.com/baipiaoking88/pi-agent-beautify

Local path (development)

pi install /path/to/pi-agent-beautify
pi install ./pi-agent-beautify

Try without writing settings:

pi -e npm:pi-agent-beautify
pi -e /path/to/pi-agent-beautify

Reload with /reload or restart pi after install.

License

MIT