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.
| Type | Claude code mod |
|---|---|
| Author | iceberggymnast |
| Repository | iceberggymnast/claude-code-mods |
| Popularity | no public popularity data yet |
| Category | Context & memory |
| Security | High risk (44/100) |
| Rank | #3,411 of 5,272 Claude Code mods; #319 in Context & memory |
| License | MIT |
| Last commit | 2026-10-11 |
| Hooks | 10 events |
| Sees | classic hooks, compaction, every prompt |
| Draws on | AssistantMessage |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.now | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.complete | drives Claude |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.prompt.submit | drives Claude |
$.session.compact | drives Claude |
$.session.cwd | |
$.session.messages | reads the transcript |
$.session.usage | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.invalidate | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install state-compact?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)