dashboard: per-tool token attribution chart in run header tooltip #969
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Depends on
#952 agents: live token meter — accumulate per-task usage across both providers
charles/claude-hooks
#967 dashboard: two-meter run header — live context-window % + cumulative $ cost
charles/claude-hooks
Reference
charles/claude-hooks#969
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an operator I want to see "what consumed my tokens" — a small horizontal bar chart breaking down a run's token usage by tool kind (Read 41% · Bash 22% · Edit 12% · system 25%) — surfaced in the context-meter tooltip, so I can pick the right intervention (compaction, smaller files, narrower greps) instead of guessing.
Context
Token attribution is documented to be the highest-leverage observability surface for agent loops (Augment Code's writeup). Nobody else surfaces it inline — this is a small differentiator, cheap to ship.
Acceptance criteria
usage_deltato the in-flight tool call (when one is open) or to "system / model output" (when no tool call is open). Aggregation lives onTaskRecord.usageByTool: Record<ToolKind, ModelUsage>.<TokenAttributionChart>rendered inside the context-window-meter tooltip. Stacked horizontal bar; each segment colored perToolKind; legend below; sorted by descending share.Out of scope
Dependencies
usage_delta).References
🤖 Auto-assigned to dev (heuristic: area:dashboard + body 1530 bytes (≤ 2 KB) — code role). Reply
/unassignto reroute.