@diegopetrucci/pi-compact-bash
v0.1.0
Published
A pi extension that renders collapsed bash tool output as a one-line preview.
Maintainers
Readme
compact-bash
A pi extension that makes collapsed assistant bash tool output much quieter.
When enabled, collapsed bash output renders as one output line plus an inline hidden-line count and Ctrl+O expand hint. Expanding with Ctrl+O still shows the full rendered output.
Commands
/compact-bash status
/compact-bash off
/compact-bash on
/compact-bash toggleThe extension starts enabled by default. Disabling is temporary for the current extension runtime/session; after /reload, /new, /resume, or /fork, it starts enabled again.
Install
Standalone npm package
pi install npm:@diegopetrucci/pi-compact-bashCollection package
pi install npm:@diegopetrucci/pi-extensionsGitHub package
pi install git:github.com/diegopetrucci/pi-extensionsThen reload pi:
/reloadNotes
- This extension overrides pi's built-in
bashtool so it can customize only the TUI renderer. - It reuses pi's built-in bash implementation and preserves
shellPath/shellCommandPrefixsettings when they are available from settings files. - It does not truncate or rewrite the actual tool result sent to the model.
- It affects assistant-invoked
bashtool rows. User!/!!bash commands are rendered by a separate pi component and keep pi's default preview behavior.
