Problem
When Claude Code hits the subscription usage limit ("5-hour limit reached - resets 3pm"), the session pauses and the user must manually wait and type "continue" to resume. For long-running tasks (overnight work, AFK coding), this kills productivity.
This has been reported multiple times:
Community Solution
I built an open-source tool that solves this today:
npm i -g claude-auto-retry
claude-auto-retry install
How it works: Intercepts the claude command transparently via a shell function, monitors the tmux pane for rate limit messages, waits for the reset time (timezone-aware), and sends "continue" automatically via tmux send-keys.
- Zero dependencies, zero workflow change
- Works with and without tmux (auto-creates session if needed)
- Verifies Claude is still the foreground process before sending keys
- Supports
--print mode (buffers + retries for piped usage)
- 59 tests, MIT licensed
Repo: https://github.com/cheapestinference/claude-auto-retry
npm: https://www.npmjs.com/package/claude-auto-retry
Suggested Native Fix
While the community tool works, this behavior should be built directly into Claude Code:
- When rate limit is hit, show the reset time (already done)
- Add an "Auto-continue when limit resets" option to
/rate-limit-options
- Claude Code sleeps internally until the reset time + margin
- Automatically resumes the conversation — no tmux, no wrapper, no external tool
This would be a much cleaner UX since Claude Code already knows the reset time from the API response and can handle the retry internally without needing terminal monitoring.
Environment
- Claude Code 2.1.x
- Anthropic Pro/Max subscription
- All platforms (Linux, macOS)
Problem
When Claude Code hits the subscription usage limit ("5-hour limit reached - resets 3pm"), the session pauses and the user must manually wait and type "continue" to resume. For long-running tasks (overnight work, AFK coding), this kills productivity.
This has been reported multiple times:
Community Solution
I built an open-source tool that solves this today:
How it works: Intercepts the
claudecommand transparently via a shell function, monitors the tmux pane for rate limit messages, waits for the reset time (timezone-aware), and sends "continue" automatically viatmux send-keys.--printmode (buffers + retries for piped usage)Repo: https://github.com/cheapestinference/claude-auto-retry
npm: https://www.npmjs.com/package/claude-auto-retry
Suggested Native Fix
While the community tool works, this behavior should be built directly into Claude Code:
/rate-limit-optionsThis would be a much cleaner UX since Claude Code already knows the reset time from the API response and can handle the retry internally without needing terminal monitoring.
Environment