Insights view shows cost-weighted hints for parallel sessions, large context,
uncached prompts, long sessions, and top-session concentration.
No UI context:
command returns without rendering.
Markdown source
# usageLocal usage statistics dashboard for Pi.
## Install / loadLoaded through the root pi-ext package.
See [../../README.md](../../README.md).
## Commands / tools / settings- Command:
`/usage` — show usage statistics dashboard.
- Tools:
none.
- Hooks:
none.
- Settings:
none.
## Behavior- Reads local Pi session JSONL files across all projects by scanning the parent
of the current session dir.
- Parses assistant messages with `usage`, `provider`, and `model` fields.
- Aggregates sessions, messages, cost, tokens, input, output, and cache by
provider and model.
- Period tabs:
Today, This Week, Last Week, All Time.
- Table keys:
`Tab`/`←`/`→` switch period, `↑`/`↓` select provider, `Enter`/`Space` expand
models, `v` toggles insights, `q`/`Esc` closes.
- Insights view shows cost-weighted hints for parallel sessions, large context,
uncached prompts, long sessions, and top-session concentration.
- No UI context:
command returns without rendering.