a0s

Claude Retrier — Development skill for Claude Code

Development community

Auto-resume Claude Code after a usage limit.

How to install Claude Retrier

This entry records only its repository, not the path inside it, so there is no exact command to give. Open a0s/claude-retrier and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Retrier does

Auto-resume Claude Code 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 laptop at night showing 'limit reached - resets 3pm', and below it the wrapper typing 'continue'

claude-retrier

[![test](https://github.com/a0s/claude-retrier/actions/workflows/test.yml/badge.svg)](https://github.com/a0s/claude-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. `claude-retrier` wraps claude, `codex-retrier` wraps codex. One shell script, with no tmux and no daemon behind it.

brew install a0s/claude-retrier/claude-retrier
claude-retrier                       # instead of: claude
codex-retrier                        # instead of: codex

Install

Homebrew, on macOS and Linux:

brew install a0s/claude-retrier/claude-retrier

Or take the file. It is self contained and there is no build step:

curl -fsSLO https://raw.githubusercontent.com/a0s/claude-retrier/main/claude-retrier.sh
chmod +x claude-retrier.sh
ln -s claude-retrier.sh codex-retrier            # optional: the codex name

Both names are installed whichever agents you have. `codex-retrier` is the same file with codex as its default, and on a machine without codex all it does is say so — which also means installing codex later needs nothing reinstalled.

Every version is also attached to a [release](https://github.com/a0s/claude-retrier/releases), with the notes for it in [CHANGELOG.md](CHANGELOG.md).

Uninstall is `brew uninstall claude-retrier`, or deleting the file. Nothing else was touched: no shell rc edits, no launch agents, no background process.

Needs `bash` and `python3` 3.9+ ([details](docs/how-it-works.md#requirements)).

Quick start

Run it wherever you would have run `claude` or `codex`:

claude-retrier