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
- Grok Bot 1.4.0 adds autonomous shopping: agents can buy within your budget — mark_k · 2026-12-02
- Amazon's open-weights Ergo tops coding benchmarks at 74.2% DeepSWE, beating Opus 5.5 — kimmonismus · 2026-12-02
- Demo: A2UI turns LLM output into tappable interactive UIs in Stream Chat — amos_gyamfi · 2026-12-02
- Grok Bot swaps timers for exact event triggers, slashing token usage — Baconbrix · 2026-12-02
- Bitts agent now creates TAO wallets on-chain hours after user feedback — markjeffrey · 2026-12-02
- Verbatim context handoff: swapping an agent's conversation without it noticing — MoonL88537 · 2026-12-02