Summary
There is currently no way for a user to see how many tokens a conversation has consumed. Users hit context limits or incur unexpected cost with no warning and no visibility into which turns or tools are expensive.
Add token usage visibility to the chat UI, backed by the usage data already returned by the model provider on each response.
Motivation
- Users cannot tell how close a conversation is to the model's context window.
- Long tool outputs (MCP results, file reads, RAG chunks) can silently dominate the context; today there is no signal until something breaks.
- Cost awareness: per-conversation usage is the minimum unit people reason about.
Proposed behavior
- Per-message usage — each assistant message can expose its input / output / (and cached, if reported) token counts, shown on demand rather than always-on clutter.
- Conversation total — a running total for the conversation, visible in the chat header or side panel.
- Context window indicator — total prompt tokens relative to the selected model's context limit (e.g.
18.2k / 200k), so users can see when they are approaching the limit.
- Model switching — the indicator updates when the selected model changes, since the limit differs per model.
Acceptance criteria
Out of scope
- Per-user or org-wide usage dashboards / quotas and billing enforcement.
- Automatic context compaction or trimming (worth a separate issue).
Summary
There is currently no way for a user to see how many tokens a conversation has consumed. Users hit context limits or incur unexpected cost with no warning and no visibility into which turns or tools are expensive.
Add token usage visibility to the chat UI, backed by the usage data already returned by the model provider on each response.
Motivation
Proposed behavior
18.2k / 200k), so users can see when they are approaching the limit.Acceptance criteria
Out of scope