Skip to content

Jev directory

OMP Jev Compaction

An omp plugin that does verbatim Jev-scored context reduction: stale tool calls and results are truncated to a short head plus a recoverable note, while sticky rewrites keep the provider's prompt cache intact.
Stars
12
Language
TypeScript
License
MIT
Reading time
3 min
Published by
Community
Author
jerryfane
Last verified
Sep 2026

Verbatim Jev-scored context reduction for omp, over TypeSafe or OpenRouter

Forks
2
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

Verbatim context reduction for omp, scored by TypeSafe's Jev decision model, over either the TypeSafe API or OpenRouter. Nothing is rewritten or summarized. Every tool call and tool result is scored; the ones Jev says are no longer needed are truncated to a short head plus a recoverable note, and everything else, including all user and assistant text, is passed through exactly as omp built it.

Quoted from the project's README. Read the full README.

Highlights

  • Nothing is rewritten or summarized: stale tool calls are truncated to a short head plus a recoverable note.
  • A 16,198-message replay produced 3 rewrites and 37 reuses over 40 requests, with 0 prefix breaks across 39 checks.
  • A cache guard skips sessions at 80% or more cache reads; on 14 live sessions it protected $1.81 per request round while capturing $2.61.
  • One client covers the TypeSafe API and OpenRouter; OpenRouter measured about 430 ms and $0.0000198 per decision request.
  • Dropped payloads are written to ~/.omp/jev-spill/<hash>.txt and recovered with one read instead of re-running the tool.

Quickstart

bash
omp plugin install jerryfane/omp-jev-compaction
omp

Watch out

MIT-licensed, as is the vendored fast-jev-compaction core; requires omp plus a TypeSafe or OpenRouter key, and every reduction sends conversation state, including tool names, inputs, and message text, to the decision endpoint.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: The compaction plugin, in Chinese

X: Decision outputs in Grep

Hacker News: jevmem keeps Claude Code project memory by asking Jev which turns are worth saving.

avinashjetwani61 pointsJevmem – automatic project memory for Claude Code, built on JevRead the thread on Hacker News

X: A usage router for Grok Bot

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai