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

compact-advisor

compact-advisor is a Claude Code mod by vincentlauriat that toasts once when the context crosses a threshold; /compact-advisor prints a ready-to-paste /compact line with branch, edited files, open tasks and the last goal.

Updated 2026-10-05

What is compact-advisor?

compact-advisor is a Claude Code mod by vincentlauriat that toasts once when the context crosses a threshold; /compact-advisor prints a ready-to-paste /compact line with branch, edited files, open tasks and the last goal. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authorvincentlauriat
Repositoryvincentlauriat/ModsTools
Popularityno public popularity data yet
CategoryContext & memory
SecurityReview before installing (76/100)
Rank#5,026 of 5,272 Claude Code mods; #465 in Context & memory
LicenseMIT
Last commit2026-10-05
Hooks5 events
Seesevery prompt, every tool call
Draws onnothing

Is compact-advisor safe to install?

compact-advisor scores 76/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; watches every prompt or event. It passed 6 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
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.fs.readreads files
$.process.runruns processes
$.session.cwd
$.session.usage
$.state.get
$.state.set
$.ui.toastdraws interface

How do I install 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/vincentlauriat/ModsTools
    claude plugin validate ./ModsTools/mods/compact-advisor
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/vincentlauriat/ModsTools && claude --plugin-dir ./ModsTools/mods/compact-advisor

Or ask Claude to set it up

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

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

More from vincentlauriat/ModsTools

This repository has at least 9 Claude Code mods on MCPMods.

  • achievement: Playful badges unlocked once ever from real events (tool calls, turns, subagents, tests, git); /achievements lists them (Low risk)
  • agent-tracker: A pane listing the subagents launched this session with their status and duration (Low risk)
  • ascii-weather: Weather from wttr.in in the status line (refreshed at most once an hour); /weather shows the one-line forecast (Low risk)
  • auto-context: Adds git branch, dirty count, last commit and next TODOS to the session's system prompt (Low risk)
  • branch-guard: Asks the user before Edit/Write/NotebookEdit changes a file of a git repo whose current branch is main or master (once p (Low risk)
  • build-gate: Band above the prompt when a turn changed source code without running a matching build or type-check (Low risk)
  • changed-files: A pane listing the files Claude modified during the session (Low risk)
  • ci-watch: Follows the GitHub Actions runs of a commit after git push: status line while they run, toast with the failed workflows (Low risk)