terryso/claude-auto-resume
Shell wrapper that waits for Claude Code quota resets and relaunches work.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Claude Auto-Resume is a local wrapper around the Claude executable, not an MCP server or a checkpointing engine. It runs claude -p 'check', looks for a usage-limit message such as Claude AI usage limit reached|, and turns the reported reset timestamp into a countdown. When the wait ends, it launches Claude or hands off to a user-supplied shell command.
On Linux and macOS, claude-auto-resume.sh uses Bash and standard tools including grep, date, sleep, and awk. Windows has a PowerShell implementation, claude-auto-resume.ps1, and a .cmd launcher. The integration boundary is the executable and its human-readable output: no MCP registration is needed, and conversation state remains with Claude CLI.
Key Capabilities & Differentiators
The wrapper separates when to launch from what to launch. The default path opens a fresh Claude session; -c continues the last conversation, while -p or a positional argument supplies a prompt. -e/--execute and its --cmd alias instead run a shell command after the wait, with support for pipelines, redirections, and compound operators. The wrapper does not select another model or backend.
--test-mode simulates a usage limit with a wait specified in seconds, so the countdown and command handoff can be exercised without waiting for a real reset. --check provides system-check information. Exit codes 1, 2, and 4 distinguish Claude CLI execution failure, invalid or missing reset timestamps, and resume-command failure. The tree includes parsing and limit-simulation scripts; make test is a syntax check, not proof of compatibility with a live Claude CLI version.
Trade-offs & Limitations
Compared with manual continuation, the wrapper removes the need to return at the reset time, but also removes a chance to review what will run. Unlike a fixed-time scheduler, it derives the launch time from Claude's reset message; the cost is sensitivity to CLI wording and timestamp changes. It waits out the reported limit rather than increasing quota, and launching a new session is not equivalent to recovering an interrupted conversation.
The main adoption risk is the default execution policy: Claude launches use --dangerously-skip-permissions, and custom commands execute without confirmation. The wrapper's warning and cancellation options are not a sandbox or an approval gate for individual actions. Reserve unattended use for a low-privilege, isolated development workspace with trusted inputs and no production credentials. Prefer manual continuation when approvals or reliable selection of the prior session matter.
Hardware & Deployment Guide
Install Claude CLI and make it available on PATH. Linux and macOS can run the Bash entry point directly or install it through the Makefile. On Windows, put the PowerShell script and .cmd launcher in a directory on the user's PATH; the launcher prefers pwsh and falls back to Windows PowerShell. Use PowerShell 7+ or Windows PowerShell 5.1+.
The wrapper does not require a GPU, container, or model server, but Claude execution still relies on Claude CLI and its service. No GitHub release is listed. Prefer reviewing and pinning a source revision to installing from a moving branch with elevated privileges. Before relying on unattended operation, test the countdown with a harmless command and verify reset-message parsing against the Claude CLI version you intend to run.
claude -p 'check' and derives the countdown from a reset timestamp in CLI output.-c continues the last conversation through Claude CLI.-e, --execute and --cmd accept shell commands with pipelines, redirections and operators..cmd wrapper that prefers pwsh.--test-mode simulates a wait in seconds; exit codes 1, 2 and 4 distinguish CLI, timestamp and launch failures.Developers with an isolated, version-controlled workspace who want a known Claude session or a reviewed local command to run after a quota reset.
You need MCP integration, persistent task checkpoints, per-action approvals, or unattended execution on hosts with production access.
Quick Start & Installation
wget -qO- https://raw.githubusercontent.com/terryso/claude-auto-resume/refs/heads/develop/claude-auto-resume.sh | sudo tee /usr/local/bin/claude-auto-resume >/dev/null && sudo chmod +x /usr/local/bin/claude-auto-resumeComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| claude-auto-resume ★ | 819 | — | Shell | MIT | Shell wrapper that waits for Claude Code quota resets and relaunches work. |
| obsidian-skills | 56.2k | +1.7k | Shell | MIT | Agent Skills plugins for editing Obsidian files and working with vaults |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/terryso/claude-auto-resume.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about claude-auto-resume
How does it integrate with Claude Code, and what does it actually resume?
-c asks Claude CLI to continue the last conversation rather than restoring a checkpoint maintained by the wrapper.Does it need a GPU, VRAM, or a dedicated worker?
Can a company use or redistribute it, and does local installation make Claude self-hosted?
When is it a better fit than manual continuation or an OS scheduler?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy