What is usage-limit?
usage-limit is a Claude Code mod by joaosavi that keeps the account usage limit from running out mid-task, with separate limits for the 5-hour and the 7-day windows: one subagent at a time (90% and 97%), a commit of the work in progress. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | joaosavi |
| Repository | joaosavi/cockpit |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | High risk (56/100) |
| Rank | #6,633 of 9,397 Claude Code mods; #1,244 in Cost & usage |
| License | MIT |
| Last commit | 2026-11-18 |
| Hooks | 10 events |
| Sees | classic hooks, every prompt, every tool call, subagent spawns |
| Draws on | AbovePrompt |
Is usage-limit safe to install?
usage-limit scores 56/100 on the MCPMods security check: High risk. Things to review: writes files or config; reads environment variables; watches every prompt or event. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.write | writes files |
$.prompt.submit | drives Claude |
$.session.id | |
$.session.usage | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.invalidate | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
How do I install usage-limit?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/joaosavi/cockpit claude plugin validate ./cockpit/usage-limit
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add joaosavi/cockpit && claude plugin install usage-limit@cockpit
Or ask Claude to set it up
Paste this into Claude Code and it installs usage-limit for you:
Install the "usage-limit" Claude Code mod from https://github.com/joaosavi/cockpit/tree/main/usage-limit. Run claude plugin validate on it first and show me what it can access before you enable it.
More from joaosavi/cockpit
This repository has at least 9 Claude Code mods on MCPMods.
- collision-guard: Warns when two Claude Code sessions on this machine edit the same file, and holds a git command once when it would stage (Review before installing)
- hud: A heads-up display under or above the prompt: model, branch, context and plan limits, and memory headroom. /hud opens th (Review before installing)
- loop-breaker: Notices when the agent goes in circles (repeated fix attempts on one file, the same error coming back, the same call rep (Review before installing)
- memory-guard: Keeps typecheck, build, test and Playwright runs under the memory limit, the tightest cgroup limit on Linux or the machi (Review before installing)
- panel: A local web page with a card for every Claude Code session on this machine: whether it waits for you, what it needs, wha (High risk)
- pipefail: Adds set -o pipefail to a command that pipes a test, typecheck or lint run into tail, head or grep, so a failing run can (Review before installing)
- recall: Searches the ai-memory server for the words of each request and adds the best matching memory pages to it, as the hook's (High risk)
- secret-guard: Hides every secret value in tool output as before the agent reads it, MCP and subagent output included, and writes the r (Review before installing)