@mariozechner/pi-coding-agent
0.73.1 · 7 May 2026MIT443.1k / weekRepositoryHomepagenpmAtom feed
0.73.1 is the newest release of 0.63.x.
In short
2 breaking5 new13 fixed
- Breaking
ModelRegistry.getApiKey(model)has been replaced bygetApiKeyAndHeaders(model)becausemodels.jsonauth and header values can now resolve dynamically on every request. Extensions and SDK integrations that previously fetched only an API key must now fetch request auth per call and forward bothapiKeyandheaders. UsegetApiKeyForProvider(provider)only when you explicitly want provider-level API key lookup without model headers orauthHeaderhandling - Breaking
Removed deprecated direct
minimaxandminimax-cnmodel IDs, keeping onlyMiniMax-M2.7andMiniMax-M2.7-highspeed. Update pinned model IDs to one of those supported direct MiniMax models, or use another provider route that still exposes the older IDs
Security
3 advisories affect 0.63.0
- HighPi Agent: Predictable temporary extension install paths allow local privilege escalation on shared Linux hostsGHSA-jfgx-wxx8-mp94 · 17 Jun 2026No fix yet
- LowPi Agent: Race condition in Pi auth.json writes could expose stored credentialsGHSA-r95r-rj6r-c39x · 17 Jun 2026No fix yet
- LowPi Agent: Potential XSS in HTML session exports via Markdown URL sanitization bypassGHSA-7v5m-pr3q-6453 · 16 Jun 2026No fix yet
Release note
Breaking Changes
- Breaking
ModelRegistry.getApiKey(model)has been replaced bygetApiKeyAndHeaders(model)becausemodels.jsonauth and header values can now resolve dynamically on every request. Extensions and SDK integrations that previously fetched only an API key must now fetch request auth per call and forward bothapiKeyandheaders. UsegetApiKeyForProvider(provider)only when you explicitly want provider-level API key lookup without model headers orauthHeaderhandling - Breaking
Removed deprecated direct
minimaxandminimax-cnmodel IDs, keeping onlyMiniMax-M2.7andMiniMax-M2.7-highspeed. Update pinned model IDs to one of those supported direct MiniMax models, or use another provider route that still exposes the older IDs
Migration Notes
Before:
const apiKey = await ctx.modelRegistry.getApiKey(model);
return streamSimple(model, messages, { apiKey });After:
const auth = await ctx.modelRegistry.getApiKeyAndHeaders(model);
if (!auth.ok) throw new Error(auth.error);
return streamSimple(model, messages, {
apiKey: auth.apiKey,
headers: auth.headers,
});Added
Added
sessionDirsetting support in global and projectsettings.jsonso session storage can be configured without passing--session-diron every invocationAdded a startup onboarding hint in the interactive header telling users pi can explain its own features and documentation
Added
edittool multi-edit support so one call can update multiple separate, disjoint regions in the same file while matching all replacements against the original file contentAdded support for
PI_TUI_WRITE_LOGdirectory paths, creating a unique log file (tui-<timestamp>-<pid>.log) per instance for easier debugging of multiple pi sessions
Fixed
Fixed file mutation queue ordering so concurrent
editandwriteoperations targeting the same file stay serialized in request order instead of being reordered during queue-key resolutionFixed
models.jsonshell-command auth and headers to resolve at request time instead of being cached into long-lived model state. pi now leaves TTL, caching, and recovery policy to user-provided wrapper commands because arbitrary shell commands need provider-specific strategiesFixed Google and Vertex cost calculation to subtract cached prompt tokens from billable input tokens instead of double-counting them when providers report
cachedContentTokenCountAdded missing
ajvdirect dependency; previously relied on transitive install via@mariozechner/pi-aiwhich broke standalone installsFixed
/exportHTML backgrounds to honortheme.export.pageBg,cardBg, andinfoBginstead of always deriving them fromuserMessageBgFixed interactive bash execution collapsed previews to recompute visual line wrapping at render time, so previews respect the current terminal width after resizes and split-pane width changes
Fixed RPC
get_session_statsto exposecontextUsage, so headless clients can read actual current context-window usage instead of deriving it from token totalsFixed
pi updatefor git packages to fetch only the tracked target branch with--no-tags, reducing unrelated branch and tag noise while preserving force-push-safe updatesFixed print and JSON modes to emit
session_shutdownbefore exit, so extensions can release long-lived resources and non-interactive runs terminate cleanlyFixed GitHub Copilot OpenAI Responses requests to omit the
reasoningfield entirely when no reasoning effort is requested, avoiding400errors from Copilotgpt-5-minirejectingreasoning: { effort: "none" }during internal summary callsFixed blockquote text color breaking after inline links (and other inline elements) due to missing style restoration prefix
Fixed slash-command Tab completion from immediately chaining into argument autocomplete after completing the command name, restoring flows like
/modelthat submit into a selector dialogFixed stale content and incorrect viewport tracking after TUI content shrinks or transient components inflate the working area
Fixed
@autocomplete to debounce editor-triggered searches, cancel in-flightfdlookups cleanly, and keep suggestions visible while results refresh
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.