Jev in production › Agent context and memory

pi-jev

pi coding-agent extension in which Jev scores which tool calls and results to keep during compaction and rates each request's difficulty to pick a cheap or strong model per turn. One example run cut a span from 39,379 to 9,553 characters (author).

Open on GitHub ↗

9,553 charactersmeasured, as published by the source
Use
Agent context and memory
Industry
Developer tools
Form
Open-source tool
Stage
In production
Plugs into
pi
Listed
2026-09-22
Found via
github
Repository
iefnaf/pi-jev
Stars
10
Forks
2
Last push
2026-09-20
Language
TypeScript
License
MIT

The README opens with

Selective context compaction and per-turn model routing for pi, powered by Jev.

pi-jev uses Jev's typed judgments to decide which tool outputs still matter and how demanding a user request is. It retains useful text instead of generating a new compaction summary, and can switch models before each turn. Both features are optional; if Jev is unavailable, pi continues with its normal compaction or the current model.

Extension Purpose Pi integration --- --- --- Compaction Remove obsolete tool calls, shorten unneeded results, and retain remaining text verbatim sessionbeforecompact Routing Send easy requests to a cheaper model and hard requests to a stronger model beforeagentstart /jev settings Configure providers, compaction, and routing from an...

Badge

For the project's own README, linking back here:

Listed in Jev in production

Also used for agent context and memory