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 |
|