@earendil-works/pi-coding-agent
1.6.0 · 20 Nov 2026MIT6.6M / weekRepositoryHomepagenpmAtom feed
0.99.2 is the newest release of 0.77.x.
In short
8 new18 fixed
Security
4 advisories affect 0.77.0; 0.78.1 fixes the others
- HighPi Agent: Predictable temporary extension install paths allow local privilege escalation on shared Linux hostsGHSA-jfgx-wxx8-mp94 · 17 Jun 2026Fixed in 0.78.1
- ModeratePi Agent: Pi loads project-local extensions without approvalGHSA-mqxh-6gq7-558m · 17 Jun 2026No fix yet
- LowPi Agent: Race condition in Pi auth.json writes could expose stored credentialsGHSA-r95r-rj6r-c39x · 17 Jun 2026Fixed in 0.78.1
- LowPi Agent: Potential XSS in HTML session exports via Markdown URL sanitization bypassGHSA-7v5m-pr3q-6453 · 16 Jun 2026Fixed in 0.78.1
Release note
New Features
Claude Opus 4.8 support - Adds Anthropic Claude Opus 4.8 metadata and updates Opus adaptive-thinking coverage.
Selective tool disablement -
--exclude-tools/-xtdisables specific built-in, extension, or custom tools while leaving the rest available. See Tool Options.Headless Codex subscription login -
/logincan use device-code auth for ChatGPT Plus/Pro Codex subscriptions. See Subscriptions and OpenAI Codex.Streaming-aware extension input - extensions can distinguish idle prompts, mid-stream steers, and queued follow-ups with
InputEvent.streamingBehavior. See Input Events.
Added
Added
--exclude-tools/-xtto disable specific built-in, extension, or custom tools while leaving the rest available (#5109).Added OpenAI Codex subscription device-code login as a selectable headless alternative while keeping browser login as the default
Added
streamingBehaviorto extension input events so extensions can distinguish idle prompts from mid-stream steers and queued follow-upsAdded Claude Opus 4.8 model metadata for Anthropic and updated Opus adaptive-thinking coverage to use it.
Fixed
Fixed startup timing output so
readPipedStdinno longer includescreateAgentSessionRuntimework (#4829).Fixed OpenRouter DeepSeek V4
xhighreasoning metadata to preserve OpenRouter's native effort instead of sending DeepSeek'smaxeffort (#4801).Fixed custom session directories so current-folder resume/continue lookups stay scoped to the active cwd while all-session listings cover the custom directory.
Fixed SIGTERM/SIGHUP exits to run extension
session_shutdowncleanup and restore the terminal: signal-triggered shutdown now emitssession_shutdownbefore any terminal writes, and SIGHUP no longer hard-exits, so extension resources (e.g. sockets) are released even when the terminal is gone (#5080).Fixed keyboard protocol negotiation to ignore mismatched or delayed terminal responses, avoiding false Kitty keyboard protocol detection
Fixed Windows startup crashes under MSYS2 ucrt64 Node.js by updating the native clipboard addon to napi-rs 3.x (#5028).
Fixed API key and header config resolution to treat plain strings as literals, support
$ENV_VAR/${ENV_VAR}interpolation and$!bang escaping, and require explicit env syntax for config files, avoiding Windows case-insensitive env matches corrupting literal keys (#5095).Fixed session disposal to abort in-flight agent, compaction, branch summary, retry, and bash work
Fixed
pi.getAllTools()to expose each tool'spromptGuidelinesfor extensions that need per-tool guideline attribution (#4879).Fixed OpenAI Codex Responses replay after switching from Anthropic extended-thinking sessions by generating unique fallback message item IDs for converted thinking/text blocks (#5148).
Fixed Anthropic-compatible replay for providers that return empty thinking signatures by adding an opt-in
allowEmptySignaturecompatibility flag (#4464).Fixed OpenAI and OpenRouter GPT-5.5 Pro thinking level metadata to expose only supported medium, high, and xhigh efforts.
Fixed OpenCode Go Kimi K2.6 thinking-off requests to send
thinking: "none"(#5078).Fixed Xiaomi Token Plan model metadata to omit unsupported
mimo-v2-flashvariants (#5075).Fixed follow-up messages queued by
agent_endextension handlers to drain before the agent becomes idleFixed extension input events to report
streamingBehavioronly for prompts actually queued during streamingFixed system prompt tool-selection guidance to avoid preferring unavailable file exploration tools (#5132).
Fixed fenced
diffcode blocks and other highlight.js scopes to keep theme-aware syntax colors after thecli-highlightreplacement (#5092).
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.