ClaudeCodeMod

All shelves / Mods / Usage

cost-visibility

By patitow

cost-visibility is a Claude Code usage mod by patitow.

Draws a two-line band above the prompt with the plan windows, this chat's list-price cost split into main and subagents, and context. /spend opens a pane.

DrawsHolds a command

Install

The marketplace name is claude-mod-cost-visibility.

In your shell
claude plugin marketplace add patitow/claude-mod-cost-visibility
claude plugin install cost-visibility@claude-mod-cost-visibility
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.2.0
License
MIT
Repo stars
3
Last change
2026-10-06

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Holds a command

Claude Code 2.1.287 or newer, and a Nerd Font set as the terminal font for the band's icons; without one you get boxes, and the meters and numbers still work. Restart Claude Code after installing. The repo's install.sh checks for a Nerd Font and prints the commands, and a clone loads with claude --plugin-dir. Dollars are API list-price estimates; on a Team or subscription plan they are a burn meter, not your invoice. Cost guards are off by default; /spend caps on, or Cost guards in /config, turns them on.

The marketplace, claude-mod-cost-visibility, holds only this plugin. Cost and plan windows are why this page files it under usage. cost-meter, by Singh-AP, draws session cost, context, and the windows on the status line, with an optional budget that asks before the next tool call. turn-budget, by VedantAndhale, stops a turn that passes the limit you set. This one splits this chat's cost between the main session and subagents, shows a gateway spend cap where there is one, and adds a suffix to the spinner. With cost guards on, it blocks /code-review at max, xhigh, ultra, or braba, background agents, and multi-angle fan-out, through prompt.submit and agent.spawn gates. The README says it makes no network calls and sends nothing to the model.

Demo

The author's recording of cost-visibility: a two-line band above the prompt with the 5-hour and weekly windows as bars with their percent and time to reset, and under them the chat's cost, the main thread's and the subagents' shares, the context meter, and /spend at the right. As a prompt is typed, the 5-hour bar climbs from 63% to 103% and turns red, the band gets a red border, and the cost rises from $0.07 to $1.24. The values are the author's samples.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • config.setA Claude Code event
  • session.measureWhen usage is measured
  • turn.completeWhen a turn ends
  • tool.callAround a tool call, where it can hold one
  • agent.spawnWhen a subagent starts
  • prompt.submitWhen you send a prompt
  • command.runWhen you run its slash command/spend
  • ui.renderDraws into the sessionAbovePromptSpinnerPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /spendCost HUD pane. /spend · /spend close · /spend caps [on|off]

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
patitow
Category
Usage
Marketplace
claude-mod-cost-visibility
Repo
patitow/claude-mod-cost-visibility
Folder
plugins/cost-visibility
Version
0.2.0
License
MIT
Repo stars
3
Last change
2026-10-06
Language
JavaScript
Files
5

Other mods in Usage

usage-barspepperonasShows the 5-hour and 7-day limits as animated bars under the prompt, with a reset countdown, a pace mark, a projection, and six styles.clawd-dashpinkpixel-devDraws a session dashboard under the prompt: plan limits, context, cost, model, effort, git status, and file changes, beside a pixel Clawd who reacts.usage-paneT-AI-LabsOpens a /tokens pane that adds up tokens, cache hit rate, and API price by day, model, and project, and lists each session's prompts by cost and why.ribbonrobonuggetsDraws a slim band above the prompt with the 7-day and 5-hour usage left and when each resets, and whether the prompt cache is warm or cold with the next cost.hudlycfyiDraws a heads-up display above the prompt: context fill, repo state, turn progress with time estimates, and a recap with an automatic /whats-next after a break.automodemralexivyHolds a commandPicks the model and effort for each prompt, draws a bar above the prompt with context, cache countdown, cost, and savings, and denies git writes from subagents.agent-tracekrika2810Draws a pane beside the chat that lists every step after a prompt: each model request, tool call, and subagent, with time, tokens, context, and API-rate cost.idle-compactdavidarCompacts an idle session after 50 minutes, while the prompt cache is still warm, and pins a status line under the prompt with the before and after sizes.compact-timinglbzepoqoLets the model mark task boundaries and compacts at the end of a turn once the context passes 200k tokens, then resumes the work; a toast shows each compaction.context-metervumichienDraws a band above the prompt with what fills the context window by category, a countdown to when the prompt cache expires, and a Compact button.usage-meterhamzaferDraws the 5-hour and 7-day plan limits as small bars above the prompt, with the reset countdown and what this session cost.context-barhamzaferDraws the context window as one stacked bar, a color per category, with token counts and the compaction point.
All 183 in Usage