Pace your Claude-code to avoid hitting limits A Claude Code plugin called cc-limit-pacer, version 0.1.1, paces usage against 5-hour and weekly plan limits by dropping new sessions one model tier (Fable to Opus, Opus to Sonnet) with the advisor off once a window is at least 50% used and on pace to hit its limit, and by holding automated SDK or `claude -p` runs until the window resets. The plugin, formerly named autocompact-gate, also raises auto-compaction on 1M-window models from about 570k to about 830k tokens and audits wasted usage; it requires Python 3.9+ and a private GitHub repo clone, and adds roughly 233 tokens to every session. Paces Claude Code against your 5-hour and weekly plan limits, so you get locked out less and see what you waste. It does three things: 1. Paces your usage. A hook watches your 5-hour and weekly usage. When you're on track to run out "hot": a window is at least 50% used and on pace to hit its limit , it: - starts new sessions one model tier down Fable → Opus, Opus → Sonnet with the advisor off ; - holds automated runs SDK / claude -p , or sessions working in a temp directory until the window resets. When usage cools down, it restores your model and advisor settings. Your interactive sessions are never held. 2. starts 3. Compacts later. On 1M-window models, sessions auto-compact at about 830k tokens instead of about 570k, so you keep more context and compact less. 4. Audits your usage. What pacing would have saved, what you wasted compacting, lockouts, unused weekly and Fable allowance , and how full your limits get, as text or a stats page. Formerly autocompact-gate ; state in ~/.claude/state/autocompact-gate moves to ~/.claude/state/cc-limit-pacer on first run. Python 3.9+, standard library only. Before you start - You need Claude Code with plugin support, and python3 3.9+ on your PATH . The hooks and commands run Python. - The repo is private. Claude Code clones it with your normal git credentials, so git clone https://github.com/RahulBalakavi/cc-limit-pacer has to work for you first for example gh auth login , or access granted to your GitHub account . 1. Install. From a terminal: claude plugin marketplace add RahulBalakavi/cc-limit-pacer claude plugin install cc-limit-pacer@cc-limit-pacer Or from inside Claude Code: /plugin marketplace add RahulBalakavi/cc-limit-pacer /plugin install cc-limit-pacer@cc-limit-pacer Restart Claude Code or start a new session so the hooks and commands load. 2. Check it's installed. claude plugin details cc-limit-pacer@cc-limit-pacer cc-limit-pacer 0.1.1 Component inventory Skills 6 backtest, calibrate, setup, simulate, status, uninstall Hooks 2 SessionStart, UserPromptSubmit harness-only — no model context cost Projected token cost Always-on: ~233 tok added to every session 3. Set it up inside Claude Code. /cc-limit-pacer:calibrate 36 24 "2026-10-09 11:00" /cc-limit-pacer:simulate /cc-limit-pacer:setup /cc-limit-pacer:status Run them in that order. The calibrate numbers are your 5-hour %, your weekly %, and the weekly reset time, all from /usage . | Command | What it does | Changes anything? | |---|---|---| | /cc-limit-pacer:calibrate <5h%