Repository navigation
Add SubSwitcher Bar, a macOS menu bar app for cached usage - #1
Merged
Merged
Conversation
Shows each Claude account's five-hour and seven-day usage, with time to reset, from the macOS menu bar. It only reads what Claude Code already cached: the shared config, each ~/.claude-* slot's config and profiles.json, keeping the freshest value per account and showing how old it is. No network, keychain or process access, and the compliance audit now checks the Swift sources for all three. With SubSwitcher the shared config's numbers are fetched with the active slot's credentials but can still be stamped with a previous account's uuid, so they are attributed to the active profile. The app ignores profiles.json versions newer than it understands; PROFILES_VERSION now points at that check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…k it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
macos/app (SwiftUIMenuBarExtra, macOS 14+) showing each Claude account's five-hour and seven-day usage plus time to reset.~/.claude-*slot configs andprofiles.json. Freshest value per account wins; every account shows its observation age, and windows whose reset time has passed read 0%.profiles.jsonversions newer than it understands;PROFILES_VERSIONcomment points at that check.macos/Sources/**/*.swiftfor network (URLSession,WebKit…), keychain (SecItem*) and process execution, with self-test fixtures.macos-latestjob that builds the app;.vscodeignorekeepsmacos/out of the.vsix.Test plan
npm run check— typecheck, compliance audit (27 fixtures, 19 files), 87 tests passmacos/scripts/build_app.shbuilds and the app runs (Command Line Tools only)macosCI job on GitHub runner🤖 Generated with Claude Code