Home / Claude Code mods / Context & memory / agent-compact-advisor

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.

Updated 2026-10-09

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.

TypeClaude code mod
Authorapolenkov
Repositoryapolenkov/agent-compact-advisor
Popularity2 GitHub stars
CategoryContext & memory
SecurityReview before installing (68/100)
Rank#1,107 of 5,272 Claude Code mods; #118 in Context & memory
LicenseMIT
Last commit2026-10-09
Hooks7 events
Seescompaction, every tool call
Draws onnothing

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.

CheckResult
Sends data over the networkReview
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.agent.list
$.clock.after
$.clock.every
$.clock.now
$.clock.sleep
$.command.register
$.http.fetchnetwork requests
$.model.completedrives Claude
$.process.runruns processes
$.prompt.suggestwrites the prompt box
$.session.messagesreads the transcript
$.session.root
$.state.get
$.state.set
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install agent-compact-advisor?

  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/apolenkov/agent-compact-advisor
    claude plugin validate ./agent-compact-advisor/.
  3. 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.