ClaudeCodeMod

All shelves / Mods / Usage

compact-adviser

By kunchenguid

compact-adviser is a Claude Code usage mod by kunchenguid.

Draws a hint above the prompt to run /compact when Jev calls the session a finished checkpoint, and can run /compact itself if you opt in.

Draws

Install

The marketplace name is compact-adviser.

In your shell
claude plugin marketplace add kunchenguid/compact-adviser
claude plugin install compact-adviser@compact-adviser
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.13
License
MIT
Repo stars
218
Last change
2026-10-09

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Reaches the network or an outside service

Node 22 or later, Claude Code 2.1.274 or newer (verified on 2.1.275), and a TYPESAFE_API_KEY. The README starts Claude Code with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1; the official docs say 2.1.287 and later ignore that flag. The author says installing is consent to send checkpoint context to TypeSafe's API, capped at 32,000 bytes: your stated constraints, up to the last 64 visible replies and tool results (clipped), and any existing summary. System prompts, hidden reasoning, images, environment variables, and the complete transcript are not sent.

Demo

Compact adviser status line: Compact adviser: work appears completed or recorded. Run /compact to save tokens, above a terminal prompt
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • prompt.submitWhen you send a prompt
  • command.runWhen you run its slash command
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • config.describeA Claude Code event
  • ui.closeWhen its pane closes
  • ui.renderDraws into the sessionPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
kunchenguid
Category
Usage
Marketplace
compact-adviser
Repo
kunchenguid/compact-adviser
Folder
packages/claude-mod
Version
0.1.13
License
MIT
Repo stars
218
Last change
2026-10-09
Language
TypeScript
Files
30

Other mods in Usage

fast-jev-compactiontamaratranShows a toast when /compact keeps the messages Jev still wants and drops the rest, instead of replacing the history with a summary.effortlessHeyCubitDraws a bar above the prompt with the reasoning effort it picked for this prompt, how full the chat is, and how long the prompt cache stays warm.headroom-snipheadroomlabs-aiDraws a band above the prompt showing Headroom cutting each request from its original token count to what was sent, with a /headroom log and a running total.leaksdavekissOpens a pane that ranks the avoidable spend in the last 7 days of transcripts, and draws a strip above the prompt when a leak is happening.context-dietdrkokorevReplaces a huge tool output with a short digest and the path of a file that still holds the full text, and /diet opens a panel of what it saved.agent-profilerYeonwooSungDraws where a session's time goes, model wait against tools and subagents, in a status line and a live pane, and can write the session out as an OTLP trace.claude-carbongwittebolleDraws the CO2 of each answer and a pane with a pixel molecule colored against your past sessions, plus this session's total under the prompt.dividendMint-SecurityDraws a tip above the prompt about the prompt cache, the context, or the plan limits, with a status line and a /dividend pane of the session's figures.caliber-jev-compactioncaliber-ai-orgReplaces /compact: Jev scores each tool call, drops the stale ones, and keeps the rest of the conversation word for word, then toasts what it kept.model-effort-bandYeonwooSungDraws a band above the prompt with the selected model and the effort of the latest main-conversation request.shuntpleaseaiDraws a band above the prompt with the shared pool's usage and reset times, or this session's rate limits when you are off shunt.optimaizrblendbunjakuHolds a commandDraws this turn's cost, the 5-hour window, and cache time above the prompt, and holds a command that failed twice unchanged.
All 183 in Usage