Home / Claude Code mods / Context & memory / cc-strategic-compaction

cc-strategic-compaction

cc-strategic-compaction is a Claude Code mod by sergiopalacio that compacts the conversation when the rules say the moment is right, judged against the conversation itself at the end of a turn.

Updated 2026-10-08

What is cc-strategic-compaction?

cc-strategic-compaction is a Claude Code mod by sergiopalacio that compacts the conversation when the rules say the moment is right, judged against the conversation itself at the end of a turn. It is listed under Context & memory and has 3 GitHub stars.

TypeClaude code mod
Authorsergiopalacio
Repositorysergiopalacio/cc-strategic-compaction
Popularity3 GitHub stars
CategoryContext & memory
SecurityReview before installing (68/100)
Rank#1,000 of 5,272 Claude Code mods; #107 in Context & memory
Last commit2026-10-08
Hooks6 events
Seesevery tool call, mcp__cc-strategic-compaction__compact calls
Draws onPane

Is cc-strategic-compaction safe to install?

cc-strategic-compaction scores 68/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 4 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
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.agent.list
$.clock.every
$.clock.now
$.command.register
$.config.list
$.config.setchanges config
$.env.getreads env vars
$.fs.readreads files
$.fs.writewrites files
$.model.forkdrives Claude
$.session.compactdrives Claude
$.session.id
$.session.messagesreads the transcript
$.session.turns
$.session.usage
$.state.get
$.state.set
$.tool.registerdrives Claude
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install cc-strategic-compaction?

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

Or ask Claude to set it up

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

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