/provider-retry
Diagnose automatic retries of BB turns after provider overloads, server or connection errors, and subscription-window limits.
Claude Code
$ npx -y skills add get-bb/bb --skill provider-retry --agent claude-code
Codex
$ npx skills add get-bb/bb --skill provider-retry -a codex -y
Cursor
$ npx skills add get-bb/bb --skill provider-retry -a cursor -y
Gemini CLI
$ npx skills add get-bb/bb --skill provider-retry -a gemini-cli -y
GitHub Copilot
$ npx skills add get-bb/bb --skill provider-retry -a github-copilot -y
OpenCode
$ npx skills add get-bb/bb --skill provider-retry -a opencode -y
Windsurf
$ npx skills add get-bb/bb --skill provider-retry -a windsurf -y
SKILL.md
provider-retry.SKILL.mdname: provider-retry
description: "Diagnose automatic retries of BB turns after provider overloads, server or connection errors, and subscription-window limits."
Provider retry
The plugin is enabled on fresh installations. It reacts only to failed Codex and Claude Code turns and never blocks a send; prior output or tool activity does not prevent a retry. It queues a retry of the failed turn, which core runs by continuing accepted input or re-sending input the provider never accepted, for one of three failures:
- A structured provider overload: retried after a short delay that doubles on
each attempt.
- An unavailable provider (HTTP 500, 502, 503, or 504, an internal error, or a
failed or dropped connection, including an Account Pooler that could not reach the provider): retried after about a minute, doubling on each attempt.
- A subscription-window limit with a reported reset time: retried shortly
after the window opens, with random spread so threads on one account do not wake together. Credit and spend limits are not retried.
For Account Pooler routes, retry timing comes from the pool's earliest usable account for the failed request's model, including parent pools, so a generic provider 429 without quota windows can still schedule a retry. Unknown resets, authentication failures, and unavailable pool sources do not schedule retries.
Provider retry owns a failed turn, including turns Automations and Workflows sent. It records its decision for each failure, after queueing any retry, and publishes it through the discoverable `decision.get` RPC. A plugin that re-runs failed work waits for that decision on the failed request, for at most a minute, then re-runs the work only when no retry is queued or ran in the thread. Automations records the skipped quick retry with the reason, and Workflows keeps waiting on the same worker instead of replacing it. A retry core queues after a bb restart counts the same way.
A turn gets at most four automatic retries. The `maximumWait` setting (`6 hours` by default, or `24 hours` or `No limit`) skips a subscription-limit retry whose reset is farther away: `bb plugin config provider-retry set maximumWait "24 hours"`.
A pending retry is an ordinary durable queued row, shown on the thread's queue card with its reason and time, and survives restart. A thread keeps one pending retry for accepted input: when another accepted turn fails while a retry waits, the waiting retry moves to the new time instead of a second "Please continue." row. Input the provider never accepted keeps its own row.
bb provider-retry status [thread-id] [--json]
bb provider-retry explain [thread-id] [--json]
bb provider-retry retry <thread-id> [--json]
bb provider-retry cancel <thread-id> [--json]
`status` defaults to the current thread and lists every thread outside one. `explain` reports the last recorded scheduling or skip decision; it is historical and survives restart, so use `status` for what is still pending. Decisions from before the plugin version that records them are not backfilled. The plugin RPC `decision.get` accepts `{ threadId }` and returns the same nullable diagnostic. `retry` sends the pending row now; `cancel` deletes it. Inspect the failed turn before retrying manually, and avoid duplicating an existing queued retry. Use the core `bb thread retry` command for an intentional manual retry of a turn with no pending row; follow its live help for selection and scheduling flags.
Read more
name: provider-retry description: "Diagnose automatic retries of BB turns after provider overloads, server or connection errors, and subscription-window limits."
Provider retry
The plugin is enabled on fresh installations. It reacts only to failed Codex and Claude Code turns and never blocks a send; prior output or tool activity does not prevent a retry. It queues a retry of the failed turn, which core runs by continuing accepted input or re-sending input the provider never accepted, for one of three failures:
- A structured provider overload: retried after a short delay that doubles on
each attempt.
- An unavailable provider (HTTP 500, 502, 503, or 504, an internal error, or a
failed or dropped connection, including an Account Pooler that could not reach the provider): retried after about a minute, doubling on each attempt.
- A subscription-window limit with a reported reset time: retried shortly
after the window opens, with random spread so threads on one account do not wake together. Credit and spend limits are not retried.
For Account Pooler routes, retry timing comes from the pool's earliest usable account for the failed request's model, including parent pools, so a generic provider 429 without quota windows can still schedule a retry. Unknown resets, authentication failures, and unavailable pool sources do not schedule retries.
Provider retry owns a failed turn, including turns Automations and Workflows sent. It records its decision for each failure, after queueing any retry, and publishes it through the discoverable `decision.get` RPC. A plugin that re-runs failed work waits for that decision on the failed request, for at most a minute, then re-runs the work only when no retry is queued or ran in the thread. Automations records the skipped quick retry with the reason, and Workflows keeps waiting on the same worker instead of replacing it. A retry core queues after a bb restart counts the same way.
A turn gets at most four automatic retries. The `maximumWait` setting (`6 hours` by default, or `24 hours` or `No limit`) skips a subscription-limit retry whose reset is farther away: `bb plugin config provider-retry set maximumWait "24 hours"`.
A pending retry is an ordinary durable queued row, shown on the thread's queue card with its reason and time, and survives restart. A thread keeps one pending retry for accepted input: when another accepted turn fails while a retry waits, the waiting retry moves to the new time instead of a second "Please continue." row. Input the provider never accepted keeps its own row.
bb provider-retry status [thread-id] [--json] bb provider-retry explain [thread-id] [--json] bb provider-retry retry <thread-id> [--json] bb provider-retry cancel <thread-id> [--json]
`status` defaults to the current thread and lists every thread outside one. `explain` reports the last recorded scheduling or skip decision; it is historical and survives restart, so use `status` for what is still pending. Decisions from before the plugin version that records them are not backfilled. The plugin RPC `decision.get` accepts `{ threadId }` and returns the same nullable diagnostic. `retry` sends the pending row now; `cancel` deletes it. Inspect the failed turn before retrying manually, and avoid duplicating an existing queued retry. Use the core `bb thread retry` command for an intentional manual retry of a turn with no pending row; follow its live help for selection and scheduling flags.
bb is an agentic IDE that builds itself. It can control, customize, and automate itself, laying the groundwork for your own software factory. Every surface — the desktop app, web app, CLI, and HTTP API — is a first-class way to drive bb.
Other skills on bb.
More skills from other plugins.
agentmail
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
adr-create
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Questions about provider-retry.
- Which coding agents can use provider-retry?
- provider-retry installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

