state-compact
by iceberggymnast · ★ 0 · updated 2 days ago
0
압축 전에 handoff 문서를 반영하고, 프롬프트 캐시 만료 직전 압축으로 재캐시 비용을 줄인다
Install
/plugin marketplace add iceberggymnast/claude-code-mods/plugin install state-compact@claude-code-modsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startui.renderclassic.SessionStartprompt.submitclassic.UserPromptSubmitclassic.Stopturn.stepturn.startturn.completesession.compact- API calls
$.clock.after$.clock.now$.command.run$.env.get$.fs.exists$.model.complete$.process.run$.prompt.fill$.prompt.read$.prompt.submit$.session.compact$.session.cwd$.session.messages$.session.usage$.store.get$.store.set$.ui.invalidate$.ui.resolve$.ui.toast- Draws
AssistantMessage- Can see
classic hooksevery promptcompaction- Reach
- level 2 of 3 other: $.prompt.readruns processesdrives Claudewrites the prompt boxreads filesreads env varsreads the transcriptpersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/iceberggymnast/claude-code-mods
- Path in repo
plugins/state-compact- Author
- @iceberggymnast
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.