jev-compact-gate

by Tom di Mino · ★ 41 · updated 8 days ago

Toastsvalidates

0

Jev decides when the session compacts, inside a 280k–400k token band; Claude's own summary does the compacting.

install jev-compact-gate

Install

git clone https://github.com/tdimino/claude-code-minoan
claude --plugin-dir ./claude-code-minoan/plugins/jev-compact-gate

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
turn.completesession.compact
API calls
$.clock.sleep$.env.get$.fs.exists$.fs.read$.fs.write$.http.fetch$.session.compact$.session.id$.session.messages$.session.usage$.ui.log$.ui.toast
Can see
compaction
Reach
level 3 of 3 networkwrites filesdrives Claudereads filesreads env varsreads the transcriptdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/tdimino/claude-code-minoan
Path in repo
plugins/jev-compact-gate
Author
Tom di Mino @tdimino
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.