Pi v1.8.0 adds stateless MCP, llama.cpp discovery
Earendil's open-source terminal coding agent updates to v1.8.0 with support for the stateless MCP 2026-07-28 revision, a published mcp.json schema, and auto-discovery of unloaded llama.cpp models in /model. The release also adds subagent cost tracking via pi.appendUsage(), patches Windows shell-spawning vulnerabilities, and introduces three breaking changes for extension authors and OpenRouter image configs.
Pi continues to outpace heavier commercial coding agents on protocol plumbing and local-model ergonomics, adopting stateless MCP before most clients have started migrating. The trade-off is brisk API churn: three breaking changes in a minor bump show Earendil still prioritizes clean primitives over indefinite extension compatibility.
- –Stateless MCP (`2026-07-28`) removes the brittle `initialize` handshake and server-side sessions, letting Pi connect to load-balanced and serverless MCP endpoints while staying backwards-compatible with legacy servers via automatic fallback or explicit `"protocol": "2026-07-28"` config.
- –Surfacing unloaded `llama.cpp` models from the Hugging Face cache and `--models-dir`—alongside their actual trained context lengths instead of a hardcoded 128K default—makes local-first workflows far less tedious than manual preset configuration.
- –`pi.appendUsage()` closes a blind spot for multi-agent extensions by folding off-thread subagent token usage directly into session stats and the footer's cost counter.
- –Extension authors and custom configs face three breaking shifts: `getShellConfig()` now passes Windows Git Bash commands through `SHELL_COMMAND_ENV_VAR` to fix 8KB truncation bugs, `SessionManager.open()` defaults new branches to the cwd's session directory, and OpenRouter's chat-completions image API moves from `openrouter-images` to `openrouter-chat-images`.
- –Heavy under-the-hood hardening ships alongside features, including `cross-spawn` command-injection and `minimatch` ReDoS patches, lower per-session `SKILL.md` memory overhead, and provider reliability fixes across OpenAI Codex WebSockets, Bedrock, DeepSeek, Groq, and Gemini 3+.
DISCOVERED
1h ago
2026-12-03
PUBLISHED
2h ago
2026-12-03
RELEVANCE
AUTHOR
PiChangelog
