Skip to content

Feat/token usage display-pi#183

Open
Hydepwns wants to merge 3 commits intobanteg:masterfrom
Hydepwns:feat/token-usage-display
Open

Feat/token usage display-pi#183
Hydepwns wants to merge 3 commits intobanteg:masterfrom
Hydepwns:feat/token-usage-display

Conversation

@Hydepwns
Copy link

Show token usage (input/output breakdown) in the header of final messages.

  • 5k in / 2.5k out - basic usage
  • 10k in (6k cached) / 1.2k out - with cached tokens
  • ... · $0.12 - with cost (Claude)

Updates tutorial docs with new format examples.

image

Hydepwns and others added 3 commits January 26, 2026 02:29
- show input/output token breakdown (e.g., 5k in / 2.5k out)
- show cached tokens when available (e.g., 10k in (6k cached) / 1.2k out)
- show cost for Claude when available (e.g., ... $0.12)
- add usage field to ProgressState and ProgressTracker
- fix edge case: handle output_tokens without input_tokens
@banteg banteg added the enhancement New feature or request label Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants