Repository navigation
Conversation
… limits Claude Code passes its plan limits (rate_limits.five_hour and seven_day) only to a status line. usage.py now reads them from ~/.berth/limits/<account>.json, which a status line writes, and reports them in Codex's window shape, so the Usage tile and the Home widget show them beside Codex's. The plugin README has the status line lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stener1
force-pushed
the
usage-claude-limits
branch
from
October 23, 2026 23:12
12e2cad to
3405503
Compare
|
@Stener1 is attempting to deploy a commit to the seanbrydonio's projects Team on Vercel. A member of the Team first needs to authorize it. |
This branch has not been deployed
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.
Summary
The Usage screen shows Codex's 5-hour and weekly limits but none for Claude Code, because Claude Code writes its limits into no file the plugin can read. Claude Code does pass them to its status line, though:
rate_limits.five_hourandrate_limits.seven_day, each withused_percentageandresets_at(docs), on Pro and Max, after a session's first reply.This PR reads them from
~/.berth/limits/<account>.json, a file a status line writes:docs/guides/home.mdxare updated.Open question for review
Users still have to add the snippet to their status line themselves. berthd could do it for them, for example with a
berthd limits recordthat a status line pipes to, or by installing a status line that records the limits and then runs the user's own. I left that out because a status line is personal, and berthd taking it over seemed like your call. Happy to add either one.Evidence
python3 -I plugins/usage/box/usage.py report 7returns aclaudelimits entry per account, normalized (for exampleprimary {used_percent: 9, window_minutes: 300},secondary {used_percent: 1, window_minutes: 10080}). Codex's entry is unchanged.?mock=1(the mock now has a Claude limits entry): the Claude Code tile shows "5-hour limit · as of 1m ago · 18% used · Resets Thu 05:24 PM" and "Weekly limit · 41% used · Resets Sun 05:14 PM", above the Codex tile's rows as before. No console errors.pnpm typecheck:plugins,check:type,check:titles,check:grid,pnpm test(577 pass),build:plugins, and thedocs-sitebuild all pass. No Go changes.🤖 Generated with Claude Code