ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 Vosssa

usage-band

컨텍스트 사용량, 5시간 사용 한도, 주간 한도와 프롬프트 캐시 온기를 네 개의 링으로 프롬프트 위에 표시하고, 큰 컨텍스트에는 Clear/Compact 동작을 제안하는 행을 보여 주는 Claude Code 플러그인입니다.

Vosssa@Vosssa

Vosssa/claude-usage-band/tree/main/plugins/usage-band

원본 게시물 이미지1
번역 완료

이 mod 소개

usage-band는 Claude Code 프롬프트 위에 네 개의 링을 항상 표시합니다. Context(예: 92k / 1M), 재설정 시각이 있는 5h 사용 한도, 재설정 시각이 있는 7d 주간 한도, 그리고 Cache warmth(남은 TTL이 있는 Warm 또는 Cold)입니다. 한도에 가까워지면 링은 녹색에서 황색, 빨간색으로 바뀝니다. 컨텍스트가 400k token을 넘으면 한 줄 알림이 나타나며, 한 번의 클릭으로 Clear, Compact, Later를 실행하고 캐시 상태에 따라 가장 저렴한 동작을 선택합니다(콜드 캐시는 Clear, 만료가 임박했거나 웜 캐시는 Compact를 선호). 같은 네 항목은 터미널 Claude Code에서 텍스트 링(○ ◔ ◑ ◕ ●)으로도 표시됩니다. 항상 사용하는 token은 약 0개입니다. 프롬프트에 아무것도 추가하지 않고 모델을 호출하지 않으며, Claude Code가 각 응답 뒤에 밀어 주는 사용량만 받고 카운트다운을 위해 로컬에서 1분마다 타이머만 실행합니다. 캐시 타이머는 실제 API 캐시 적중/실패 횟수로 검증되고, TTL은 관찰한 적중 또는 실패에서 학습됩니다. 상태는 재시작 후에도 유지되며 한도는 프로젝트 사이에서 공유됩니다. 5h와 7d 링에는 구독이 필요하고 API key에서는 Context와 Cache만 표시됩니다. 'claude plugin marketplace add Vosssa/claude-usage-band'와 'claude plugin install usage-band@claude-usage-band --scope user'로 설치합니다. MIT 라이선스입니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add Vosssa/claude-usage-band
claude plugin install usage-band
원문 / README

usage-band

Your Claude Code limits, context fill and prompt-cache warmth, right above the prompt.

usage-band: context, 5h, weekly and cache rings above the Claude Code prompt

Four small rings, always in view:

| | What it shows | |---|---| | Context | How full the context window is: 92k / 1M | | 5h | Your 5-hour usage limit, and when it resets | | 7d | Your weekly limit, and when it resets | | Cache | Whether the prompt cache is Warm (and how long it has left) or Cold |

Rings go green → amber → red as you approach a limit.

The big-context reminder

Above 400k tokens of context, a reminder row appears with one-click actions. It knows the state of the cache and suggests the cheapest move:

usage-band reminder row with Clear, Compact and Later buttons

| Situation | Message | Suggested | |---|---|---| | Cache is cold | Cache cold: next message re-reads 452k. Clear is free. | Clear | | Cache expires within 10 min | Cache expires in 6m: compact now while it's cheap. | Compact | | Cache is warm | 452k in context: each turn re-sends all of it. | Compact |

Later hides the row until the context grows by another 100k.

Why this matters: a cached prompt is read at about a tenth of the normal input price. Once the cache has expired, your next message pays to read the whole conversation again, and so does /compact. /clear costs nothing.

Terminal too

In terminal Claude Code it shows the same four items with text rings (○ ◔ ◑ ◕ ●):

usage-band in terminal Claude Code

Install

claude plugin marketplace add Vosssa/claude-usage-band
claude plugin install usage-band@claude-usage-band --scope user

Restart Claude Code. The band appears in every session, in both the desktop app and the terminal.

Update later with:

claude plugin marketplace update claude-usage-band
claude plugin update usage-band@claude-usage-band

Cost: zero tokens

claude plugin details usage-band@claude-usage-band reports Always-on: ~0 tok.

  • It adds nothing to the prompt and never calls the model.
  • The usage numbers are pushed to it by Claude Code after each response. It never polls for them.
  • It runs one local timer, once a minute, to keep the countdowns current.

Notes

  • The cache timer is checked against the real numbers. The countdown runs from your last response. After every message, the API's own cache counts show whether it was actually read from cache (✓ hit 98%) or paid in full (✗ missed 452k). An unexpected miss also shows a toast.
  • The TTL is learned. It starts by assuming 1 hour on a subscription and 5 minutes on an API key. When a message sent after a longer pause still hits, or misses, the band switches to the TTL it actually saw and remembers it.
  • It remembers between restarts. The limits and the cache timer show up right away when you open a session, not only after your first message. Limits are shared across projects: a session you switch back to picks up newer numbers within a minute.
  • The 5h and 7d rings need a subscription. On an API key, only Context and Cache are shown.

License

MIT

동명의 다른 작품

비슷한 프로젝트