@agnishc/edb-compact-tools
v0.14.3
Published
Pi extension: compact outlined tool-call renderers with ctrl+o expansion
Downloads
1,698
Maintainers
Readme
edb-compact-tools
Pi extension that replaces large built-in tool-call blocks with compact outlined rows.
Behavior
- Overrides
read,bash,grep,find,ls,edit, andwriterenderers. - Adds a generic compact blanket renderer for every other tool, without hardcoding individual tool names.
- Delegates execution to Pi's built-in tools, so tool behavior is unchanged.
- Collapsed by default: one compact summary row.
- Expanded with Pi's normal tool expand keybinding, usually
ctrl+o. - Uses
renderShell: "self", so collapsed rows have no filled background; expanded output uses Pi's subtle tool-state background colors. - Collapsed tools render as one compact full-outline block with two lines: the call line, then the status/summary line. The whole outline turns green on success, red on failure, and yellow while running. Expanding shows the available output inside the same outline.
- Adds a muted separator before each tool block.
- Styles user messages as compact outlined cards with an accent border and a random red emoji marker.
- Styles assistant text messages as compact outlined cards with muted borders.
- Uses an outline color per tool:
bash->bashModeread->toolTitle(or purple when reading skill files)grep->successfind->accentls->warningedit->toolDiffAddedwrite->accent
- Detects skill files (paths containing
.agents/skills/or.pi/agent/skills/) and renders them with a purple outline
Local development
Run Pi with the extension directly:
pi -e ./packages/edb-compact-tools/src/index.tsOr install as a Pi package after publishing:
pi install npm:@agnishc/edb-compact-toolsNotes
edit expansion shows the unified diff from Pi's normal edit result. write expansion shows the normal write result text, not a synthetic full-file diff.
