Fynnland

limit-bars

The 5-hour and the weekly limit as bars or rings above the prompt box.

Overview

What it is

limit-bars is a mod for Claude Code. Above the prompt box it draws two bars: one for the 5-hour limit and one for the weekly limit. You see at a glance how much of them is used, without typing a command.

Claude Code is a product of Anthropic. This mod is not from Anthropic.

What it shows

You can hide each of these parts.

Three limit-bars displays one below the other on a dark background. Top: 5h 42% and 7d 18% in green, the cache ring green with 42m and 212k. Middle: 78% and 61% in yellow, the cache ring almost empty with 4m and 388k. Bottom: 94% and 87% in red, the cache ring gray with “cold” and 455k. On the right of the same row stands Clawd, the orange pixel figure, each time.
The same display at low, high and almost full usage (recreated view).
The display with the green bars 5h 42% and 7d 18%, next to it the green cache ring with 42m and 212k and a third ring “Storage”: divided in colors by file type, in the middle 419G of 931G. On the right of the same row stands Clawd, the orange pixel figure, each time.
Optional, Windows only: a third ring shows how full a drive is, by file type (recreated view).
Three limit-bars displays as rings one below the other. Top, three green rings: 5h 42% with reset in 2h14, 7d 18% with Mon 9:00 and the cache ring with 42m at 212k. In the middle 78% and 61% in yellow, the cache ring almost empty with 4m at 388k. Bottom “5h ∞” with “−8% pace” and “forecast 83%”, next to it the green weekly ring 38% with a small orange notch and the cache ring 48m at 164k. On the right of the same row stands Clawd, the orange pixel figure, each time.
With “/bars style ring” the desktop app shows a ring per limit instead of the bars (recreated view).
Two displays without a 5-hour limit. Top “5h ∞ · −8% pace” and “forecast 83%”, below it the weekly bar at 38% with reset Mon 09:00 and an orange line slightly to the right of the end of the green segments. Bottom “5h ∞ · +7% pace” in orange and “lasts until Sun 10:45”, the weekly bar at 53% with the line shortly before the end of the green segments. On the right in each case the green cache ring, top 48m, bottom 29m. On the right of the same row stands Clawd, the orange pixel figure, each time.
Without a 5-hour limit, the top line shows the weekly pace, the line shows even use (recreated view).
Two limit-bars displays one below the other. Top, the green bars 5h 42% with reset in 2 h 14 min and 7d 18% with Mon 09:00, next to them the green cache ring 42m at 212k, a gray ring “Cost” with a small orange piece, in the middle $6.82 over /$57, and on the right four lines: CPU 23% with an arrow pointing up, RAM 61% in yellow, GPU 12% with an arrow pointing down and VRAM 38%. Bottom, the same values with rings instead of bars. On the right of the same row stands Clawd, the orange pixel figure, each time.
With cost-ledger, a cost ring shows this chat's share of the project; on Windows, CPU, RAM, GPU and GPU memory can optionally be added (recreated view).

Commands

Cache guard

If the cache is cold and the chat is large, limit-bars asks before sending and names the cost: send anyway, compact first or cancel. If sidekick also runs at the level “Cache” or “Guide”, only sidekick asks, so that you are not asked twice. Your own setting stays as it is. Shortly before the cache expires, a notice appears once: keep writing right away, or come back later with /keepwarm. If sidekick runs at the level “Cache” or “Guide”, this notice is left out; sidekick then makes its own suggestion, including a handoff with /handoff. The idea for this comes from Cache Keeper by Nate Herk (MIT license), a notice comes with the source code.

At the top a message in the chat: “Please start with the cart, the tests come afterwards.” Below it the question: The cache has been cold for 12 min, sending rewrites 455k tokens, about $2.30 API value instead of $0.23 with a warm cache. Three answers: Send anyway, Compact first, Cancel. At the bottom the display with red bars at 94% and 87% and the gray cache ring “cold”. On the right of the same row stands Clawd, the orange pixel figure.
Before a large chat with a cold cache causes cost, limit-bars asks (recreated view).

Settings

All settings of the mod are on the plugin's settings page: in the desktop app under Settings → Plugins → limit-bars → Settings, in the terminal with /config or /plugin configure limit-bars. The commands /bars and /cache change the same values. What earlier versions saved with /bars or /cache, the mod takes over once at the first start.

In the terminal a command applies at once. In the desktop app it applies in the current chat at once, in other open chats after /reload-plugins or in the next chat.

What the mod reads and does

The mod reads the limit readings and the token counts of the cache from Claude Code. It makes no network calls itself. Only when you turn on the storage ring does it start Windows PowerShell locally with two fixed scripts that add up size, free space and, per file extension, the sizes on the drive, never file contents. Only when you turn on the system values does a Windows PowerShell process run per chat, with a fixed, read-only script that queries processor, memory and GPU load from the Windows counters every second and, via nvidia-smi, the GPU memory. It runs only while the display is visible and needs about 3% of a processor core. From cost-ledger it reads for the cost ring only amounts, the project's folder name, since when recording has been running and on how many devices. From sidekick it reads only which level it is on. So that the rows of the mods form one band again, a small part of the mod only arranges the rows; it changes no row and calls nothing. For the language switch it changes the “language” setting of the eight fynn-mods, for /bars and /cache only its own settings; it leaves other plugins alone. In the desktop app it calls the claude CLI for this, only with “claude plugin list” and “claude plugin configure”. In doing so it reads its own unset settings once and saves the switches that are off by default explicitly as off. Stored locally are the limits of all chats, the cache state per chat for 7 days and the result of the drive scan; the settings sit with Claude Code's plugin settings.

Where it is visible

In the terminal, lines of text appear above the prompt. In the desktop app they are images above the prompt. Since version 0.17.0 each mod draws its own row above the prompt, and a small shared part in every band mod lines the rows up as one band again: the bars and the cache ring on the left, Clawd on the right, above them the buttons of prompt-deck, sidekick and quick-replies on top. In sessions with “claude -p”, in the SDK, in VS Code and on mobile the mod draws nothing.

Installation

You need Claude Code in a version that supports mods (tested with 2.1.325, minimum version 2.1.323). Two commands:

  1. claude plugin marketplace add FynnXland/fynn-mods
  2. claude plugin install limit-bars@fynn-mods

The mod is free of charge and is released under the MIT license. This description refers to version 0.17.5. Because Claude Code can change the interface for mods, a new version may be needed after an update.

Part of fynn-mods

limit-bars is one of eight mods that fit together. They pass small values to each other, never text from the chat, and six share the band above the prompt.

How the eight mods work together