context-attachment-manager
Codex and Claude Code plugin (works in Claude Desktop): choose which past images go to the model with your next message. Unchecked images become placeholders, the conversation goes on, and requests st
翻譯準備中
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Usage HUD for Claude Code: plan limits with pace, context breakdown, prompt cache and estimated cost, above the prompt
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗A small usage bar that sits above the Claude Code prompt and opens into a row of cards. You can see how much of your plan limits you have used, when they reset in your own time zone, whether you're using them faster than the clock refills them, what is filling your context window, whether the prompt cache is still warm, and roughly what the session would cost at API prices.
Free and MIT licensed. If it ever saved you from a surprise limit, ☕ tip dadTheeBuilder (pay what you want).
Click details › (or type /hud) and the bar opens into four cards above the prompt: Limits, Context, Cache and Session. They are drawn on your terminal's own background, so they fit light and dark terminals alike.
You need Claude Code 2.1.289 or later (plugins written as hook modules). In a terminal:
claude plugin marketplace add rsvishalsingh93/claude-usage-hud
claude plugin install usage-hud@claude-usage-hud
Then restart Claude Code, or run /reload-plugins in a running session. The bar appears above the prompt once the session has usage to show.
Inside Claude Code you can do the same with /plugin marketplace add rsvishalsingh93/claude-usage-hud followed by /plugin install usage-hud@claude-usage-hud.
claude plugin marketplace update claude-usage-hud
claude plugin update usage-hud@claude-usage-hud
claude plugin uninstall usage-hud@claude-usage-hud
claude plugin marketplace remove claude-usage-hud
details › or /hud | open the cards; ‹ hide or /hud again closes them. Clicking needs Claude Code's fullscreen layout (the terminal only reports clicks there); on the main screen the bar reads /hud for details, and ctrl+x tab then Enter works too |
/hud calm | stop the animations (icons and numbers stay); run it again to turn them back on |
The bars. The fill is how much of a limit is used, green, then amber, then red as it fills. If your current pace would use a limit up before it resets, the bar says when, in amber: runs out ~Thu 4:10 PM. When it doesn't, nothing extra is shown. In the cards, the bars ripple while Claude is spending tokens and stand still otherwise.
The icons change with the value beside them:
| 🌕 🌖 🌗 🌘 🌑 | 5-hour limit: a moon waning as the limit drains |
| 🌱 🌿 🌳 🍂 🥀 | weekly limit: a plant ageing through the week |
| 💧 🎈 💥 | context: a bubble filling up; 💥 means automatic compaction is close |
| 🔥 ⏳ 🧊 | prompt cache: warm, last five minutes (the time switches to a mm:ss countdown), cold |
| 💰 💸 | cost: idle, spending |
| 💳 | an organization's spend limit (enterprise gateways), shown in place of the plan windows |
The cards.
| Shown | Where it comes from |
|---|---|
| 5-hour and weekly %, reset times | Anthropic's servers, with each response: exact |
Context tokens (193k / 1.0M) | the last response's usage: exact |
| Cache warm or cold, cached/written/new | the last response's usage and the cache lifetime: exact counts, and the countdown assumes the standard lifetime |
| Context by category | Claude Code's local estimate, the same as /context: estimated |
| Cost, burn per hour | token counts priced at Claude Code's built-in API rates, the same as /cost: estimated. On a Pro or Max subscription you are not billed per token, so this is what the session would cost on the API, not a charge |
| Pace and projections | your usage over the last half hour once there is ten minutes of it, the window's average before that: projection |
The HUD only knows what this run of Claude Code has seen, so until the first reply comes back some values are missing or off:
unknown and the bar leaves it out, even if the cache is still warm from before you closed the session. After the first reply it is exact again./cost reports for the session; if that starts over on resume, so does the HUD./theme to Auto (match terminal) so Claude Code matches your terminal's light or dark background./hud calm keeps it to once a second.The plugin only reads. It never blocks, rewrites or answers anything that isn't its own: every hook below passes the event on unchanged with next(e), except /hud, which it owns.
| Hook | What it does |
|---|---|
session.start | registers the /hud command, reads the session's usage once and starts the clock that keeps the countdowns live |
command.run (only /hud) | opens or closes the cards; /hud calm turns the animations off and on. Other commands are not seen |
session.measure | re-reads usage when Claude Code measures the session |
turn.start, turn.complete | notes when Claude is working (for the animation), and after each turn records the last request's token counts (cached, written, new) for the Cache card |
ui.render (the band above the prompt) | draws the bar and the cards; it steps aside for Claude Code's own surveys there |
It calls $.session.usage (the figures /cost, /context and the rate-limit headers already give Claude Code), $.clock, $.ui and $.state (its own snapshot, kept for the session). No network calls, no files, no processes, and nothing leaves your computer.
The plugin is one hooks module, plugins/usage-hud/hooks/register.tsx. To try a change without installing:
claude --plugin-dir ./plugins/usage-hud
Checks:
claude plugin validate ./plugins/usage-hud
claude plugin test ./plugins/usage-hud
Usage HUD also lives at under5dollars.com/usage-hud, next to CCPrune, a Mac app that makes long Claude Code chats lighter before you resume them. Both are made by Jhilmil Labs.
Like them? ☕ Tip dadTheeBuilder, any amount, nothing to unlock, and follow @dadtheebuilder on 𝕏 for new tools.
MIT