Pi 1.7.0
New version of pi. Download from npm or view release on GitHub.
New Features
- Terminal session resume: Compatible terminals can reopen the current pi session after a restart with its original profile, tool restrictions, and instructions.
- Image generation in codemode: Generate images with Radius, or set the aspect ratio and size when using OpenRouter image models.
- GitHub Copilot prompt caching: Changing the thinking level preserves the prompt cache on supported Claude 5.x and GPT-6 models. Supported Claude 5.x models also keep the cache when tools change, and Copilot Claude models support cache warming.
Breaking Changes
- Removed telemetry reporting from pi for new installs and updates (
/api/report-install), theenableInstallTelemetrysetting (SettingsManager.getEnableInstallTelemetry()/setEnableInstallTelemetry()), andPI_TELEMETRY
Added
- Added program resume through the Program Resume Protocol (OSC 7577): in terminals that set
OSC7577_TOKEN, interactive mode reportspi --session <id>for the current session, so the terminal can bring it back after it restarts. Pi removes the token from the environment of every process it starts. See Terminal setup - Added optional
{ aspectRatio, size }as the third argument to codemodemodels.generateImages() - Added
--agent-dir <dir>, the command-line form ofPI_CODING_AGENT_DIR. The resume command pi prints on exit and reports through OSC 7577 now includes it when the config directory is not~/.pi/agent. Without it, a session started withPI_CODING_AGENT_DIRcame back with the default directory's settings and auth: a terminal resumes the command without the environment pi was started in. This is for setups that keep a separate pi profile per project, for example a shell function that setsPI_CODING_AGENT_DIRfor one directory tree. Terminals that resume programs, such as Rex, need a rule that trusts the longer command; see Terminal setup - The OSC 7577 resume command now repeats the restriction and resource flags pi was started with (
--tools,--no-extensions,-e,--skill,--system-prompt, and similar), as typed, so a terminal cannot resume a session with other tools or instructions, possibly more access, than it had. The command printed on exit is unchanged. A terminal rule must trust each flag combination; see Terminal setup - Added Radius image generation to codemode. Radius image and classifier models are now listed in the built-in catalog as well as through provider discovery
Changed
- The default model for
cloudflare-workers-aiandcloudflare-ai-gatewayis now@cf/zai-org/glm-5.3, because Cloudflare deprecated Workers AI Kimi K2.6 and K2.7 Code - Changed the
ant-lingdefault model from the retiredRing-2.6-1TtoLing-3.1-flash. Existingmodels.jsonfiles can keepthinkingFormat: "ant-ling"as a deprecated alias for"deepseek"(#11800 by @lvisei) - Replaced the retired
qwen4-max-previewwithqwen4-maxon Qwen Token Plan Individual - Preserved the GitHub Copilot prompt cache when changing thinking levels on supported Claude 5.x and GPT-6 models or changing tools on supported Claude 5.x models. Copilot Claude models now support cache warming, and GPT-5.3 Codex and MAI-Code receive mid-conversation system messages where they take effect (#12316)