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

usage-band

Claude Code 프롬프트 위에 계획 사용량 및 세션 비용을 표시하는 상태 밴드

RektyRowdyy@RektyRowdyy

RektyRowdyy/claude-mods/tree/main/plugins/usage-band

번역 완료

이 mod 소개

Claude Code 플러그인으로 프롬프트 위에 상태 밴드를 렌더링하여 5시간 및 주간 속도 제한 사용량 및 카운트다운, 모듈 로드 이후의 프롬프트 캐시 토큰 및 세션 비용(/cost와 일치)을 표시합니다.

속도 제한 알약은 구독 로그인(Pro/Max)이 필요합니다. API 키만 사용할 경우 세션의 첫 API 응답 후에 표시되는 캐시 및 비용 알약만 표시됩니다. 아이콘은 Nerd Font 글리프이며 색상은 어두운 터미널 테마를 가정합니다.

개발 명령: claude plugin validate plugins/usage-band 및 claude plugin test plugins/usage-band. 훅은 hooks/register.tsx(AbovePrompt의 session.start, session.measure, turn.complete 및 ui.render)에 위치하며, 순수 포맷팅 헬퍼는 hooks/format.ts에 있습니다.

설치

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

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

usage-band

A band above the Claude Code prompt showing how much of your plan you've used and what the session costs.

󰓅 5h 20%  󰔟 2h 40m   󰃭 7d 58%  󰔟 1d 7h   󰆼 954.2k   󰄔 $4.32

| Pill | Shows | | --- | --- | | 󰓅 5h | Rolling 5-hour rate limit: % used, then time until it resets | | 󰃭 7d | Weekly rate limit: % used, then time until it resets | | 󰆼 | Prompt-cache tokens (read + written) since the mod loaded | | 󰄔 | Session cost, the same figure as /cost |

Notes

  • Rate-limit pills need a subscription login (Pro/Max). With an API key there are no windows to show, so only the cache and cost pills appear. They show up after the session's first API response.
  • Cache tokens count from when the mod loads; the cost is the whole session's, as Claude Code keeps it.
  • Icons are Nerd Font glyphs. Without a Nerd Font in your terminal they show as boxes.
  • Colours assume a dark terminal theme.

Development

claude plugin validate plugins/usage-band
claude plugin test plugins/usage-band

hooks/register.tsx holds the hooks (session.start, session.measure, turn.complete, and the ui.render hook for AbovePrompt); hooks/format.ts holds the pure formatting helpers.

동명의 다른 작품

비슷한 프로젝트