Home / Claude Code mods / Context & memory / compact-adviser

compact-adviser

compact-adviser is a Claude Code mod by kunchenguid that 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.

Updated 2026-10-09

What is compact-adviser?

compact-adviser is a Claude Code mod by kunchenguid that 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. It is listed under Context & memory and has 218 GitHub stars.

TypeClaude code mod
Authorkunchenguid
Repositorykunchenguid/compact-adviser
Popularity218 GitHub stars
CategoryContext & memory
SecurityHigh risk (48/100)
Rank#92 of 5,272 Claude Code mods; #10 in Context & memory
LicenseMIT
Last commit2026-10-09
Stars this week+6
Hooks9 events
Seescompaction, every prompt
Draws onPane

Is compact-adviser safe to install?

compact-adviser scores 48/100 on the MCPMods security check: High risk. Things to review: sends data over the network; writes files or config; reads environment variables; watches every prompt or event. It passed 3 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 no processesPass
Writes files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.clock.sleep
$.command.register
$.command.rundrives Claude
$.config.list
$.config.setchanges config
$.env.getreads env vars
$.fs.readreads files
$.fs.writewrites files
$.http.fetchnetwork requests
$.prompt.submitdrives Claude
$.session.compactdrives Claude
$.session.cwd
$.session.id
$.session.messagesreads the transcript
$.session.usage
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.keyskeeps its own state
$.store.setkeeps its own state
$.ui.askdraws interface
$.ui.closedraws interface
$.ui.focusdraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.panesdraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install compact-adviser?

  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/kunchenguid/compact-adviser
    claude plugin validate ./compact-adviser/packages/claude-mod
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add kunchenguid/compact-adviser && claude plugin install compact-adviser@compact-adviser

Or ask Claude to set it up

Paste this into Claude Code and it installs compact-adviser for you:

Install the "compact-adviser" Claude Code mod from https://github.com/kunchenguid/compact-adviser/tree/main/packages/claude-mod. Run claude plugin validate on it first and show me what it can access before you enable it.