ClaudeCodeMod

All shelves / Mods / Usage

rate-limit-guard

By melodic-software

rate-limit-guard is a Claude Code usage mod by melodic-software.

Shows a toast when the account's 5-hour or 7-day rate-limit window reaches 90% or 95% and when it resets, and can draw both windows in a row above the prompt.

Draws

Install

The marketplace name is melodic-software.

In Claude Code
/plugin marketplace add melodic-software/claude-code-plugins
/plugin install rate-limit-guard@melodic-software
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
2.1.3
License
MIT
Repo stars
28
Last change
2026-10-27

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Calls another program on this machine

Needs a Claude Code build with mods on, Node.js on PATH, installed on its own, and auth that exposes subscription windows; on other auth it only reacts after a limit. Below the mods floor, or with mods off, only its StopFailure hook runs, which appends a record to ~/.claude/rate-limit-guard/stop-events.jsonl when a turn ends on a rate-limit error. That hook needs Bash, Git for Windows on native Windows. The toast lasts 4 seconds. A window's first reading is never toasted. Lines to Claude are off by default and need model_notices. The band row is off by default. /rate-limit-guard band on turns it on for the session, and /rate-limit-guard prints each window's use and reset time. Claude can call mcp__rate-limit-guard__status. The module writes ~/.claude/rate-limit-guard/rate-limits.json by running node, at once when a window moves a whole point and otherwise at most every 300 seconds, with the account's email when it can match the reading to the account. It reads the signed-in account from .claude.json. The Desktop app and VS Code were not run. The plugin README's own install line names rate-limit-guard@<marketplace>.

The marketplace name is melodic-software, the same marketplace as context-budget and display-redaction. This one installs on its own. The repository README gives one install line for every plugin, /plugin install <plugin-name>@melodic-software; this page puts this plugin's name in that line. Plan limits are why this page files it under usage. usage-meter draws the 5-hour and 7-day limits as small bars above the prompt. limits-meter draws plan limits and context above the prompt in tokens and percent. This one stays quiet until a window reaches the 90% mark or the 95% line, and writes the windows to one file on the machine, so loop sessions that read it can pause before a limit.

Demo

The Window changes shown to you section of the rate-limit-guard README: when a window rises to the approach mark or the line threshold, or resets after reaching it, a toast shows for 4 seconds, such as 5h at the 95% line threshold · resets 21:00 UTC, and one transcript line Claude does not read.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • session.compactWhen the context is compacted
  • session.measureWhen usage is measured
  • turn.stepAt each step of a turn
  • prompt.submitWhen you send a prompt
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • tool.callAround a tool call, where it can hold one
  • command.runWhen you run its slash command/rate-limit-guard
  • 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.

Slash commands 1

  • /rate-limit-guardRate-limit windows and verdicts; band on or off sets the band row for this session

Hooks 2

  • SessionStart · startup|resume|clear|forksh "${CLAUDE_PLUGIN_ROOT}/lib/prerequisites.sh" node-notice /rate-limit-guard:check RATE_LIMIT_GUARD_ENABLED; ${PPID:+exit}; powershell -NoProfile -ExecutionPolicy Bypass -File "${CLAUDE_PLUGIN_ROOT}/lib/prerequisites.ps1" node-notice /rate-limit-guard:check RATE_LIMIT_GUARD_ENABLED
  • StopFailure · rate_limitnode

Files

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

Facts

Author
melodic-software
Category
Usage
Marketplace
melodic-software
Repo
melodic-software/claude-code-plugins
Folder
plugins/rate-limit-guard
Version
2.1.3
License
MIT
Repo stars
28
Last change
2026-10-27
Language
Shell
Files
21

Same repo on other shelves

Skills

  1. 20728design-thinkingmelodic-software/claude-code-plugins264
  2. 22318plantuml-syntaxmelodic-software/claude-code-plugins212
  3. 23438architecture-documentationmelodic-software/claude-code-plugins181

Marketplaces

  1. 658melodic-software/claude-code-pluginsmelodic-software/claude-code-pluginsClaude Code plugin marketplace: repo-agnostic skills, hooks, agents, and MCP servers.32

Other mods in Usage

orca-quotamutlumehmetDraws the 5-hour and 7-day usage of every Claude account on this machine in one band above the prompt, and warns once before the current account hits its limit.context-keepermishgoldenbergOpens a pane of what fills the context window with tips to trim it, and saves a handoff note of the goal, decisions, files, and TODOs to .claude/checkpoints/.usage-metermishgoldenbergOpens a pane of the 5-hour and 7-day plan limits with reset countdowns, burn rate and when a limit fills, session cost, cache hit ratio, and tokens per turn.usage-quotaanantraghunathDraws the 5-hour and weekly limits with a forecast at reset and the context window above the prompt, with a Compact button and Auto compact at a set percent.usage-graphdonvitoDraws cards above the prompt for the 5-hour limit, the weekly limit, and the context window, each with its percentage, a bar, and when it resets.wavy-usageBatuhanCakmakkDraws liquid-filled rings above the prompt for the 5-hour and 7-day limits, the context, and the prompt cache, a jet for the effort, and a pane of recent turns.usage-band-modjonathanlocksDraws one line above the prompt with the model, session cost, context, the 5-hour and weekly limits, and a per-model weekly limit, led by a pixel crab mascot.usage-statsconnorchuang32Opens /usage-stats in the desktop app: a heat map of tokens per day, trends and models tabs, and a Wrapped-style card you can save as an SVG.session-infodougcunhaHolds a commandOpens a pane of the session: context, cost, prompt cache, plan usage, agents, checks, CI runs, and Git, and holds a prompt that would rewrite an expired cache.ccbaremaballarinDraws a quiet band above the prompt: model and effort, the GitHub repo and branch with lines changed, a context bar split as /context, tokens, and plan limits.token-monitor-hudfractal-manifoldDraws the 5-hour and 7-day windows above the prompt with reset times and where each lands at this pace, plus Codex and Antigravity quotas if they're signed in.cost-ledgerFynnXlandKeeps a ledger of what every chat cost, plus other mods' model calls, and draws /ledger: today, 7 and 30 days, projects, top chats, models, and plan limits.
All 183 in Usage