state-compact

by iceberggymnast · ★ 0 · updated 11 days ago

ReskinsPromptwarnings

0

압축 전에 handoff 문서를 반영하고, 프롬프트 캐시 만료 직전 압축으로 재캐시 비용을 줄인다

install state-compact

Install

/plugin marketplace add iceberggymnast/claude-code-mods
/plugin install state-compact@claude-code-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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$.fs.read$.fs.write$.model.complete$.model.fork$.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 runs processeswrites filesdrives Claudewrites the prompt boxreads filesreads env varsreads the transcriptreads the prompt boxpersists 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
Source commit
0707ecf the exact code the scan read
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.

More from iceberggymnast/claude-code-mods

token-speedometer

iceberggymnast/claude-code-mods

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

★ 0Bands