Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By agentic-tool-labsv0.3.2Apache-2.0In 1 marketplace
Resumes a session after a turn dies on a transient API error or a stalled API request: waits a few seconds, then submits a short continue prompt.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Enabledenabled
Global switch. Off: the mod never retries.
booleandefault true
Act in headless sessionsheadless
Also retry in claude -p and SDK sessions.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it reads or rewrites your prompts; sends prompts on its own.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Nudge textnudgeText
The prompt submitted on retry; <kind> is replaced with the error kind.
stringdefault The previous turn ended on an API error…
Delay cap (ms)maxDelayMs
Longest backoff delay.
numberdefault 60000
First delay (ms)baseDelayMs
Wait before the first retry; each further retry doubles it.
numberdefault 5000
Max attemptsmaxAttempts
Consecutive auto-retries before giving up.
numberdefault 3
Stall abort (ms)stallAbortMs
Silence before the stalled request is aborted and resumed.
numberdefault 300000
Stall notice (ms)stallNoticeMs
Silence before the status line says the API has stalled.
numberdefault 30000
Stall watchdogstallWatchdog
Abort and resume a model request whose stream has gone silent.
booleandefault true
Notify on give-upnotifyOnGiveUp
Send a native notification when the retry budget runs out.
booleandefault true
Retry max_output_tokensretryMaxOutput
Also continue after a turn that hit the output token limit.
booleandefault false
Rate-limit delay (ms)rateLimitDelayMs
Minimum wait after a rate_limit error.
numberdefault 30000
Resumes a Claude Code session when a turn dies on a transient API failure.
Claude Code already retries API requests internally. When those retries run out, the turn ends on an error ("API Error: Connection lost mid-response", server_error, overloaded) and the session sits idle until someone types. This mod waits a few seconds, then submits a short "continue" prompt for you, so long unattended runs keep going.
It is a function-hooks mod (Claude Code 2.1.310 or newer).
/plugin install retry-on-error@agent-tools
server_error, overloaded and rate_limit, and unknown errors whose text looks transient (connection lost, mid-response, ECONNRESET, socket hang up, stream closed/ended, timeout, a 5xx code).StopFailure names them: authentication, billing, account, credential, invalid request, missing model. It shows a toast naming the error instead. max_output_tokens is not retried unless you turn on retryMaxOutput. A failure that StopFailure does not report is handled as Limits describes.rate_limit). After 3 consecutive auto-retries it gives up, says so in the status line and a toast, and sends one desktop/phone notification.claude -p and SDK runs are left alone (unless headless is on).retrying in 5s — attempt 1/3 (server_error). Otherwise the mod shows nothing.Sometimes the connection stalls mid-request: Claude Code shows "Waiting for API response · will retry in 1m 30s · check your network" and the turn stays open, so no turn-end error ever arrives. The stall watchdog covers that case:
stallNoticeMs) the status line reads API stalled 30s — auto-retry at 5:00 (Esc/type to cancel). It clears if the stream resumes.stallAbortMs) the mod aborts the running turn and submits the nudge with the kind stalled. This counts against the same attempts budget and backoff as an error retry, and gives up the same way. Out of budget, it does not abort: the request is left to Claude Code's own retries.headless on. stallWatchdog: false turns the watchdog off.The nudge it submits:
The previous turn ended on an API error (server_error). Continue the task from where it stopped; re-check any step with side effects before repeating it.
The second sentence matters: a cut stream may have run a tool call whose result was never shown.
/retry-on-error off turns it off for this session, /retry-on-error on turns it back on, and /retry-on-error status (or no argument) shows whether it is on, the attempts used, and the last error kind and time.
Set them in /config, or under pluginConfigs["retry-on-error"].options in settings.
| Option | Default | Meaning |
|---|---|---|
enabled | true | Global switch |
maxAttempts | 3 | Consecutive auto-retries before giving up |
baseDelayMs | 5000 | First delay; doubles each retry |
maxDelayMs | 60000 | Backoff cap |
rateLimitDelayMs | 30000 | Minimum delay after rate_limit |
nudgeText | see above | The prompt submitted; <kind> is replaced with the error kind |
retryMaxOutput | false | Also continue after max_output_tokens |
headless | false | Also act in claude -p and SDK sessions |
notifyOnGiveUp | true | Native notification when the retry budget runs out |
stallWatchdog | true | Abort and resume a request whose stream has gone silent |
stallNoticeMs | 30000 | Silence before the status line reports a stall |
stallAbortMs | 300000 | Silence before the stalled request is aborted and resumed |
npx claudepluginhub agentic-tool-labs/agent-tools --plugin retry-on-errorBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.