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 grixuv0.1.0MITIn 1 marketplace
Compacts sessions early by removing the tool calls and outputs Claude no longer needs, keeping your messages and Claude's replies word for word. Needs an API key; without one, or when that frees too little space, the usual summary runs.
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
TypeSafe Jev model name; the Gemini backend always uses gemini-decision-1.
stringdefault jev-latest
TypeSafe API keyapiKey
TypeSafe API key. Leave empty to read 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 runs programs; makes network requests; reads environment variables (GEMINI_API_KEY, GEMINI_DECISIONS_API_KEY, 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.
Decision backendbackend
Which model decides what stays: "auto" uses TypeSafe's Jev when its key is set, otherwise Gemini Decision (gemini-decision-1).
One of auto, typesafe, gemini
stringdefault auto
Gemini API keygeminiApiKey
Gemini Developer API key with access to the Decisions API. Leave empty to read GEMINI_DECISIONS_API_KEY, then GEMINI_API_KEY.
Sensitivestring
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 25000
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
Characters of a tool result kept when Jev decides its full output is no longer needed; 0 keeps only the note.
numberdefault 300
Recent messages to preservepreserveRecentMessages
Number of newest messages pinned from compaction.
numberdefault 6
fast-jev-compaction replaces Claude Code's compaction summary with the original conversation, minus the tool calls and tool outputs a decision model judges Claude no longer needs. Everything it keeps stays word for word; user and assistant text is never rewritten. When it cannot remove enough, Claude Code's own summary runs as usual.
Ported from tamaratran/fast-jev-compaction 0.3.0 (MIT, see LICENSE). This copy adds Gemini Decision as a backend and reads every key from the environment as well as from the plugin options.
/plugin marketplace add grixu/cc-toolkit
/plugin install fast-jev-compaction@cc-toolkit
If you installed the upstream plugin (fast-jev-compaction@fast-jev-compaction), uninstall it, or both hooks compact the same session.
A key for one of the two backends:
TYPESAFE_API_KEY in the environment, or the apiKey option.gemini-decision-1): a Gemini Developer API key with access to the Decisions API, in GEMINI_DECISIONS_API_KEY or GEMINI_API_KEY, or the geminiApiKey option.With neither, every compaction falls back to Claude Code's summary.
Every option may stay empty or at its default. Keys set as options are stored as secrets.
| Option | Default | What it does |
|---|---|---|
backend | auto | auto uses TypeSafe when its key is set, otherwise Gemini; typesafe or gemini uses that one only. |
apiKey | none | TypeSafe API key. Empty reads TYPESAFE_API_KEY, then env.TYPESAFE_API_KEY in Claude Code's settings. |
geminiApiKey | none | Gemini API key. Empty reads GEMINI_DECISIONS_API_KEY, then GEMINI_API_KEY. |
keepThreshold | 0.5 | Minimum probability that a call or its output is still needed; below it the item goes. |
preserveRecentMessages | 6 | Newest messages never touched. The first message is always kept too. |
compactAtPercent | 60 | Context usage at which the end of a turn requests a compaction. |
minReductionRatio | 0.25 | Minimum share of characters a compaction must remove; below it Claude Code's summary runs instead. |
maxStateTokens | 25000 | Estimated token budget for the conversation sent with every request. |
maxRequestTokens | 30000 | Estimated token budget for the conversation plus one batch of questions. |
truncateHeadChars | 300 | Characters kept from a tool output that is dropped; 0 keeps only the note. |
model | jev-latest | Jev model on TypeSafe. Gemini always uses gemini-decision-1. |
The plugin hooks session.compact and turn.complete. At the end of a turn whose context usage has reached compactAtPercent, it asks Claude Code to compact; /compact and auto-compaction go the same way.
preserveRecentMessages messages are pinned and never touched.ok, 4213 chars (omitted)). Nothing is summarized.maxStateTokens in stages, each only when the one before was not enough: tool inputs truncated, long texts abridged oldest first, old messages collapsed to a note, old tool calls reduced to one line each, old call-less messages left out. If it still does not fit, the compaction falls back.maxRequestTokens needs, each with the same conversation; they run at once.truncateHeadChars plus a note; otherwise the call and its output go.A failed or malformed answer, a missing key, a conversation that cannot be fitted, or a reduction under minReductionRatio falls back to Claude Code's summary. Each outcome shows as a toast, and a decisions: log line lists every call with both probabilities.
Each compaction sends the conversation (tool outputs replaced by notes) to the backend whose key is in use: TypeSafe or Google.
7-day copy clicks
npx claudepluginhub grixu/cc-toolkit --plugin fast-jev-compactionBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground