pi-claude-style-tui
v1.0.1
Published
A Claude Code-inspired TUI for Pi with per-run elapsed time and token telemetry.
Maintainers
Readme
pi-claude-style-tui
A Pi package that provides a Claude Code-inspired header, editor, footer, theme, and turn telemetry.
Installation
Install the package from npm:
pi install npm:pi-claude-style-tuiTo try it without adding it to your Pi settings:
pi -e npm:pi-claude-style-tuiUpdate or remove the package:
pi update npm:pi-claude-style-tui
pi remove npm:pi-claude-style-tuiFeatures
- Compact single-column welcome card
- Claude Code-inspired dark palette and prompt styling
- Straight input separators and
❯prompt markers - Safe
●markers for prose-first Assistant responses without breaking block Markdown - Compact
● Tool(args)/└ resultrows for Pi-owned built-in tools, with expandable output - Configurable footer with ordered Claude/Pi fields for model, context, workspace, session, usage, cache, cost, and duration
- Pi-compatible context alerts (
>70%warning,>90%error), cache totals, and session cost - Claude-style spinner verbs, mirrored
✻working-glyph animation, delayed elapsed time, and estimated output-token count - Persistent
<verb> for <duration>turn summaries - Slash-command highlighting
Development
npm install
npm run check
npm run typecheck
npm testRun directly from the checkout:
pi -e .Publishing
Validate the package contents and release checks before publishing:
npm pack --dry-run
npm publish --access publicnpm publish validates formatting, lint, import order, typecheck, and tests through the prepublishOnly script.
Commands
/exit— exit Pi; equivalent to/quit/statusline— toggle and reorder footer fields (Space,←/→,Enter); saves to~/.pi/agent/claude-code-tui.json/context— show a Claude-style context usage bar/reduced-motion [on|off]— disable shimmer and use a static working indicator; saves to the same config file- Fields: model, context, directory, cache, cost, session name/ID, transcript path, version, context remaining/window, input/output tokens, duration, and >200k warning
License
MIT
