@zigai/pi-tree

Pi package that customizes session tree display with timestamps and preview behavior.

Packages

Package details

extension

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

$ pi install npm:@zigai/pi-tree
Package
@zigai/pi-tree
Version
0.1.1
Published
Jun 3, 2026
Downloads
not available
Author
zigai
License
unknown
Types
extension
Size
31.2 KB
Dependencies
0 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 Tree

Pi extension for customizing session tree display.

Install

pi install @zigai/pi-tree

Features

  • Adds per-entry timestamps to /tree.
  • Supports off, relative, and absolute timestamp modes.
  • Reuses Pi's tree label-timestamp keybinding to cycle modes.
  • Adds an optional selected-entry preview pane on the right side of /tree.
  • Toggles the preview pane with Shift+P; it is off by default.
  • Persists the selected timestamp mode in Pi settings as treeTimestampMode.
  • Persists the preview pane toggle in Pi settings as treeSelectedPreview.
  • Supports optional treeMaxVisibleLines in Pi settings to allow taller /tree lists and longer previews; when unset, Pi's native height is used, and configured values are clamped to a minimum of 5.
  • Supports optional treePreviewFullHeight in Pi settings. It defaults to true, keeping preview mode at the full configured height even when the selected preview has fewer lines; set it to false to shrink to the preview content height.

Development

npm install
npm run check