ClaudeCodeMod

All shelves / Mods / Usage

usage-limits

By T-AI-Labs

usage-limits is a Claude Code usage mod by T-AI-Labs.

Draws one row above the prompt with how much of the 5-hour and weekly limits is used, with the time until each resets.

Draws

Install

The marketplace name is T-AI-Labs.

In your shell
claude plugin marketplace add T-AI-Labs/claude-code-mods
claude plugin install usage-limits@T-AI-Labs
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.6.1
License
MIT
Repo stars
4
Last change
2026-10-24

What it can reach

  • Draws in the session
  • Reads usage or context figures

Built and tested against Claude Code 2.1.295, the engine in the Claude desktop app 2.31226.1; the function-hook API is in early access. The commands also work inside Claude Code with /plugin in place of claude plugin. New sessions load the changes. Claude Code reports the limits only on a subscription plan, with each response; until the first one the row shows the last reading. context-usage already contains this row: install one or the other.

The marketplace name is T-AI-Labs, and it lists five mods, each installed on its own. The limits are why this page files it under usage. usage-bar, by omeerdvrn, draws the 5-hour and 7-day limits under the prompt with the branch, model, context, and cost. usage-band, by JetsonChan, draws one line for the limits, the context, and the last turn's cache hit. This one is the limits alone, a gauge for each window, yellow from 75% and red from 90%. Sessions running side by side share their readings through a file on your machine once a minute, so an idle session still shows what the others used.

Demo

The author's drawing of the usage-limits row: the 5-hour limit at 42%, resetting in 2h 13m, and the weekly limit at 78% in yellow, resetting in 3d 4h. The figures are the author's example.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • classic.SessionStartA Claude Code event
  • session.measureWhen usage is measured
  • ui.renderDraws into the sessionAbovePrompt

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

Files

The author's source, 3 files. They load when you open them.

Facts

Author
T-AI-Labs
Category
Usage
Marketplace
T-AI-Labs
Repo
T-AI-Labs/claude-code-mods
Folder
usage-limits
Version
0.6.1
License
MIT
Repo stars
4
Last change
2026-10-24
Language
TypeScript
Files
6

Other mods in Usage

context-usageT-AI-LabsDraws the context fill with an auto-compact threshold, Compact and Clear buttons, and the 5-hour and weekly limits in two rows above the prompt.rich-statuslineTheBabaYagaDraws one line above the prompt with the directory, git branch and changes, model and effort, and bars for context and the 5-hour and 7-day limits.cachebeat404MayankKeeps the prompt cache warm while you are away with a small background request, and draws a beating heart under the prompt and a beat count under your turn.tokensaverAGregDevPuts Clawd in a pane and a band above the prompt, trims noisy shell output before Claude reads it, warns as the context fills, and routes subagents by tier.colorwheelAlexeyHRDesignDraws a band in the desktop app with your 5-hour and 7-day limits on its edges and the context as weather, and redraws replies with full-width diagrams.model-pickeralfredtmDraws a band above the prompt when a session opens that lists the models by digit, and runs /model for the one you press; 0 keeps the current one.context-meterAndrewDongminYooDraws the measured context fill above the prompt past 50%, and skips an auto-compact set off when an advisor request makes the session read twice as full.effort-cycleAnercoSteps the effort level of the agent in view with Ctrl+↑ and Ctrl+↓, and draws it as a colored meter in the footer and in each subagent's tasks list row.dotclaudeCarloArnoneHolds a commandOpens a Workspace pane of live context, rate-limit, and cost traces with ten panels, and refuses Claude's file edits until your message approves.dashbandEgonLeitnerDraws how long the prompt cache has left, the context fill, and the 5-hour and weekly limits against their pace, in the footer and as a band above the prompt.codemodeejklockGives Claude one tool that runs a JavaScript script calling the session's own tools, so only the output returns, and draws its nested calls live in the row.sidebarFayequePDocks a stats sidebar beside the chat: tasks, context, tokens, the limits or cost a session used, cache hit rate and expiry, output speed, and git.
All 183 in Usage