# Resource bar shows usage-total tokens

> The resource bar now reads token totals from accumulated usage metrics rather than heuristic message counts, keeping the UI aligned with provider-reported usage.

- Skill: `tools-only/resource-bar-shows-usage-total-tokens` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/resource-bar-shows-usage-total-tokens`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/resource-bar-shows-usage-total-tokens/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-29
- Page: https://skillmd.com/skills/tools-only/resource-bar-shows-usage-total-tokens

---


# Resource bar shows usage-total tokens

## Summary

The resource bar now reads token totals from accumulated usage metrics rather than
heuristic message counts, keeping the UI aligned with provider-reported usage.

## Context

`TextualReplApp._update_resource_bar()` previously used `conversation.total_tokens`,
which is derived from per-message estimation.

## Changes

- Switched resource bar token source to `session.usage.session_total_usage.total_tokens`.

## Behavioral Impact

- Token display reflects API usage totals after each request.
- Context-window counts are no longer used for the UI token indicator.

## Related Cards

- [[usage-total-token-source]]
- [[remove-heuristic-token-counting]]

