Add usage-limits to Usage & Observability - #615
Open
ridelink0 wants to merge 1 commit into
Open
Conversation
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.
Adds
usage-limitsto Usage & Observability.Most of the tools in this section show you what you have spent. This one is aimed at the decision that follows: it reads the 5-hour and weekly percentages Claude Code already caches, cross-references the local session transcripts to work out what one percentage point costs on that account, and reports the remaining headroom as turns of work. It then names which window binds first and whether it resets before you run out.
It ships as a Claude Code plugin and skill, so Claude reads the numbers and sizes the work against them rather than the user having to. There is also a
--statusmode for the status line that skips the transcript scan.Detects plan tier (Pro, Max 5x, Max 20x, Team, Enterprise), splits the window by model and by project, and handles a stale cache correctly rather than reporting a window that has already reset.
MIT, no dependencies, nothing leaves the machine. 66 tests, passes
claude plugin validate --strict.https://github.com/ridelink0/claude-code-usage-limits