vault / earendil-pi / v1.8.0
earendil-pi @ v1.8.0
integrity
- size
- 24.3 MiB
- downloaded
- last checked
release notes
New Features
- MCP 2026-07-28: Pi speaks the stateless MCP revision with servers that reject
initialize, or with any server when"protocol": "2026-07-28"is set. - mcp.json schema: Add
"$schema": "https://pi.dev/schemas/mcp.schema.json"tomcp.jsonfor editor validation and completion. - Unloaded llama.cpp models in
/model: When the router autoloads models,/modellists models from the Hugging Face cache and--models-dir, not only presets. - OpenRouter
/imagesmodels: Codemode image generation supports OpenRouter image models that are served only onPOST /images. pi.appendUsage(): Extensions can record model usage that the session's messages do not carry, such as a subagent's; the footer's cost and session stats count it.
Breaking Changes
getShellConfig()returnscommandTransport: "env"for Git Bash and otherbash.exeon Windows, except WSL launchers: the command goes in the environment variable named by the newSHELL_COMMAND_ENV_VARexport, not afterargs. Extensions that spawn the shell fromgetShellConfig()must set that variable; appending the command toargsfails with an error (#12340)SessionManager.open(path)withoutsessionDirnow creates new sessions (/new,/fork,/clone) in the default directory of the session's cwd instead of the opened file's folder. Pass the folder assessionDirto keep the old behavior.usesDefaultSessionDir()now says whether a custom session directory was given, rather than comparing folders- Renamed OpenRouter's chat-completions image API from
openrouter-imagestoopenrouter-chat-images;openrouter-imagesnow means OpenRouter'sPOST /imagesendpoint. Custommodels.jsonentries with"api": "openrouter-images"for chat-completions image models must switch toopenrouter-chat-images. Image models saved in the model store by pi 1.7.0 are migrated on load
Added
- Added
SessionManager.getCustomSessionDir(), the custom session directory (--session-dir,PI_CODING_AGENT_SESSION_DIRor thesessionDirsetting), orundefinedfor default storage - Added MCP
2026-07-28, the stateless revision. Pi still starts every connection withinitialize, so existing servers work as before. Servers that rejectinitializeare spoken to with2026-07-28, and their tool list changes are followed withsubscriptions/listen; a stdio server that exits or refusesserver/discoverafter rejectinginitializeis started once more."protocol": "2026-07-28"inmcp.jsonuses it with servers that speak both revisions. See Protocol versions. Based on #12479 by @dmmulroy (#10416) - Added
pi.appendUsage()so extensions can record model usage that the session's messages do not carry, such as a subagent's; the footer's cost and session stats count it (#12654, based on introspection-org/pi#2 by @brightsparc) - Published a JSON schema for
mcp.json: add"$schema": "https://pi.dev/schemas/mcp.schema.json"for editor validation and completion (#12563) - Added OpenRouter image models that are served only on
POST /imagesto codemode image generation, through the newopenrouter-imagesAPI - Added the decision models
jev-1.14,gemini-decision-1andgpt-6-luna-decisionfrom OpenCode Go (billed to the Go subscription) and OpenCode Zen formodels.classify()in codemode andctx.modelRegistry.classify()in extensions; Zen'sjev-1.13andjev-1.13-freenow also take images (#12484) - Added Baseten's decision models (bison-1, groundhog-1, elephant-1, mammoth-1, joey-1) for
models.classify()in codemode andctx.modelRegistry.classify()in extensions (#12712)
Changed
/modelnow lists unloaded llama.cpp models from the Hugging Face cache and--models-dir, not only presets, when the router autoloads models; the router loads the selected model on the first request (#12730 by @julien-c)- Changed the
opencodedefault model from the removedkimi-k2.7-codetokimi-k3.1-pro - Updated
cross-spawnto 7.1.2 for GHSA-ghv9-86vm-4v8m (command injection when spawning batch files throughcmd.exeon Windows). On Windows, an MCPcommandwith embedded arguments (such as"npx -y foo") is now quoted as one command and fails, as it already did on Linux; put the arguments inargs(#12729) - Updated
minimatchto 11.0.9 for GHSA-cf2h-pxjq-68xw, GHSA-hqmv-qgp3-jx75 and GHSA-c859-jr93-m5j4 (slow compiling of long wildcard patterns, and memory growth from the pattern cache). Glob patterns in model selection, package filters andfindon Windows that would expand to more than 100,000 patterns now fail with an error instead of hanging
Fixed
- Fixed
/login llama.cppreporting that no models are loaded before its catalog refresh finished; the guidance now waits for the refresh and points to/modelwhen models are available (#12730 by @julien-c) - Fixed a session resumed with another working directory, for example after choosing "continue in current cwd" at the missing-cwd prompt, being treated as stored in a custom
--session-dir:/new,/forkand/clonesaved into the old project's folder,/resumeAll listed only that folder, and the resume hint added--session-dir./cloneand/forkof such a session also went back to the missing cwd. Opening a session no longer creates its session directory; it is created when the first session file is written. The resume hint for a session opened from outside the session directory (pi --session <path>) gives that path. Based on #11562 by @juanibiapina - Fixed WSL detection in terminals that start the shell without the WSL environment variables (for example from a systemd user service): the Windows keybinding defaults (
alt+vimage paste,ctrl+qfollow-up) and the footer's branch polling for repos under/mnt/<drive>now apply there too, because all WSL checks share one detection that falls back to/proc/version. - Fixed HTML export dropping the
$from the session cost and altering the embedded highlight.js, because$$and$&in inserted files were expanded as replacement patterns (#12608, #12609 by @acmerfight) - Fixed codemode
models.classify()andmodels.generateImages()not passing the current session ID - Fixed prefilled fields (the
/model <term>and/login <provider>search, session rename,/treelabels, and extension input dialogs with an initial value) opening with the cursor before the text, so/model sonfollowed by typingnetsearchednetson(#12676, #12677 by @acmerfight) - Fixed undo in dialogs that clear or prefill their input, such as the
/loginsteps and/scoped-modelssearch, skipping the cleared or prefilled value and restoring older text, and the next kill or yank mixing with text from before the change - Fixed
/treebranch summaries leaving out the selected user or custom message, which leaves the context and goes back to the editor, so the summary never said what the abandoned branch was asked to do.session_before_treehandlers now get that message inpreparation.entriesToSummarize, andpreparation.commonAncestorIdis its parent (#12576, #12577 by @acmerfight) - Fixed selecting a user or custom message that is the current leaf in
/treedoing nothing; it now moves to the message's parent and puts its text in the editor, like any other user message - Fixed bash commands running only partly, with exit code 0, under Git Bash on Windows when longer than about 8 KB or made of newline-separated words without spaces (#12340)
- Fixed pi exiting immediately when its terminal goes away without SIGHUP, such as a Windows console host that exits, without saving the aborted turn or emitting
session_shutdown. pi now runs the same session cleanup as for SIGHUP, without writing to the terminal, and exits with 129 after at most 5 seconds. The next start shows why pi exited, for examplepi exited on ... because its terminal went away (write EPIPE). An uncaughtEPIPEorEIOthat does not come from the terminal, such as a write to an exited child process, is now reported as a crash instead of exiting silently (#12317) - Fixed codemode scripts that declare
constorletnamedtoolsorconsolefailing withSyntaxError: invalid redefinition of parameter namebefore they ran (#11878 by @arajkumar) - Fixed unloaded llama.cpp models without a configured context size getting a 128000-token context window: Pi now uses the trained context length the router reports for them (
context_lengthinGET /models) - Fixed two
prompt()calls that reach an idle session in the same tick both starting a run, so the second failed withAgent is already processing a prompt; the second prompt now queues into the first run by itsstreamingBehavior(#12186) - Fixed shifted characters (uppercase letters,
",:) not being typed in dialogs and search boxes such as/login,/resume,/modeland/settingsin terminals using xtermmodifyOtherKeys(xterm, tmux, VS Code, GNOME Terminal, Apple Terminal), and/treesearch ignoring keys in those terminals and with the Kitty keyboard protocol (#12727, #12728 by @acmerfight) - Fixed Shift+Backspace and Shift+Delete doing nothing in dialogs, search boxes and
/treesearch with the Kitty keyboard protocol or xtermmodifyOtherKeys; they now delete as in the editor, through thetui.editor.deleteCharBackwardandtui.editor.deleteCharForwarddefaults (#12727) - Fixed the
overlay-testandoverlay-qa-testsexample extensions dropping keys sent as Kitty CSI-u or xtermmodifyOtherKeyssequences - Fixed
pi auth print-api-keyandprint-bearer-tokenwith--modeland no--providerfailing withModel "..." not foundwhen the key came from an environment variable or amodels.jsonapiKey(#12667) - Fixed every loaded skill keeping its whole
SKILL.mdin memory, once per live session (#12649) - Fixed OpenAI Codex WebSocket sessions resending the full history every turn once the output token limit shrank as the context grew (#12444)
- Fixed thinking signatures from Claude via OpenRouter or Bifrost (
openai-completions) being dropped or merged acrossreasoning_detailsentries (#9534, #12615) - Fixed Google
MALFORMED_RESPONSEstops (Provider stopped with: MALFORMED_RESPONSE) not being retried automatically (#12622) - Fixed OpenCode Go's request body limit (
decoded body exceeds 50331648 bytes) being retried instead of triggering compaction (#12625) - Fixed Amazon Bedrock
Too many tokensthrottling errors not being retried automatically (#12574 by @acmerfight) - Fixed
upstream_error: upstream SSE stream failedgateway errors not being retried automatically (#12605) - Fixed a second
/loginfor OpenAI Codex, Anthropic or Radius in the same process failing withState mismatch.and waiting until it timed out (#12724) - Fixed DeepSeek prompt updates being sent in the wrong form:
deepseek-flashnow gets them in place and keeps its cached prefix, anddeepseek-v4-progets one merged leading prompt (#12658) - Fixed Groq rejecting tool calls with HTTP 400
missing propertieswhen a model left out an optional argument (#12653) - Fixed Gemini 3+ answering follow-ups to tool calls with
400 INVALID_ARGUMENTon Gemini-compatible hosts that return URL-safe base64 thought signatures (#12637) - Fixed the TUI rendering without colors under GNU screen when an inherited
COLORTERMadvertised truecolor; pi now uses 256 colors there unlessPI_TRUE_COLOR=1orterminal.trueColoropts in (#10618) - Fixed quoted lists losing the quote color after the bullet, and HTML and LaTeX blocks inside quotes not using the quote color (#12663)
- Fixed
@file autocomplete passing queries that start with-tofdas options, so@-testshowed nothing and@-ulisted ignored files (#12719, #12720 by @acmerfight)
download
unix · zip
curl -fL -o v1.8.0.zip https://ratatoskr.space/pkg/earendil-pi/v1.8.0.zip
printf '%s %s\n' 'a22635ce5e093a8792c14dbdd0e5a43303866b050b8f36dd7d97b63b5a1ceb37' 'v1.8.0.zip' | sha256sum -c -
windows · zip
$url = "https://ratatoskr.space/pkg/earendil-pi/v1.8.0.zip"
$out = "v1.8.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "a22635ce5e093a8792c14dbdd0e5a43303866b050b8f36dd7d97b63b5a1ceb37") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v1.8.0.tar.gz https://ratatoskr.space/pkg/earendil-pi/v1.8.0.tar.gz
printf '%s %s\n' 'ccbf40533671f4cdd0a487275d1d074738a82763039159480c166818ad8ab3c1' 'v1.8.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "https://ratatoskr.space/pkg/earendil-pi/v1.8.0.tar.gz"
$out = "v1.8.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "ccbf40533671f4cdd0a487275d1d074738a82763039159480c166818ad8ab3c1") { throw "sha256 mismatch" }
download via yggdrasil mesh
unix · zip
curl -fL -o v1.8.0.zip http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/earendil-pi/v1.8.0.zip
printf '%s %s\n' 'a22635ce5e093a8792c14dbdd0e5a43303866b050b8f36dd7d97b63b5a1ceb37' 'v1.8.0.zip' | sha256sum -c -
windows · zip
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/earendil-pi/v1.8.0.zip"
$out = "v1.8.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "a22635ce5e093a8792c14dbdd0e5a43303866b050b8f36dd7d97b63b5a1ceb37") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v1.8.0.tar.gz http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/earendil-pi/v1.8.0.tar.gz
printf '%s %s\n' 'ccbf40533671f4cdd0a487275d1d074738a82763039159480c166818ad8ab3c1' 'v1.8.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/earendil-pi/v1.8.0.tar.gz"
$out = "v1.8.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "ccbf40533671f4cdd0a487275d1d074738a82763039159480c166818ad8ab3c1") { throw "sha256 mismatch" }
| artifact | format | size | hashes |
|---|---|---|---|
| v1.8.0.zip | zip | 24.6 MiB |
blake3-24 11f7f6a824c0efe336384d0212fff312d776f263a88beba6
sha256 a22635ce5e093a8792c14dbdd0e5a43303866b050b8f36dd7d97b63b5a1ceb37
sha1 61ceefc1a504ff7d9ff5111af317667a0a5b84c4
|
| v1.8.0.tar.gz | tar.gz | 20.8 MiB |
blake3-24 fba8b70147b8f50e7b652416ac3dc3120bc36aaed5f86df3
sha256 ccbf40533671f4cdd0a487275d1d074738a82763039159480c166818ad8ab3c1
sha1 3d820174962dd304056e982c29d3f62114449eae
|
install
bazel
http_archive(
name = "earendil-pi",
urls = ["https://ratatoskr.space/pkg/earendil-pi/v1.8.0.tar.gz"],
integrity = "sha256-zL9AUzZx9M3QpIcnXR0HRzioJ2MDkVlIDBZoGK2Ks8E=",
strip_prefix = "earendil-pi-v1.8.0",
)
zig
.url = "https://ratatoskr.space/pkg/earendil-pi/v1.8.0.tar.gz",
install via yggdrasil mesh
bazel
http_archive(
name = "earendil-pi",
urls = ["http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/earendil-pi/v1.8.0.tar.gz"],
integrity = "sha256-zL9AUzZx9M3QpIcnXR0HRzioJ2MDkVlIDBZoGK2Ks8E=",
strip_prefix = "earendil-pi-v1.8.0",
)
zig
.url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/earendil-pi/v1.8.0.tar.gz",