@zerosnow/pi-zero

Curated pi extension suite: powerline status bar + random vibe + token/elapsed-time stats, /context, and ccstyle tool rendering

Packages

Package details

extension

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

$ pi install npm:@zerosnow/pi-zero
Package
@zerosnow/pi-zero
Version
0.2.5
Published
Aug 19, 2026
Downloads
787/mo · 41/wk
Author
zerosnow
License
MIT
Types
extension
Size
452.1 KB
Dependencies
2 dependencies · 3 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

pi-zero

A curated pi extension suite that combines the best of pi-powerline-footer and pi-cc-extensions into a single, lean package — without bash mode, queue, stash, shortcuts, welcome page, or other extras.

Features

Module Feature Entry
powerline Powerline-style status bar (git branch, token usage, model, context %) automatic
vibe Random themed working-message (file or generate mode), merged with token / elapsed-time stats automatic
context Context-window usage inspector with System Prompt / Tools / Skills preview /context
ccstyle Claude Code style tool rendering (collapse / compact / animation / rich diff) + compact thinking /ccstyle
shared Generic helpers (getAgentPath, showTextPreview) shared across modules

Install

Install from npm as a pi package:

pi install npm:@zerosnow/pi-zero

Then run /reload in the pi TUI.

Requires Node.js >= 22.19.

Commands

Command Description
/context Show context-window distribution; press Enter/click to preview parts
/ccstyle [on|off|compact|status|panel] Switch or configure Claude Code style tool rendering
/vibe [theme|off|mode|model|generate] Configure the working-message vibe
/powerline [on|off|preset|placement] Toggle the status bar on/off, or set its preset / placement

Configuration

Global config lives in ~/.pi/agent/settings.json. pi-zero reads these keys:

  • workingVibe, workingVibeMode, workingVibeModel — vibe theme, mode (file/generate), model
  • powerline — status bar preset, placement, disabledSegments, customItems, etc.
  • workingVibeShimmer — shimmer sweep animation (handled by a separate local extension)

Runtime dependencies

compact-thinking needs jiti (regular dependency) and pi-compact-thinking (a pi package, shipped as a bundled dependency). When installed via pi install npm:@zerosnow/pi-zero, pi runs npm install, so these are installed automatically — no manual setup needed.

Syntax highlighting for write diffs is provided by @shikijs/cli, shipped as an optional dependency. When it is available, ccstyle colors code blocks in diff previews; if it cannot be installed, highlighting gracefully falls back to plain rendering.

Structure

pi-zero/
├── index.ts            entry (loaded by pi auto-discovery)
├── shared/             generic helpers shared across modules
├── powerline/          status bar
├── vibe/               random working-message
├── context/            /context inspector
└── ccstyle/            Claude Code style tool rendering (+ tool-diff/)

Compatibility & Notes

  • ccstyle patches pi's tool rendering (similar to fixed-editor); if you ever see layout issues, run /ccstyle off to fall back to native rendering.
  • Long-session responsiveness. compact-thinking's thinking preview is cached by content, so typing and deletion stay responsive even in very long sessions with many large thinking blocks.
  • Fixed editor is not included, and the fixed-editor-only tool-mouse interaction (hover/click/scroll affordances) has been removed.
  • Multiple pi processes are isolated: state is process-local (global symbols), and session boundaries are cleaned on session_start.

Acknowledgements

License

MIT (for the pi-zero-specific composition; see individual attributions above).