0
Suggests (or, opt-in, runs) /compact at a completed checkpoint, judged by TypeSafe Jev. Its hooks module activates only when CLAUDE_CODE_ENABLE_FUNCTION_HOOKS is exactly 1 and is otherwise a complete no-op.
Install
/plugin marketplace add kunchenguid/compact-adviser/plugin install compact-adviser@compact-adviserThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.startturn.startturn.completesession.compactcommand.runconfig.describeui.closeui.render- API calls
$.clock.after$.clock.now$.clock.sleep$.command.register$.config.list$.config.set$.env.get$.fs.read$.fs.write$.http.fetch$.session.compact$.session.cwd$.session.id$.session.messages$.session.usage$.store.delete$.store.get$.store.keys$.store.set$.ui.ask$.ui.close$.ui.focus$.ui.invalidate$.ui.log$.ui.open$.ui.panes$.ui.resolve$.ui.status$.ui.toast- Draws
Pane- Can see
compaction- Reach
- level 3 of 3 networkwrites fileschanges configdrives Claudereads filesreads env varsreads the transcriptpersists 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/kunchenguid/compact-adviser
- Path in repo
packages/claude-mod- Author
- Kun Chen @kunchenguid
- 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.