compaction-trigger
by Darkroom Engineering · ★ 47 · updated 3 days ago
Requests a session compaction when the live context passes a token threshold, so verbatim compaction plugins run near the working ceiling instead of at the model window.
Install
/plugin marketplace add darkroomengineering/cc-settings/plugin install compaction-trigger@cc-settingsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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
ui.logturn.complete- API calls
$.env.get$.env.set$.session.compact$.session.usage$.settings.read$.ui.log- Reach
- level 2 of 3 sets env varsdrives Claudereads env varsreads settingsdraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/darkroomengineering/cc-settings
- Path in repo
plugins/compaction-trigger- Author
- Darkroom Engineering @darkroomengineering
- 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.
More from darkroomengineering/cc-settings
context-report
darkroomengineering/cc-settings
Prints which instruction files the engine loaded (tier, path, @ imports, size) once per context load, and hints when a project CLAUDE.md keeps its AGENTS.md from being read.
drift-fuse
darkroomengineering/cc-settings
Scores each unattended turn against the task the person asked for with TypeSafe's Jev model, and after consecutive off-task turns redirects or pauses the next machine-submitted prompt.