Skip to content

ucode usage: break out per-model token counts (current summary is misleading) #90

Description

@lezhiqu

Problem

The ucode usage command groups token usage by coding agent (Claude Code, Codex, etc.) and merges all model usage into a single total per agent. The per-model breakdown in the Top models this week summary is misleading — it appears to show the agent's total tokens next to each model, rather than the tokens used by that specific model.

Example

From a recent run:

Image

Top models this week: Claude Haiku 4.5 (237.0K), Claude Opus 4.7 (237.0K), GPT-5 (13.3K)

Claude Code had 237.0K tokens in total across both models. But the summary shows Claude Haiku 4.5 (237.0K) AND Claude Opus 4.7 (237.0K), which implies each model used 237K independently (double-counting).

The actual breakdown should be something like:

Top models this week: Claude Opus 4.7 (236K), Claude Haiku 4.5 (920), GPT-5 (13.3K)

Where it shows up

The per-agent daily table (Claude Code · Last 7 Days) also lumps models together in the Models column (e.g. Claude Haiku 4.5, Claude Opus 4.7) without per-model token counts, so there's no way to see the actual split for a given day.

Requested change

  1. Fix the Top models this week summary so each model shows only the tokens consumed by that model (not the agent total).
  2. Consider breaking out per-model token counts in the daily table below — either as additional columns, or by showing tokens next to each model name.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions