co-mono/packages
Mario Zechner e21a46e68f feat(agent): Add /tokens command for cumulative token usage tracking
Added /tokens slash command to TUI that displays session-wide token statistics.
Key changes:
- Fixed SessionManager to accumulate token usage instead of storing only last event
- Added cumulative token tracking to TUI renderer alongside per-request totals
- Implemented slash command infrastructure with /tokens autocomplete support
- Fixed file autocompletion that was missing from Tab key handling
- Clean minimal display format showing input/output/reasoning/cache/tool counts

The /tokens command shows:
Total usage
   input: 1,234
   output: 567
   reasoning: 89
   cache read: 100
   cache write: 50
   tool calls: 2
2025-08-11 15:43:48 +02:00
..
agent feat(agent): Add /tokens command for cumulative token usage tracking 2025-08-11 15:43:48 +02:00
pods fix(tui): Container change detection for proper differential rendering 2025-08-11 02:31:49 +02:00
tui feat(agent): Add /tokens command for cumulative token usage tracking 2025-08-11 15:43:48 +02:00