pi v1.5.1 ships shell credential commands, idle cache warming, Anthropic message threads, and two breaking changes
pi v1.5.1 is the first release since v1.5.0 shipped on November 2, and it gathers the merge wave this site covered through November 8 into a tagged minor: per the release notes, six new features, two breaking changes, twelve additions, seven changes, and seventy-two fixes.
New features. pi auth login <provider> and pi auth logout <provider> manage credentials from the shell without starting a session, with --api-key and --no-browser options; logging in to Radius also configures the Radius MCP server. Idle prompt cache warming keeps eligible caches warm for up to 30 minutes between runs, only when a refresh is expected to pay for itself — and cacheWarming now defaults to "idle" instead of "streaming", with consecutive warms reporting as one cumulative Cache warmed: $ line. Anthropic sessions use message threads: requests send only the new messages while the server continues the conversation, falling back to the full request when earlier context changes; on by default for anthropic on api.anthropic.com, compat.supportsMessageThreads in models.json turns it on for gateways that forward the thread field, or off. The Mermaid renderer draws pie charts, author-defined styles, and clickable labels on supported terminals, now including diagrams in expanded branch and compaction summaries, with pi.registerMarkdownTransformer() gaining a { messageTypes } switch over the surfaces it runs on. GitHub Copilot exposes the Microsoft-Decision-1 classifier through codemode models.classify(), and pi update --extensions reports each package’s npm version or git commit change, distinguishing unchanged, skipped, and warned updates.
Two breaking changes. Custom GrepOperations.readFile callbacks are no longer called for context lines — the field remains accepted as optional and deprecated, the grep tool now takes context from ripgrep instead of reading matched files itself, and remote search is served by overriding grep’s execute(). OpenAI-compatible models no longer send "tools": [] when all tools are disabled in a session that has used tools, which fixes tools must not be an empty array 400 errors from vLLM 0.20+, also behind LiteLLM; proxies that still require tools once the history has tool calls can set compat.requiresToolsWithToolHistory: true for that model in models.json.
Defaults move. The anthropic provider’s default is Claude Opus 5.5 (claude-opus-5-5) instead of Claude Opus 4.8, and other providers move to newer defaults at the same or a lower price: Claude Opus 5.5 on amazon-bedrock, GPT-6.1 Sol on azure, Gemini 4 Argon on google and google-vertex, GLM 5.3 on vercel-ai-gateway and baseten, MiniMax-M3 on minimax and minimax-cn, Qwen3.8 Max on qwen-token-plan and qwen-token-plan-cn, Kimi K3.1 Pro on opencode-go, and Kimi K2.7 Code instead of K2.6 on moonshotai, moonshotai-cn, huggingface, opencode, openrouter, cloudflare-workers-ai, and cloudflare-ai-gateway. The /login and /logout provider lists now show the partners Radius and OpenRouter first, marked with ✦.
Also added. Claude Fable 5.2 (claude-fable-5-2) joins the anthropic provider at $8/$40 per million input/output tokens with 1M context and 128K output; like Fable 5.1 it uses per-message effort and mid-conversation system messages, and requests its safety classifiers refuse before any output are answered by Claude Opus 5 through server-side fallback, billed at Opus 5’s price. A qwen-token-plan-individual-cn provider targets Qwen’s China endpoint via QWEN_TOKEN_PLAN_CN_API_KEY, compat.promptCacheKeyMode enables or omits prompt cache keys per endpoint, compat.requiresNonNullAssistantContent sends "" instead of null after tool-only assistant messages, and read/write views highlight Dart, Nix, Groovy, and Gradle.
Among the seventy-two fixes: the read tool streams files instead of loading them whole (#9654); grep globs resolve relative to path, and a leading ./ is ignored rather than matching nothing (#11807, #10998); OpenRouter’s tokenizer-driven 400s no longer masquerade as context overflow — the default output limit leaves 15% of the estimated input unused and requests at most 32,768 output tokens near a full window (#10497); Azure GPT-6 models regain their 1,050,000-token Foundry window (#11742) and the long-context price tier (#11948); Windows gets installer, powershell exit-code, Ctrl+V paste, and fd pattern fixes (#11944, #8842, #11765, #9262); and an image-resize worker overlap behind zsh: abort on macOS arm64 is defused at about 15 ms per image (#10695).
The package published to npm as 1.5.1 at 23:45 UTC on November 9, with the GitHub release page following minutes later. v1.5.2 shipped the next day and has its own entry in this feed.
source: https://github.com/earendil-works/pi/releases/tag/v1.5.1