← Catalog

pi-minimal-statusbar

Minimal pi footer: cwd, git branch, model with thinking level, tps/ttft/cache stats, quota, goal, and a context usage bar.

Extension

Install

Install with PiG

pig install npm:pi-minimal-statusbar

Install with Pi

pi install npm:pi-minimal-statusbar
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.7 (README.md). PiG does not review it.

pi-minimal-statusbar

npm license CI

A minimal pi footer that shows only what matters.

Left:  ~/path/to/project git:branch± • provider/model (thinking) • goal
Right: 12.3 t/s • 1.20s ttft • cache:87% • $1.23/$10 • [####.........] 40% (128K)

Part of the pi-extensions monorepo.

中文文档

Features

  • Current directory (with ~ for home), git branch with dirty marker.
  • Model name, provider, and thinking level colored by effort.
  • Real-time tokens/s (run-weighted end-to-end throughput: message start to end, so queueing and first-token latency count and tool time does not), time-to-first-token, and session-cumulative cache hit rate (matches /session). Buffered/non-streaming responses are excluded instead of counted at a collapsed window.
  • Quota status from other extensions (e.g. pi-sub2api-provider) and arbitrary extension statuses via ctx.ui.setStatus().
  • Context usage bar with color gradient (green → yellow → orange → red).
  • Adaptive responsive layout: dynamically folds low-priority elements on narrow terminals to strictly prevent wrapping and stay on a single line.

Installation

pi install npm:pi-minimal-statusbar

Or add it to ~/.pi/agent/settings.json:

{
  "packages": ["npm:pi-minimal-statusbar"]
}

Configuration

All options are optional; defaults are shown below. Configure under the minimal-footer key of the global ~/.pi/agent/settings.json or a project .pi/agent/settings.json (project overrides global):

{
  "minimal-footer": {
    "showCwd": true,
    "showGit": true,
    "showModel": true,
    "showThinking": true,
    "showTps": true,
    "showTtft": true,
    "showCacheStats": true,
    "hideZeroCache": false,
    "showQuota": true,
    "showGoal": true,
    "showContextBar": true,
    "showContextPercent": true,
    "showContextWindowSize": true,
    "extensionStatuses": true,
    "hiddenExtensionStatuses": ["debug-info"]
  }
}
KeyDefaultDescription
showCwdtrueShow current directory
showGittrueShow git branch (+ ± dirty marker)
showModeltrueShow provider/model
showThinkingtrueShow thinking level (colored by effort)
showTpstrueShow tokens per second (weighted over generation time, tool time excluded)
showTtfttrueShow time to first token
showCacheStatstrueShow session-cumulative cache hit rate (matches /session)
hideZeroCachefalseHide cache stats when cache hit rate is 0%
showQuotatrueShow quota status from other extensions
showGoaltrueShow the goal status entry
showContextBartrueShow context usage bar
showContextPercenttrueShow context usage percentage
showContextWindowSizetrueShow context window size (e.g. 128K)
extensionStatusestrueShow other extension statuses: true (all), false (none), or a string[] allowlist
hiddenExtensionStatuses[]Hide specific status keys even when extensionStatuses is true

Quota integration

The footer picks the quota status entry matching the active provider (keys like quota:<provider>, <provider>-quota, ...), falling back to quota, sub2api-quota, or any quota|usage|billing|limit key. This lets several quota extensions coexist while only the active provider's quota is shown.

Development

From the monorepo root:

cd /Users/derek/workspaces/pi-extensions
npm install
npm run check
npm run pack:dry-run

License

MIT © dereknex