New version of pi. Download from npm or view release on GitHub.
Added
- Added thinking level persistence. Default level stored in
~/.pi/settings.json, restored on startup. Per-session overrides saved in session files.
- Added model cycling shortcut:
Ctrl+I cycles through available models (or scoped models with -m flag).
- Added automatic retry with exponential backoff for transient API errors (network issues, 500s, overload).
- Cumulative token usage now shown in footer (total tokens used across all messages in session).
- Added
--system-prompt flag to override default system prompt with custom text or file contents.
- Footer now shows estimated total cost in USD based on model pricing.
Changed
- Replaced
--models flag with -m/--model supporting multiple values. Specify models as provider/model@thinking (e.g., anthropic/claude-sonnet-4-20250514@high). Multiple -m flags scope available models for the session.
- Thinking level border now persists visually after selector closes.
- Improved tool result display with collapsible output (default collapsed, expand with
Ctrl+O).
Read more