@zigai/pi-ui-tweaks

Pi package for small configurable UI tweaks.

Packages

Package details

extension

Install @zigai/pi-ui-tweaks from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@zigai/pi-ui-tweaks
Package
@zigai/pi-ui-tweaks
Version
0.5.0
Published
Jul 17, 2026
Downloads
1,469/mo · 216/wk
Author
zigai
License
MIT
Types
extension
Size
319.9 KB
Dependencies
2 dependencies · 2 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 UI Tweaks

Small configurable UI tweaks for polishing Pi's interface.

Install

pi install npm:@zigai/pi-ui-tweaks

Configuration

Global settings are stored in ~/.pi/agent/extension-settings/pi-ui-tweaks.json.

Option Type Default Description
enabled boolean true Enable all UI tweaks.
autocompleteAboveInput boolean true Render autocomplete above the input editor.
bashExecPromptSpacing boolean true Add spacing around bash execution prompts.
anchorInputToBottom boolean false Anchor the input editor to the terminal bottom.
compactModelSelector boolean true Use compact model-selector rows.
hideAutocompleteScrollInfo boolean true Hide autocomplete scroll-position text.
hideModelChangeStatus boolean true Hide model-change status messages.
hideModelProviderHint boolean true Hide provider hints in the model selector.
hideSlashCommandSourceTags boolean true Hide source tags in slash-command completion.
highlightSelectedModelProvider boolean true Highlight the selected model provider.
inputPromptPrefix string "> " Prefix displayed before input text.
neutralBorderColor boolean true Use a neutral border color when Pi is idle.
pasteCollapseCharThreshold integer 1000 Character threshold that collapses pasted content.
pasteCollapseEnabled boolean true Collapse large pasted content.
pasteCollapseExpandKey null | string null Explicit key used to expand collapsed pasted content.
pasteCollapseLineThreshold integer 10 Line threshold that collapses pasted content.
pasteCollapseUseToolExpandKey boolean true Reuse Pi's configured tool-expansion key for pasted content.
preserveCompactionHistory boolean false Keep pre-compaction messages visible in transcript history.
restoreContentAfterAutocompleteClose boolean true Restore editor content after closing autocomplete.
selectedOptionPrefix string "→ " Prefix displayed before selected list options.
{
  "$schema": "./schemas/pi-ui-tweaks.schema.json",
  "enabled": true,
  "autocompleteAboveInput": true,
  "bashExecPromptSpacing": true,
  "anchorInputToBottom": false,
  "compactModelSelector": true,
  "hideAutocompleteScrollInfo": true,
  "hideModelChangeStatus": true,
  "hideModelProviderHint": true,
  "hideSlashCommandSourceTags": true,
  "highlightSelectedModelProvider": true,
  "inputPromptPrefix": "> ",
  "neutralBorderColor": true,
  "pasteCollapseCharThreshold": 1000,
  "pasteCollapseEnabled": true,
  "pasteCollapseExpandKey": null,
  "pasteCollapseLineThreshold": 10,
  "pasteCollapseUseToolExpandKey": true,
  "preserveCompactionHistory": false,
  "restoreContentAfterAutocompleteClose": true,
  "selectedOptionPrefix": "→ "
}

Render tracing

For intermittent repaint problems, start Pi with render tracing enabled:

PI_UI_TWEAKS_RENDER_TRACE=1 pi

The trace is written to ~/.pi/agent/pi-ui-tweaks/render-trace-<pid>.jsonl. It records row styles and terminal control operations without recording visible message text. Set PI_UI_TWEAKS_RENDER_TRACE_FILE to use a specific output path.

License

MIT