Repository navigation
Pick the first claude account that is under its limits - #40
Merged
Merged
Conversation
docket takes the accounts in config.toml's order and runs a new review under the first one that no recorded usage limit applies to, so it returns to an earlier account as soon as that account's limit resets. Claude-Session: https://claude.ai/code/session_01AovXvZFRJZXuPP3RLtqHUA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docket picks the account after the one that most recently hit a usage limit, and it stays there after that limit resets. So if
claude_config_diris the account I want to use most, reviews keep running on a fallback for days after that account has room again.account.Picknow treats the configured order as a priority list: it takes the first account that no recorded limit applies to. When every account is over a limit, it still picks the one that resets first. A refused review can now restart on an account earlier in the list than the one claude refused.One behavior change to know about: claude gives no reset time when it cuts a turn short at the limit, and docket counts that limit for an hour. After that hour, new reviews try the primary again. If it's still limited, that refusal carries the real reset time.
haacked/dotfiles#265 makes the same change to /go's
run-review.py, which follows docket's order.Test plan
bin/test~/.docket/limits.jsonlon the first account that has already reset, start a review and check that it runs under the first account.https://claude.ai/code/session_01AovXvZFRJZXuPP3RLtqHUA