shipwithjev

Catalog / Tools & apps

0389GitHub

pi-jev-context

Opt-in Pi extension that filters older messages from model requests while preserving the original session history.

kevinpita/pi-jev-contextREADME ↗
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.

Also filed under Tools & apps

  1. 0573

    Support chat: agent offered a human escalation path

    A frustrated customer hits a bot loop twice; the judge checks whether a human handoff was offered.

    everyai-com · Tools & apps

  2. 0572

    Subscription cancel: effective date is explicit

    An agent cancels a subscription; the judge checks the exact date the cancellation takes effect.

    everyai-com · Tools & apps

  3. 0571

    Sales quote: numbers match the official price list

    An agent quotes $29/seat against a price list; the judge checks the quote matches exactly.

    everyai-com · Tools & apps

  4. 0570

    Refund chat: agent stated the amount before issuing it

    A support agent issues a $42.50 refund; the judge checks the exact amount was stated before the refund was confirmed.

    everyai-com · Tools & apps