User repository on GitHub
Pi extension suite powered by Jev: selective context compaction and model routing
- Forks
- 2
- Last pushed
- Updated Sep 2026
Repo stats from the GitHub API, cached Oct 2026.
Two pi extensions driven by Jev judgments: one replaces summary-based context compaction with keep, drop and shorten calls, the other scores each prompt for difficulty and switches pi's model before the turn runs.
User repository on GitHub
Pi extension suite powered by Jev: selective context compaction and model routing
Repo stats from the GitHub API, cached Oct 2026.
This is one of several Jev listings for the same project. The canonical entry is Pi Jev — y0usaf.
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.
Quoted from the project's README. Read the full README.
Watch out
Both features are optional and pi keeps its normal behaviour whenever Jev is unavailable, which is the right default but means you should verify the hook actually fired. Requirements are pi installed, an API key for one Jev transport, and routing targets configured and authenticated inside pi; routing stays inactive until at least one target is set. Verbatim retention applies to retained text only: images become [image] placeholders and assistant thinking blocks are omitted during conversion. A middle-band prompt keeps the current model rather than resetting to a default, including a model an earlier turn selected. If both keys are present TypeSafe wins unless JEVC_PROVIDER says otherwise, and settings writes are global by default, including disabled, unless you pass -l for project scope. The recorded 32-message to 16-message compaction example is explicitly illustrative, not a latency or reduction guarantee. Copy reviewed against the repository README on 2026-10-04, not from running it.
Posts from builders shipping with Jev right now.