Pi 0.87.0 splits session history from context, letting agents selectively forget for the model
solyarisoftware · x · 2026-09-22
Agent framework Pi 0.87.0 separates what the agent stores from what the model sees each turn:
- New ContextEditEntry: stale tool results and error logs can be excluded from the model's context while the raw session, usage, and chat history stay intact—history remains, the model just selectively "forgets."
- SessionManager becomes the single source of truth for context; extensions can no longer mutate agent.state.messages to influence requests—everything is built from the session tree and its projections.
- Extensions can now process the full transcript including system messages (contextwithsystem), expanding room for memory, pruning, and compression plugins.
- Image context is managed per-model with distinct size limits, kept cache-safe.
Also referenced from 0.86: append-only system prompts to preserve KV cache, dynamic tool loading, cache warming after long tasks, and a /bug diagnostics command.
Related event: AI Agent Framework Pi v0.87.0 Adds Editable Context(2 posts)→
More from coding & agent
- Redditor builds hybrid Python+LLM trading bot, shares full rules — Elfwood86 · 2026-09-30
- RSIArena pits 8 research agents on one 30B model with 64 RTX 6000 GPUs for 144 hours — my_cat_can_code · 2026-09-30
- OpenAI's Nan Yu: a boss agent running other agents is just one agent with extra steps — victor_explore · 2026-09-30
- Open-source MCP server lets agents query 124.6B TikTok data points — operatorarkay · 2026-09-30
- Dev argues truly always-on autonomous agents have never actually been tried — jacob_posel · 2026-09-30
- Skill scaffold template: same shape, faster review, fewer broken CIs — blaizedsouza · 2026-09-30