a0s

Agent Retrier — Development skill for Claude Code

Development community

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

A retrowave desk at night: the monitor shows a session log, then 'limit reached - resets 3pm', and below it the wrapper typing 'continue'

agent-retrier

[![test](https://github.com/a0s/agent-retrier/actions/workflows/test.yml/badge.svg)](https://github.com/a0s/agent-retrier/actions/workflows/test.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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