@diegopetrucci/pi-compact-bash
A pi extension that renders collapsed bash tool output as a one-line preview.
Package details
Install @diegopetrucci/pi-compact-bash from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@diegopetrucci/pi-compact-bash- Package
@diegopetrucci/pi-compact-bash- Version
0.1.0- Published
- May 9, 2026
- Downloads
- 21/mo · 21/wk
- Author
- diegopetrucci
- License
- MIT
- Types
- extension
- Size
- 8.9 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
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 toggle
The 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-bash
Collection package
pi install npm:@diegopetrucci/pi-extensions
GitHub package
pi install git:github.com/diegopetrucci/pi-extensions
Then reload pi:
/reload
Notes
- 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.