Home / Claude Code mods / Cost & usage / compaction-trigger

compaction-trigger

compaction-trigger is a Claude Code mod by darkroomengineering that 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.

Updated 2026-10-16

What is compaction-trigger?

compaction-trigger is a Claude Code mod by darkroomengineering that 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. It is listed under Cost & usage and has 51 GitHub stars.

TypeClaude code mod
Authordarkroomengineering
Repositorydarkroomengineering/cc-settings
Popularity51 GitHub stars
CategoryCost & usage
SecurityReview before installing (76/100)
Rank#235 of 5,272 Claude Code mods; #38 in Cost & usage
LicenseMIT
Last commit2026-10-16
Stars this week+4
Hooks2 events
Seesonly the events it hooks
Draws onnothing

Is compaction-trigger safe to install?

compaction-trigger scores 76/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 6 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
No network accessPass
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
$.env.getreads env vars
$.env.setsets env vars
$.session.compactdrives Claude
$.session.usage
$.settings.readreads settings
$.ui.logdraws interface

How do I install compaction-trigger?

  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/darkroomengineering/cc-settings
    claude plugin validate ./cc-settings/plugins/compaction-trigger
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add darkroomengineering/cc-settings && claude plugin install compaction-trigger@cc-settings

Or ask Claude to set it up

Paste this into Claude Code and it installs compaction-trigger for you:

Install the "compaction-trigger" Claude Code mod from https://github.com/darkroomengineering/cc-settings/tree/main/plugins/compaction-trigger. Run claude plugin validate on it first and show me what it can access before you enable it.

More from darkroomengineering/cc-settings

This repository has 3 Claude Code mods on MCPMods.

  • context-report: Prints which instruction files the engine loaded (tier, path, @ imports, size) once per context load, and hints when a p (Low risk)
  • drift-fuse: Scores each unattended turn against the task the person asked for with TypeSafe's Jev model, and after consecutive off-t (Review before installing)