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.
| Type | Claude code mod |
|---|---|
| Author | tdimino |
| Repository | tdimino/claude-code-minoan |
| Popularity | 41 GitHub stars |
| Category | Cost & usage |
| Security | Review before installing (64/100) |
| Rank | #245 of 5,272 Claude Code mods; #39 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-15 |
| Hooks | 2 events |
| Sees | compaction |
| Draws on | nothing |
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.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.sleep | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.http.fetch | network requests |
$.session.compact | drives Claude |
$.session.id | |
$.session.messages | reads the transcript |
$.session.usage | |
$.ui.log | draws interface |
$.ui.toast | draws interface |
How do I install jev-compact-gate?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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.