UsageAppears in · Band / Pane / ToastAdded

Usage Bar

A live band above the prompt with rate limits, context, spend, git and PR.

Usage Bar · Effect preview · IllustrationIllustrative
> Add pagination to the order list
⏺ I’ll look at the list component first.
5H ▓▓▓▓░░│░ 52% 2h10m 7D ▓▓░░░ 31% CTX 64k (+3.2k) ● 0:42
main +421 −68 ?1 ↑2 PR #87 ✓ approved COST $1.84 · $3.1/h
TODAY $6.20 ▁▃▅▂▇▄█ 7d $31.40 · mtd $88.10 ▾ more
❯ Refactor this function for me
❯

Illustration. Actual results depend on the mod, terminal and environment.

Install

/plugin marketplace add abyigiter/claude-usage-bar
/plugin install usage-bar@abyigiter-mods
/reload-plugins

Run these commands one at a time in a Claude Code session.

What it accesses

Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.

Reads

Yes

Reads Claude Code's own usage, cost and local /context estimate, plus git/gh counts and PR status.

Writes files

Yes

Writes budgets and per-day spend totals (kept 35 days) to the plugin's own store.

Runs commands

Yes

Runs git status, git diff --shortstat and gh pr view in the session directory.

Network

Yes

No API calls or telemetry of its own; the PR lookup reaches GitHub via your gh login.

Introduction

Usage Bar is a Claude Code function hooks mod (v1.1.0) that puts a live band above the prompt: a row of colored pills for the session's key figures, turning yellow or red when they need attention.

  • 5H / 7D limits: bar, pace tick and reset countdown; yellow when your pace would hit 100% before reset, red past 150% pace or 90% used. Hidden off a subscription.
  • CTX: context fill, tokens and last turn's growth, plus a live timer while Claude works.
  • Git and PR: branch, lines added/removed vs HEAD, untracked files, ahead/behind; the branch's PR state, review and CI via gh, with a toast when CI finishes (needs GitHub CLI signed in).
  • COST / TODAY: session spend and burn rate, today, last 7 days and month to date.
  • ▾ more opens a panel with a context breakdown and turns left before auto-compact, spend, turns and cache hit rate, top tools and failing checks.
  • /budget sets session or daily budgets with toasts at 80% and 100%; /usage prints everything as text.

Works in the CLI and the desktop Code tab; requires Claude Code 2.1.287+. Figures come from Claude Code's own $.session.usage(); the author states no extra API calls and no telemetry. It runs git status, git diff --shortstat and gh pr view in the session directory and keeps budgets and day totals in the plugin store. The repo also ships a pi version; this entry covers only the Claude Code mod. The repo has no LICENSE file and declares no open-source license; listed per the site owner's decision. Not tested by this site; the preview is illustrative.

Who it is for

  • People who want rate-limit pace and context headroom always visible
  • People who keep session or daily spend within a budget
  • People who watch PR and CI status while coding

Requirements

  • Claude Code ≥ 2.1.287
  • Works in the CLI and the desktop Code tab.
  • The PR pill needs the GitHub CLI (gh) signed in; limit pills show only on a subscription.