1. Record both usage windows and when they were observed
Check Claude Code’s /usage view and the rate-limit information shown by /status in Codex CLI. Capture the account, window length, usage percentage, reset timestamp with time zone, and time last observed for each window the CLI reports. Use the provider’s reported windows for that account. Claude Code commands · OpenAI’s Codex status reference
| Observed | Provider | 5h window | 7d window | State |
|---|---|---|---|---|
| 22:10 | Claude Code | 100% · 23:40 reset | 62% · Friday 18:00 reset | Paused until reset |
| 22:12 | Codex CLI | 48% · 01:05 reset | 29% · Sunday 08:00 reset | Available |
| 22:12 | Codex CLI at 23:40 | Last seen 48% | Last seen 29% | Stale sample |
Pick a freshness threshold appropriate for your polling schedule. When a sample expires, show the last reading as stale. If no window was reported, show unknown. A timer reaching zero means a retry may be due. A new reading tells you whether headroom actually returned.
2. Save the task state outside the model session
Checkpoint after each validated step and before a handoff. Keep the task, branch or worktree, last verified commit, dirty worktree status, tests already run, and the next unfinished step in a short local note. Record which provider and session handled the task. Keep any in-progress diff on the machine so a restarted worker can reconcile the note with the current files.
Task: Add an empty state to the billing screen
Branch: billing-empty-state
Last validated step: State mapping and unit tests
Pending work: Run the empty-state browser check
Approval state: Awaiting review after the browser check Use the recorded session to recover the conversation. Claude Code supports claude --resume with a session ID or name, and Codex CLI offers /resume for an existing session. Open the original task directory first. If you switch providers, use the checkpoint and current diff to hand off the remaining work. Claude Code CLI reference · Codex developer commands
3. Pause the affected account and schedule one retry
Suppose Claude reports a limit at 22:10 and a reset at 23:40. Persist that cooldown against the provider account and keep its task queued at the saved checkpoint. Let another eligible account take independent work. Keep ownership of each branch with one active worker at a time.
Use the same policy for a Codex fixture. If a limit at 01:05 reports a retry time of 02:20, store that timestamp and make the task eligible for one attempt at or after 02:20. If no reset or retry timestamp arrives, show “Reset time unknown” and use bounded exponential backoff. For example, wait 5 minutes, then 10, then 20, with a cap and an attempt limit. Honor any manual pause throughout.
4. Rehearse an overnight restart
- Stop the worker while the task is cooling down. Restart it and verify the account still shows as paused.
- At the saved time, claim the task once. Check the branch and current changes against the checkpoint before opening the old session or routing the task elsewhere.
- Run the pending check, save the result, and verify the next handoff. If the retry is throttled again, save the new cooldown and keep the task queued.
- Repeat with manual pause enabled. The task should stay queued after the cooldown until you resume it.
Get early access to quota and reset tracking
Join the ShipBay Founding Waitlist for launch updates.
Join the Founding Waitlist