agent-compact-advisor

by apolenkov · ★ 0 · updated today

Status lineCommandsvalidates

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.startsession.measureturn.completesession.compactcommand.run
API calls
$.agent.list$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.register$.http.fetch$.prompt.suggest$.state.get$.state.set$.ui.status$.ui.toast
Can see
compaction
Reach
level 3 of 3 other: $.state.getother: $.state.setnetworkwrites the prompt boxdraws

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
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.