pi-jev-context
Opt-in Pi extension that filters older messages from model requests while preserving the original session history.
Jev Context for Pi</h1> <p align="center">Keep useful context. Hide old noise. Keep your original history.</p> <p align="center"> <a href="https://github.com/kevinpita/pi-jev-context/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/kevinpita/pi-jev-context/actions/workflows/ci.yml/badge.svg"></a> <a href="https://github.com/kevinpita/pi-jev-context/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-a7f3d0"></a> <img alt="Pi 0.85.1 or later" src="https://img.shields.io/badge/Pi-%E2%89%A50.85.1-c4b5fd"> <img alt="Node 22.19 or later" src="https://img.shields.io/badge/Node-%E2%89%A522.19-93c5fd"> </p> A [Pi](https://pi.dev) extension that uses [TypeSafe Jev](https://typesafe.ai) to judge which older messages are still useful. Low-scoring content is hidden from future model requests, **not deleted from your session**. **Opt-in · Reversible filtering · Branch-aware cache · No extra runtime dependencies** ## Get started Requires **Pi 0.85.1+**, **Node.js 22.19+**, and a [TypeSafe API key](https://console.typesafe.ai). TypeSafe usage can incur charges. Jev is a separate judgment service, not your main coding model. Install from [npm](https://www.npmjs.com/package/pi-jev-context): ```bash pi install npm:pi-jev-context ``` Restart Pi or run `/reload`, then: ```text /login typesafe /jev on ``` Enter your key in Pi's secret prompt. Do not paste it into a conversation. `TYPESAFE_API_KEY` is also supported. Pruning is **off by default**. > **Data leaves your machine when enabled.** Candidate assistant history, tool arguments, text results, and recent conversation excerpts go to `https://api.typesafe.ai/v1/systemone`. They can contain private code or secrets. Review your data policy before enabling this extension.