Show HN: Pitstop-check – finds the retry bug that turns 429s into request storms I kept running into the same bug in AI agent codebases: retry logic that ignores Retry-After under concurrency. Looks fine at first. Under load it turns rate limits into request storms. I wrote a small CLI to catch it:
It scans TS/JS and flags things like:
Example (ran against OpenClaw):
The retry primitive supports Retry-After. The callers just don’t wire it up.So when the API returns Retry-After: 600, the client retries on its own schedule instead of backing off. What’s going on is basically collapsing different failure modes into one:
Most code just does:
The tool is heuristic (will flag some test files), but it’s been useful for quickly spotting this in real repos. |