@erlin-ai/pi-footer-wrap

Adaptive-wrapping footer for the pi coding agent: takes over the default footer and wraps extension statuses across lines instead of truncating them. No data is dropped.

Packages

Package details

extension

Install @erlin-ai/pi-footer-wrap from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@erlin-ai/pi-footer-wrap
Package
@erlin-ai/pi-footer-wrap
Version
0.2.0
Published
Oct 2, 2026
Downloads
576/mo · 20/wk
Author
erlinerd
License
MIT
Types
extension
Size
25.2 KB
Dependencies
0 dependencies · 1 peer
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-footer-wrap

CI License: MIT

English | 中文

Adaptive-wrapping footer for the pi coding agent. Takes over the default footer with exactly one behavior change: wrap when it doesn't fit — never truncate.

The default footer squeezes all extension statuses onto a single line and cuts them off with … when the terminal is too narrow — with many extensions installed, data silently disappears. This plugin re-renders the same three lines:

~/code/xxx (main) • session name
↑12k ↓3.4k R45k W1k CH88.8% $0.123 45.6%/200k (auto)     glm-5.3-flash • max
45.2 tok/s · mcp: 8 tools ready · lf: tracing on · …
  • Line 1: cwd (~ abbreviated), git branch, session name
  • Line 2: cumulative ↑input ↓output, R/W cache, cache-hit rate, cost, context usage (recolors past 70%/90%), model name + thinking level on the right
  • Line 3+: all extension statuses, sorted by key; wraps onto new lines when out of width, hard-wraps single over-wide statuses — nothing is dropped

Data sources and formatting mirror the pi 0.85.x default footer field by field (sessionManager entries, getContextUsage, ctx.thinkingLevel, PI_EXPERIMENTAL, the kimi (sub) marker, …) — only the wrapping strategy differs.

Install

pi install github:erlinerd/pi-footer-wrap      # GitHub
pi install npm:@erlin-ai/pi-footer-wrap     # npm
pi install /path/to/pi-footer-wrap          # local development

Takes effect in new sessions.

Toggle

/footer-wrap   # switch back to pi's default footer; run again to re-enable

Development

npm install
npm test        # tsx --test
npx tsc --noEmit

License

MIT