state-compact

state-compact is a Claude Code mod by iceberggymnast that 압축 전에 handoff 문서를 반영하고, 프롬프트 캐시 만료 직전 압축으로 재캐시 비용을 줄인다.

Updated 2026-10-11

What is state-compact?

state-compact is a Claude Code mod by iceberggymnast that 압축 전에 handoff 문서를 반영하고, 프롬프트 캐시 만료 직전 압축으로 재캐시 비용을 줄인다. It is listed under Context & memory and has no public popularity data yet.

TypeClaude code mod
Authoriceberggymnast
Repositoryiceberggymnast/claude-code-mods
Popularityno public popularity data yet
CategoryContext & memory
SecurityHigh risk (44/100)
Rank#3,411 of 5,272 Claude Code mods; #319 in Context & memory
LicenseMIT
Last commit2026-10-11
Hooks10 events
Seesclassic hooks, compaction, every prompt
Draws onAssistantMessage

Is state-compact safe to install?

state-compact scores 44/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 2 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 files or configReview
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.now
$.command.rundrives Claude
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.fs.writewrites files
$.model.completedrives Claude
$.model.forkdrives Claude
$.process.runruns processes
$.prompt.fillwrites the prompt box
$.prompt.read
$.prompt.submitdrives Claude
$.session.compactdrives Claude
$.session.cwd
$.session.messagesreads the transcript
$.session.usage
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.invalidatedraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install state-compact?

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

Or ask Claude to set it up

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

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

More from iceberggymnast/claude-code-mods

This repository has 2 Claude Code mods on MCPMods.

  • token-speedometer: 응답이 나오는 속도(초당 출력 토큰)를 입력창 위에 속도계처럼 보여 준다 (Low risk)