jev-compact-trigger

by Harsha Yellela · ★ 0 · updated 11 days ago

Automationvalidates

0

Companion to jev-compact: watches context use after every turn and starts a compaction at the configured percentage. Separate plugin on purpose — the engine skips a plugin's own session.compact hook when that plugin raises the compaction, so the trigger must come from outside jev-compact for the pruning to run.

install jev-compact-trigger

Install

/plugin marketplace add HAR5HA-7663/jev-compact
/plugin install jev-compact-trigger@jev-compact

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.complete
API calls
$.clock.after$.config.list$.env.get$.fs.read$.fs.write$.session.compact$.session.usage
Reach
level 2 of 3 writes filesdrives Claudereads filesreads env vars

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/HAR5HA-7663/jev-compact
Path in repo
trigger
Author
Harsha Yellela @HAR5HA-7663
License
No license declared — ask the author before reusing code.
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.

More from HAR5HA-7663/jev-compact

jev-compact

HAR5HA-7663/jev-compact

Context compaction that prunes instead of summarising: rules drop exploration output and hook noise locally, Jev ranks the rest against a budget, a note says what was removed, and removed outputs are archived for the brain. Falls back to the built-in summary when it cannot do better.

★ 0Toasts