Agent Retrier — Development skill for Claude Code
Auto-resume Claude Code or codex after a usage limit.
How to install Agent Retrier
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open a0s/agent-retrier and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Retrier does
Auto-resume Claude Code or codex after a usage limit. One shell script, no tmux, no daemon.
Alternatives in Development
- Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
- Claude Auto Resume — A shell script utility that automatically resumes Claude CLI tasks when usage limits are lifted 732 ★
- Memory Search — Search through Claude's persistent memories for specific content, patterns, or keywords 332 ★
README
agent-retrier
[](https://github.com/a0s/agent-retrier/actions/workflows/test.yml) [](LICENSE)
Keep a **Claude Code** or **codex** session going when it stops — for a usage limit, or for a server that refused the turn — and restart it before it runs out of context. `agent-retrier --claude` wraps claude, `agent-retrier --codex` wraps codex, and neither is an afterthought: both agents get the same features, each driven the way it actually works. One shell script, with no tmux and no daemon behind it.
brew install a0s/agent-retrier/agent-retrier
agent-retrier-claude # instead of: claude
agent-retrier-codex # instead of: codex
Install
Homebrew, on macOS and Linux:
brew install a0s/agent-retrier/agent-retrier
Or take the file. It is self contained and there is no build step:
curl -fsSLO https://raw.githubusercontent.com/a0s/agent-retrier/main/agent-retrier.sh
chmod +x agent-retrier.sh
ln -s agent-retrier.sh agent-retrier-claude # optional: short names,
ln -s agent-retrier.sh agent-retrier-codex # one per agent
One file, three names. `agent-retrier` takes `--claude` or `--codex` (claude when neither is given); `agent-retrier-claude` and `agent-retrier-codex` are the same file with the flag built into the name. Both names are installed whichever agents you have: on a machine without codex, `agent-retrier-codex` just says so, which also means installing codex later needs nothing reinstalled.
Every version is also attached to a [release](https://github.com/a0s/agent-retrier/releases), with the notes for it in [CHANGELOG.md](CHANGE
Related Skills
Claude Retrier
Auto-resume Claude Code after a usage limit. One shell script, no tmux, no daemon.
Resume Fleet
Auto-resume a fleet of Claude Code CLI sessions that hit the usage limit. A hands-off launchd daemon (recommen
Cloophole
Auto-resume your Claude Code work the moment your usage limit resets. A tiny Windows app that watches the limi
Auto Resume
Arm a local timer that types your next prompt into this terminal ~10 minutes after your rate limit resets. Arm
Claude Code API Watchdog
Auto-recover Claude Code sessions stuck on transient API errors. Outer-loop watchdog for unattended tmux Claud
Claude Autocontinue
One-file bash script that auto-types 'continue' into Claude Code tmux panes when rate limits reset
Related Agents
Doey Platform Expert
Platform systems specialist — tmux IPC, bash 3.2 portability, macOS process lifecycle, race condition preventi
Adrian
Blocks until a tmux pane is done (pattern match, shell idle, or output idle). Use for any wait that takes more
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and