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

usage-inspector

A Claude Code plugin that pins a one-line usage band above the prompt showing context usage, cost, tokens added per prompt, and 5-hour / 7-day limit pace, plus a context breakdown pane. Works in the terminal, desktop app, and VS Code.

번역 준비 중

이 mod 소개

usage-inspector 在提示列上方固定顯示一行用量狀態列,內容包含脈絡使用百分比、tokens / 視窗與工作階段花費,顏色依用量由綠轉黃再轉紅。Turns 區塊顯示最近 8 次提示各自新增的 token,最新一根長條會隨 Claude 回應即時成長。5h / 7d 區塊顯示各額度已用百分比、視窗已過時間標記、剩餘時間與重置時間。

點擊狀態列末端的 ⓘ 或執行 /context-detail 可開啟脈絡面板,顯示模型、自動壓縮門檻與剩餘空間、快取命中率、各類別 token、前 5 大 MCP 伺服器與記憶檔案用量,以及技能、代理與斜線指令所耗 token,面板開啟時每回合會自動更新。

安裝方式:

/plugin marketplace add purplecofe/usage-inspector
/plugin install usage-inspector@usage-inspector

Turn 歷史儲存在外掛儲存區,新工作階段仍能還原最近 8 回合。支援終端機、桌面應用程式與 VS Code。

설치

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

claude plugin marketplace add purplecofe/usage-inspector
claude plugin install usage-inspector
원문 / README

usage-inspector

English | 繁體中文

A Claude Code plugin that pins a one-line usage band above the prompt. Context usage, cost, tokens added per prompt, and 5-hour / 7-day limit pace stay in view without running /context or /usage. Works in the terminal, the desktop app, and VS Code.

Usage band above the prompt in the desktop app

<sub>Mockup: the bars and turns graph are drawn by the plugin's own rendering code; the surrounding app UI is illustrative.</sub>

Features

Usage band

  • Context: percent used, tokens / window, and session cost. Green below 60%, yellow from 60% to 84%, red at 85% and above.
  • Turns: tokens added by each of the last 8 prompts. The latest bar is blue and labelled, e.g. +12k. It grows live while Claude is responding.
  • 5h / 7d: percent of each limit used, next to a marker for time elapsed in the window, plus time left and reset time. When usage runs ahead of time, the gap is hatched. Within 15 points it turns yellow; beyond that, or at 90% used, it turns red.

Context pane

Click ⓘ at the end of the band, or run /context-detail, to open a pane with:

<img src="docs/images/pane.png" alt="Context pane" width="420">
  • Model, auto-compact threshold and remaining headroom, cache hit rate
  • Tokens per category
  • Top 5 MCP servers and memory files by tokens
  • Tokens used by skills, agents, and slash commands

While the pane is open it refreshes after every turn.

Turn history is kept in the plugin store, so the last 8 turns come back in a new session.

Install

/plugin marketplace add purplecofe/usage-inspector
/plugin install usage-inspector@usage-inspector

Layout

.claude-plugin/
  plugin.json        plugin metadata
  marketplace.json   marketplace entry
hooks/
  hooks.json         registers register.tsx
  register.tsx       usage band, context pane, /context-detail command
  register.test.tsx  render tests for the band and the pane
types/index.d.ts     plugin state types
promo/               15-second promo animation (Canvas, no dependencies)

비슷한 프로젝트