Improve smart mode to be model-aware - #7
Merged
Conversation
Smart mode now detects the currently selected model and adjusts the display: - Opus/Haiku: Shows only overall weekly usage (○47% (wk 85%)) - Sonnet: Shows Sonnet | Overall format (◇7% | ○47% (wk 85%)) This provides more relevant information based on which model is being used. Also updates the demo script to showcase the new behavior. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Simplify weekly view modes to just simple and smart: - Simple: Shows overall usage (default) - Smart: Model-aware - shows Sonnet | Overall when using Sonnet 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add mode preview image - Remove detailed mode from documentation - Update smart mode description to reflect model-aware behavior - Update test counts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.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
demo-modes.mjs) to showcase all three view modesRationale
The previous "bottleneck" approach didn't make intuitive sense when combined with week progress. This change shows usage data relevant to the currently selected model - when using Sonnet with a model-specific limit, you see both your Sonnet usage and overall usage. When using Opus (which doesn't have a separate limit), you just see overall.
Example Output
Smart mode with Opus:
Smart mode with Sonnet:
Test plan
npm test- all 166 tests passnode demo-modes.mjs- shows correct output for all modes🤖 Generated with Claude Code