Conversation
A tick on each limit meter shows how much of the allowance an even spend would have used by now, and the reset line spells out the pace and how far ahead or under it usage runs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M2z9bzhcU7sA3PnHWoMSRL
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.
The Agents panel shows how much of each limit is used and when it resets, but not whether that usage is sustainable. 87% of a weekly window reads very differently on day one than on day six.
This adds a pace tick to each limit meter: the share of the window that has already elapsed, i.e. where usage would sit if the allowance were spent evenly until the reset. Usage to the right of the tick runs out before the reset. The reset line spells it out as well:
Resets in 3d 3h · pace 55% (+32 ahead)windowSpanMs()label parsing (5-hour, 7-day, monthly, Codex5h window). It is kept on the limit record asspanMs.(1M context)case already called out inlimitWindow()), no tick is drawn and the reset line is unchanged.Testing
test/shell.d/agent-usage-claude-limits-test.sh: record-shape expectations updated forspanMs, plus new cases for session and weekly pace, a fresh window, a missing reset time and a misparsed span../test/all: the only failures are the threeomarchy-pkgs checkoutchecks that need that repository cloned next to this one.🤖 Generated with Claude Code
https://claude.ai/code/session_01M2z9bzhcU7sA3PnHWoMSRL