agent-compact-advisor

by apolenkov · ★ 2 · updated 9 Oct 2026

Status lineGuardsCommands

0

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 compaction. Never compacts by itself.

install agent-compact-advisor

Install

/plugin marketplace add apolenkov/agent-compact-advisor
/plugin install agent-compact-advisor@agent-compact-advisor

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.starttool.callturn.startsession.measureturn.completesession.compactcommand.run
API calls
$.agent.list$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.register$.http.fetch$.model.complete$.process.run$.prompt.suggest$.session.messages$.session.root$.state.get$.state.set$.ui.status$.ui.toast
Can see
every tool callcompaction
Reach
level 3 of 3 networkruns processesdrives Claudewrites the prompt boxreads the transcriptreads mod statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/apolenkov/agent-compact-advisor
Path in repo
repository root
Source commit
5486abe the exact code the scan read
Author
@apolenkov
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.