← Catalog

@lwlee2608/pi-footer

A compact Pi footer with context, cost, cache usage, and a run timer.

Extension

Install

Install with PiG

pig install npm:@lwlee2608/pi-footer

Install with Pi

pi install npm:@lwlee2608/pi-footer
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.

{
  "image": "https://github.com/lwlee2608/pi-extensions/releases/download/media/footer-demo.png",
  "extensions": [
    "./src/index.ts"
  ]
}

README

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

A muted, two-line footer for Pi. Enabled automatically in interactive mode, using your current theme. No special font required.

Pi footer showing provider, model, thinking level, context bar, token usage, cost, cache ratio, timer, and the project path with Git branch

(velocirouter) gpt-6-astra-fast [high] [━━━━━━━━────────────] 40% 280k / 700k tokens • $17.37 (98% cached, 475.6k new) • 19s
~/src/project (main) • extension statuses

Install

pi install npm:@lwlee2608/pi-footer

Run /reload after installation. Requires Node.js 22.19 or newer and Pi 1.0.0.

Display

  • Provider, model, and thinking: the active provider, model ID, and thinking level. Uses Pi's provider field, not the vendor label in the model's display name. The thinking level uses the same theme color as Pi's editor border.
  • Context: a 20-cell progress bar with bright filled cells and a muted empty track, percentage, and estimated tokens / context window. The fill uses the theme's text color for contrast on dark and light backgrounds, turning to the warning color above 70% and the error color above 90%. Unknown context (such as immediately after compaction) shows ?.
  • Cost: Pi's reported cost for the active session branch, including tool, compaction, summary, and background usage entries. This is an estimate, not a subscription bill.
  • Cache: cached input / total input across that branch. new is uncached input plus cache writes, excluding output tokens; it is cumulative, not the current context size.
  • Timer: elapsed wall time for the current or most recent agent run, including tools and retries, stopping when the agent settles. Resets on reload, session change, and tree navigation; historical run times are not restored.
  • Project: working directory (home abbreviated as ~), Git branch if present, and status messages from other extensions.

Usage figures update from persisted session entries, not individual streaming token deltas. Lines truncate to fit narrow terminals. RPC, JSON, and print modes are unchanged.

This replaces Pi's default footer. Do not enable another footer replacement at the same time. Remove this package and run /reload to restore the default.

License

MIT