ClaudeCodeMod

All shelves / Mods / Usage

limit-bars

By FynnXland

limit-bars is a Claude Code usage mod by FynnXland.

Draws the 5-hour and weekly limits as two slim bars above the prompt, a ring for how long the prompt cache stays warm, and asks before a costly cold send.

Draws

Install

The marketplace name is fynn-mods.

In your shell
claude plugin marketplace add FynnXland/fynn-mods
claude plugin install limit-bars@fynn-mods
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.8.0
License
MIT
Repo stars
4
Last change
2026-10-19

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Runs a command when you press
  • Calls another program on this machine

Tested with Claude Code v2.1.295. Inside a session: /plugin marketplace add FynnXland/fynn-mods and /plugin install limit-bars@fynn-mods. It loads in the next session, or after /reload-plugins. The terminal shows no bars below 53 columns. /keepwarm is off by default, because every ping costs quota. The storage ring is off by default and Windows only, set with storagePath. /bars shows or hides each part in all open chats.

The marketplace, fynn-mods, holds FynnXland's six mods; each installs on its own. Plan limits and the prompt cache are why this page files it under usage. antiburn draws the five-hour and weekly limits with reset times and even-pace markers. cache-tax keeps the one-hour cache warm while you step away and stops a send into a cold cache once. This one shares the newest limit reading between all open chats on the computer, asks Send anyway, Compact first, or Cancel before a typed message goes into a cold cache in a chat of 150k or more, and adds /handoff, which has Claude write a short handoff and clears the chat for it. In the source, the bars are an AbovePrompt render and the cold-send question a prompt.submit hook.

Demo

The author's drawing of the limit-bars band: the 5-hour limit at 42%, resetting in 2 h 14 min, and the weekly limit at 18%, resetting Monday 09:00, as two slim bars; a green cache ring with 42 minutes left at 212k tokens of context; and a storage ring for a drive with 419 of 931 GB used.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • prompt.submitWhen you send a prompt
  • command.runWhen you run its slash command/cache/handoff/keepwarm/bars/disk
  • ui.renderDraws into the sessionAbovePrompt
  • session.measureWhen usage is measured

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

Files

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

Facts

Author
FynnXland
Category
Usage
Marketplace
fynn-mods
Repo
FynnXland/fynn-mods
Folder
mods/limit-bars
Version
0.8.0
License
MIT
Repo stars
4
Last change
2026-10-19
Language
TypeScript
Files
24

Other mods in Usage

claude-loadGerruxOpens a /load pane of CPU and memory per Claude Code session, with orphaned dev servers you can end, and draws a load line above the prompt under high load.smart-compacthellosverreOffers /compact in a dialog above the prompt at good moments: after a commit, when tests go green, before the prompt cache expires, or when Claude asks.tideHula-Hoop-AIDraws the context window as a tide above the prompt: a fill bar by phase, a sparkline of recent turns, the rise per turn, and turns left before compaction.cache-ttl-statuslineJerrettDavisDraws session, plan-limit, and Headroom lines with model, cost, context, and a cache TTL that turns yellow then red, below the prompt or, in mod mode, above it.usage-meterLeeHigma0201Shows context fill, the 5-hour and 7-day plan windows, and session cost on the status line, and toasts when a plan window crosses 80% and 95%.subagent-meterNarenDawarShows on the status line how many subagents ran, their share of output tokens and of all tokens, and the agent type that used the most.usage-weatherptpmediabrDraws one line above the prompt with the context as a weather icon, the 5-hour and weekly limits with resets, cache warmth, and a Clear & continue button.am-context-barromnycristopherDraws a card above the prompt with context use against where quality drops, what fills it, turns left, limits, git status, and the phase of a plan you're on.compactlyswapnildahiphaleOpens a cost and cache pane with each turn's cost and when the cache goes cold, and compacts at a natural break a Sonnet judge picks, with a handoff summary.cache-meterT-AI-LabsDraws one row above the prompt with how much of the last turn the prompt cache served, how long it stays warm, and a Keep warm switch that refreshes it.context-meterT-AI-LabsDraws one row above the prompt with the context fill against an auto-compact threshold you pick, and Compact and Clear buttons.usage-limitsT-AI-LabsDraws one row above the prompt with how much of the 5-hour and weekly limits is used, with the time until each resets.
All 183 in Usage