Home / Claude Code mods / Cost & usage / jev-compact-gate

jev-compact-gate

jev-compact-gate is a Claude Code mod by tdimino that jev decides when the session compacts, inside a 280k–400k token band; Claude's own summary does the compacting.

Updated 2026-10-15

What is jev-compact-gate?

jev-compact-gate is a Claude Code mod by tdimino that jev decides when the session compacts, inside a 280k–400k token band; Claude's own summary does the compacting. It is listed under Cost & usage and has 41 GitHub stars.

TypeClaude code mod
Authortdimino
Repositorytdimino/claude-code-minoan
Popularity41 GitHub stars
CategoryCost & usage
SecurityReview before installing (64/100)
Rank#245 of 5,272 Claude Code mods; #39 in Cost & usage
LicenseMIT
Last commit2026-10-15
Hooks2 events
Seescompaction
Draws onnothing

Is jev-compact-gate safe to install?

jev-compact-gate scores 64/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; writes files or config; reads environment variables. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.sleep
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.session.compactdrives Claude
$.session.id
$.session.messagesreads the transcript
$.session.usage
$.ui.logdraws interface
$.ui.toastdraws interface

How do I install jev-compact-gate?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/tdimino/claude-code-minoan
    claude plugin validate ./claude-code-minoan/plugins/jev-compact-gate
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add tdimino/claude-code-minoan && claude plugin install jev-compact-gate@jev-compact-gate

Or ask Claude to set it up

Paste this into Claude Code and it installs jev-compact-gate for you:

Install the "jev-compact-gate" Claude Code mod from https://github.com/tdimino/claude-code-minoan/tree/main/plugins/jev-compact-gate. Run claude plugin validate on it first and show me what it can access before you enable it.