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.
| Type | Claude code mod |
|---|---|
| Author | sergiopalacio |
| Repository | sergiopalacio/cc-strategic-compaction |
| Popularity | 3 GitHub stars |
| Category | Context & memory |
| Security | Review before installing (68/100) |
| Rank | #1,000 of 5,272 Claude Code mods; #107 in Context & memory |
| Last commit | 2026-10-08 |
| Hooks | 6 events |
| Sees | every tool call, mcp__cc-strategic-compaction__compact calls |
| Draws on | Pane |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.config.list | |
$.config.set | changes config |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.fork | drives Claude |
$.session.compact | drives Claude |
$.session.id | |
$.session.messages | reads the transcript |
$.session.turns | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.tool.register | drives Claude |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install cc-strategic-compaction?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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/.
- 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.