pi-glance

A calm input surface for Pi with a rounded multiline editor and adaptive status glance.

Packages

Package details

extension

Install pi-glance from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-glance
Package
pi-glance
Version
0.6.6
Published
Sep 5, 2026
Downloads
1,089/mo · 922/wk
Author
linys77
License
MIT
Types
extension
Size
217.8 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ],
  "image": "https://raw.githubusercontent.com/LinYS77/pi-glance/main/assets/themes.gif"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

◌ pi-glance

A calm input surface for Pi.

A rounded multiline editor with an adaptive glance at Git, cost, model speed, context, tokens, and model.

English · 简体中文

npm CI license pi

Install

# Try it for one session
pi -e npm:pi-glance

# Or install it
pi install npm:pi-glance

Restart Pi or run /reload.

What it adds

  • Rounded editor — keeps Pi's editing, history, autocomplete, and keybindings.
  • Adaptive glance — Git · Cost · Model speed · Context · Tokens · Model.
  • 22 palettes — separate light and dark choices, previewed live.
  • One settings pane — everything display-related lives under /glance.
  • Quiet by default — plain icons, no telemetry, and no runtime dependencies.

Configure

Run:

/glance

Changes preview live. Press D to see how the status line folds at full, compact, and minimal widths.

Notes

  • Plain icons work with normal terminal fonts. Nerd Font icons are optional in /glanceGeneralIcons.
  • Pi provides one custom-editor slot, so the last editor extension loaded wins.
  • Built and tested with Pi 0.84.4 on Node.js 22.19.0 or newer.
  • Glance follows Pi's terminal truecolor capability and falls back to ANSI 256 colors.
  • Context warning colors follow Pi's reported percentage, including in tokens-only display.
  • Bash input (! / !!) retains Pi's native border color; normal prompts keep the selected Glance palette.
  • Uses only public Pi extension APIs.

Update

pi update npm:pi-glance

Contributing

Issues and pull requests are welcome. CONTEXT.md is the maintained source map and design reference.

Implementation lives in src/; behavior tests and independent visual fixtures live in tests/. The Pi entry remains index.ts.

npm ci
npm run check
npm test
npm run pack:dry

License

MIT © 2026 linys77