Lunik/gmz-claude-marketplace/tree/master/context-cache
context-cache
컨텍스트 창 사용량과 프롬프트 캐시 상태(적중률과 TTL 카운트다운)를 하단 그리드에 표시하고, 컨텍스트가 거의 가득 차거나 캐시가 만료되면 토스트를 보여 주는 Claude Code 플러그인입니다.
이 mod 소개
context-cache는 컨텍스트 창이 얼마나 찼는지와 프롬프트 캐시 상태를 보여 줍니다.
Context ┃ Window 17% ┃ Cache hit 99% ┃ Cache TTL 4m33s
셀:
- Window: 컨텍스트 사용량. 70% 미만은 녹색, 70%부터 주황색, 85%부터 빨간색입니다.
- Cache hit: 마지막 프롬프트 중 캐시에서 제공된 비율입니다. 20% 미만은 빨간색입니다.
- Cache TTL: API가 보고한 TTL(5분 또는 1시간)을 기준으로 한 캐시 만료 카운트다운입니다. 다 되면
expired를 표시합니다.
컨텍스트에 최소 20k 토큰이 들어온 뒤에만 Cache hit과 Cache TTL을 표시합니다.
컨텍스트가 70%, 85%, 95%를 넘을 때, 캐시 미스 때, 만료 60초 전, 만료 때 토스트를 발생시킵니다.
동작: 오른쪽 아래 그리드의 한 행을 매초 새로 고칩니다. 하위 에이전트는 별도 캐시 항목을 가지므로 주 대화만 계산합니다.
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add Lunik/gmz-claude-marketplace claude plugin install context-cache
원문 / README
context-cache
Shows how full the context window is and how the prompt cache is doing.
Context ┃ Window 17% ┃ Cache hit 99% ┃ Cache TTL 4m33s
Cells
| Cell | Meaning |
|---|---|
| Window | Context fill. Green below 70%, orange from 70%, red from 85%. |
| Cache hit | Share of the last prompt served from cache. Red below 20%. |
| Cache TTL | Countdown to cache expiry, from the TTL the API reports for the entry it just wrote (5 minutes or 1 hour). expired once it ran out. |
Cache hit and Cache TTL only show once the context holds at least 20k tokens, below that a cold cache costs little. Until then, and before the first response, they read -.
Toasts
- Context crosses 70%, 85% or 95%: consider
/compact. - Cache miss: a response re-wrote 20k+ tokens at full price with a hit rate under 20%.
- Cache expires in 60 seconds: send a prompt to keep it.
- Cache expired: the next prompt re-reads the context uncached.
Behavior
- Row in the bottom-right grid, refreshed every second.
- Only the main conversation counts; a subagent has its own cache entry.
