Jev in production › Agent context and memory
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).
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...
For the project's own README, linking back here: