Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By cth9191v0.1.0MITIn 1 marketplace
Claude Code compaction in half a second: Jev keeps what's still needed word for word, and moves the rest to a drawer file instead of deleting it.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Jev modelmodel
Jev model name. With an OpenRouter key, jev-latest is sent as typesafe/jev-1.13.
stringdefault jev-latest
Jev API keyapiKey
A TypeSafe key, or an OpenRouter key (sk-or-...). Leave unset to use TYPESAFE_API_KEY.
Sensitive
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it makes network requests; writes files; reads environment variables (TYPESAFE_API_KEY); reads your settings.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Jev endpointbaseUrl
Optional. Unset: TypeSafe's API, or OpenRouter's decisions API when the key starts with sk-or-.
string
Drawer folderdrawerDir
Folder (relative to the project) where dropped results are saved, so Claude can read them back. Empty: delete them like fast-jev-compaction does.
stringdefault .jev-drawer
Always keep belowminDropChars
Tool results shorter than this many characters are always kept: dropping them saves almost nothing.
numberdefault 1500
Preview characterspreviewChars
Characters of each tool result (start and end) Jev sees when deciding whether to keep it.
numberdefault 600
Keep thresholdkeepThreshold
Minimum Jev probability that a tool call or tool result is still needed; below it the item is removed.
numberdefault 0.5
Maximum Jev state tokensmaxStateTokens
Estimated token budget for the conversation state sent with every Jev request.
numberdefault 14000
Compaction percentagecompactAtPercent
Context percentage at which turn.complete requests compaction.
numberdefault 60
Maximum Jev request tokensmaxRequestTokens
Estimated token budget for state plus questions in one Jev request.
numberdefault 30000
Minimum reduction ratiominReductionRatio
Minimum estimated character reduction required to replace history.
numberdefault 0.25
Truncated tool result headtruncateHeadChars
Only used when drawerDir is empty: characters of a dropped tool result kept in place, plus a note.
numberdefault 300
Recent messages to preservepreserveRecentMessages
Number of newest messages pinned from compaction.
numberdefault 6
Claude Code compaction in about half a second instead of about 35.
When a Claude Code session fills up, /compact makes Opus stop, re-read the whole
conversation and write a summary. This plugin hands that job to
Jev, TypeSafe's
System One decision model. Jev doesn't write anything. It decides, for every old
tool result, whether you still need it:
It's a fork of fast-jev-compaction with three fixes that made the difference on a very large session (see below).
One real Opus 5.5 session in Claude Code, grown to 591,489 tokens: a whole demo codebase, an 8,000-line log and a test run. We compacted it inside the live session, then asked 6 questions about details from early in the session (a trace id, a config value, an exact buggy line, and so on), with no tools allowed.
| Time to compact | Memory quiz | Tokens left | |
|---|---|---|---|
Built-in /compact (Opus writes a summary) | 35.1 s | 6/6 | ~16k |
| fast-jev-compaction (original) | 0.35 s | 5/6 | ~7k |
| jev-compaction-plus | 0.43–0.74 s | 6/6 (3 runs) | ~26k |
pytest -v run that had been moved out, and said not to re-run anything. Claude noticed the output was gone, opened the drawer file and quoted the line.These numbers come from one session and one quiz, so treat them as an example, not a benchmark.
/compact (or auto-compact at 60% context)
│
▼
Jev gets the conversation (texts + tool calls) and, for every old tool result,
a yes/no question that quotes a preview of that result:
"does the assistant still need this output word for word?"
│
├─ yes ............................ result stays, word for word
├─ no, but it's tiny (<1,500 chars) result stays (dropping it saves nothing)
└─ no ............................. result moves to .jev-drawer/<time>/t12-Read.txt;
the session keeps the call plus a one-line label:
[Jev compaction moved this 48213-char output to
…/.jev-drawer/…/t12-Read.txt. Read that file if
you need it again.]
INDEX.md listing what was moved. The drawer has its own .gitignore, so it never ends up in a commit.Read config/app.env → ok, 833 chars (omitted)), so Jev decided from the file name.sk-or-…) goes to OpenRouter's decisions API (typesafe/jev-1.13) automatically.You need:
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1.Put both in ~/.claude/settings.json, so every session (terminal, desktop app, IDE) sees them:
{
"env": {
"CLAUDE_CODE_ENABLE_FUNCTION_HOOKS": "1",
"TYPESAFE_API_KEY": "<your TypeSafe or OpenRouter key>"
}
}
Then install the plugin:
7-day copy clicks
npx claudepluginhub cth9191/jev-compaction-plus --plugin jev-compaction-plusPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.