Skip to content

Add local token stats by model, provider, and agent - #14

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/desktop-usage-breakdown-17c0
Aug 29, 2026
Merged

Add local token stats by model, provider, and agent#14
cursor[bot] merged 2 commits into
mainfrom
cursor/desktop-usage-breakdown-17c0

Conversation

@gaoyu06

@gaoyu06 gaoyu06 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Local Settings → Overview usage now breaks down tokens by channel (provider), model, and coding agent, without changing the existing daily heatmap totals.

Scope

  • Extend jucode-usage-daily day buckets with models / agents maps (keep v1 in/out/prov parse).
  • Record model + provider + agent (jucode / claude / codex / acp:<id>) from engine usage events.
  • Overview: dimension switcher, 15-day window totals with bars, per-day chips for the selected dimension.
  • This is local session usage only — not JuCode account API usage.

Ship-ready

  • pnpm test: 30 files / 476 tests (12 new in usageStats.test.ts).
  • pnpm check: clean.
  • No new dependencies.

Needs review

  • Persist shape + agent key / ACP label sidecar.
  • Overview UI for the three dimensions vs. the unchanged heatmap.

Review preconditions

  • Confirm old localStorage payloads still load.
  • Confirm Settings → Overview is not mixed with Account usage.
  • Visual pass of the dimension switcher and bars (desktop).
Open in Web Open in Cursor 

cursoragent and others added 2 commits August 29, 2026 11:43
Co-authored-by: Gao Yu <gaoyu06@users.noreply.github.com>
Co-authored-by: Gao Yu <gaoyu06@users.noreply.github.com>
@cursor
cursor Bot merged commit c769caa into main Aug 29, 2026
2 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