What is agent-compact-advisor?
agent-compact-advisor is a Claude Code mod by apolenkov that status line score 0-100 for how good a moment it is to /compact now, with reasons; offers a ready /compact that keeps goal, decisions, leftovers and paths, and adds that template to every. It is listed under Context & memory and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | apolenkov |
| Repository | apolenkov/agent-compact-advisor |
| Popularity | 2 GitHub stars |
| Category | Context & memory |
| Security | Review before installing (68/100) |
| Rank | #1,107 of 5,272 Claude Code mods; #118 in Context & memory |
| License | MIT |
| Last commit | 2026-10-09 |
| Hooks | 7 events |
| Sees | compaction, every tool call |
| Draws on | nothing |
Is agent-compact-advisor safe to install?
agent-compact-advisor scores 68/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; starts processes outside the sandbox. 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 |
|---|---|
| Sends data over the network | Review |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.http.fetch | network requests |
$.model.complete | drives Claude |
$.process.run | runs processes |
$.prompt.suggest | writes the prompt box |
$.session.messages | reads the transcript |
$.session.root | |
$.state.get | |
$.state.set | |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install agent-compact-advisor?
- 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/apolenkov/agent-compact-advisor claude plugin validate ./agent-compact-advisor/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add apolenkov/agent-compact-advisor && claude plugin install agent-compact-advisor@agent-compact-advisor
Or ask Claude to set it up
Paste this into Claude Code and it installs agent-compact-advisor for you:
Install the "agent-compact-advisor" Claude Code mod from https://github.com/apolenkov/agent-compact-advisor. Run claude plugin validate on it first and show me what it can access before you enable it.