feat(chapter-29): retry transient LLM provider failures

↗ view on GitHub · Amal · 2026-05-24 · b7ef398b

Chapter: 29 - Provider resilience.

Plain-English map:
Wrap LLM provider calls with exponential-backoff retries for temporary errors
like rate limits, timeouts, and provider outages.

Why it matters:
LLM providers occasionally fail for reasons the user cannot fix. A short,
careful retry can turn a temporary outage into a normal response.

Principle:
Classify external failures before retrying. Retry transient problems, not bad
requests or authentication errors.

Precedent borrowed:
The fork report's alternative-provider cluster and provider-abstraction work
across active forks.

Upstream base: willchen96/mike@d39f580.
Original local commit: 1417930.
Repository amal66/mike
Author Amal <mamalanand3@gmail.com>
Authored
Parents e7a09761
Stats 2 files changed , +66 , -8
Part of Bounded and resilient LLM provider calls

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-b7ef398b.md from inside the repo you want the change in.

⬇ Download capture-commit-b7ef398b.md