You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 30, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 30, 2026. It is now read-only.
Pace-aware Claude-account balancing and priming #6
jcode's multi-account handling is currently exhaustion-only: it switches off an Anthropic account only once it is fully exhausted (both 5h and 7d windows at ~99%), then picks the peer with the most headroom. This ignores pace - how fast a window burns relative to how much window time remains - so one account's perishable weekly quota can expire unused while another is maxed.
Wanted
Pace calculation per account for both the 5h and weekly (7d) windows: a burn-rate signal of how fast quota is consumed versus how much window time remains, derived from the data jcode usage already reports (per-account 5h/7d percentages and reset times).
Same-pace balancing: instead of draining one account then moving on, keep accounts at roughly equal pace so no account sits idle wasting perishable weekly quota while another is maxed. Consume the soonest-resetting weekly window first (use-it-or-lose-it). Needs hysteresis + a cooldown so it does not flip-flop.
Priming accounts with no 5h reset window yet: an account at 0% with no 5h reset time has never opened its 5h window. Prime it (a minimal request to start the 5h clock) so the window is already counting down when needed - but only when more capacity will be needed soon.
Constraints
Must not reset, rotate, or otherwise touch any account credentials. Priming sends a minimal request only.
Opt-out via config; default behavior should stay safe.
Verify pace math against real jcode usage output, not assumptions. Cover the pace math and the balancing decision with tests.
Delivered in PR #5, merged as a10f856 (squash). Closing manually: this issue was opened to satisfy the Require Linked Issue gate, and the squash merge landed on pace-base rather than the default branch, so the Closes #6 keyword did not auto-close it.
Activity
yjuyjuy commentedon Aug 6, 2026
Delivered in PR #5, merged as a10f856 (squash). Closing manually: this issue was opened to satisfy the Require Linked Issue gate, and the squash merge landed on pace-base rather than the default branch, so the Closes #6 keyword did not auto-close it.