Melonisjy

Claude Ration — Development skill for Claude Code

Development community

Automatically stops Claude Code when it hits your custom usage threshold.

How to install Claude Ration

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Melonisjy/claude-ration and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Ration does

Automatically stops Claude Code when it hits your custom usage threshold.

Alternatives in Development

  • HERO Anti OverDefense — HERO = Hashing · Edge cases · Rubrics · Overbuild — the four shapes coding agents over-defend in 333 ★
  • Usage Limit Reducer — A Claude Code skill that stops you from burning through your usage limit 186 ★
  • Wife — Local, persistent and auditable memory layer for Claude Code, Codex, Cursor & Gemini CLI 55 ★

README

claude-ration

Never let Claude Code hit a rate limit mid-task again.
Automatically wrap up and safely pause your Claude Code sessions when usage reaches your custom threshold.

npm version npm downloads license

English | 한국어 | 简体中文


Why `claude-ration`?

Long Claude Code sessions are great — until you hit the 5-hour or weekly rate limit in the middle of a refactor and get cut off with a half-edited file.

`claude-ration` is a usage governor built on Claude Code hooks:

  • Stops before the wall: once usage crosses your stop threshold, new prompts and tool calls are blocked.
  • Graceful mode: the first tool call over the limit is still allowed so Claude can finish its current step; the next one is blocked.
  • Keeps a reserve: stop at 70% and the remaining quota stays available for urgent fixes (use override when you need it).
  • Live status line: shows 5-hour and weekly usage with color-coded bars.
daily 42% ████░░░░░░ /70%  weekly 18% ██░░░░░░░░ /80%  reset 2h 13m

Quick Start

npm install -g claude-ration
claude-ration install

Then restart Claude Code. That's it.

A global install is required: the hooks call the `claude-ration` binary directly so they stay fast (no npm lookup on every tool call). `npx claude-ration install` is refused for that reason.

`install` adds to `~