Skip to content

Enhance usage analysis with model tracking features#157

Merged
rajbos merged 9 commits intorajbos:mainfrom
FokkoVeegens:main
Feb 2, 2026
Merged

Enhance usage analysis with model tracking features#157
rajbos merged 9 commits intorajbos:mainfrom
FokkoVeegens:main

Conversation

@FokkoVeegens
Copy link
Collaborator

  • 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
Copilot AI review requested due to automatic review settings January 30, 2026 15:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@rajbos
Copy link
Owner

rajbos commented Feb 2, 2026

I added an extra column to show the data for the last 30 days as well to match other screens.
And I fixed an issue with the avg models/session calculation, as that also counted sessions with 0 models as well, driving the average below 0, which did not make sense to me.

image

@rajbos rajbos enabled auto-merge February 2, 2026 18:05
@rajbos rajbos merged commit bf815ba into rajbos:main Feb 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments