Enhance usage analysis with model tracking features#157
Merged
rajbos merged 9 commits intorajbos:mainfrom Feb 2, 2026
Merged
Conversation
Collaborator
FokkoVeegens
commented
Jan 30, 2026
- Added tier and multiplier attributes for various models in modelPricing.json
- Introduced ModelSwitchingAnalysis type in main.ts to track model usage patterns
- Implemented new UI section for displaying multi-model usage statistics, including average models per conversation, switching frequency, and models by tier for both daily and monthly views
- Added tier and multiplier attributes for various models in modelPricing.json - Introduced ModelSwitchingAnalysis type in main.ts to track model usage patterns - Implemented new UI section for displaying multi-model usage statistics, including average models per conversation, switching frequency, and models by tier for both daily and monthly views
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the usage analysis feature by adding model tier tracking and multi-model usage statistics. The changes introduce tier classifications (standard/premium/unknown) and multiplier attributes to models, enabling detailed tracking of model switching patterns within conversations.
Changes:
- Added tier and multiplier metadata to all models in modelPricing.json
- Implemented ModelSwitchingAnalysis type and related interfaces to track model usage patterns
- Created new UI section displaying multi-model usage metrics including average models per conversation, switching frequency, and tier-based model categorization
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| src/modelPricing.json | Added tier and multiplier attributes to all model entries, updated metadata lastUpdated date and source note |
| src/extension.ts | Added ModelSwitchingAnalysis interface, implemented model switching calculation logic, enhanced session analysis with tier tracking, added cache versioning and debug logging |
| src/webview/usage/main.ts | Added ModelSwitchingAnalysis type definition and new Multi-Model Usage UI section with daily/monthly statistics |
| src/README.md | Updated schema documentation to include tier and multiplier fields |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Owner
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.
