co-mono/todos/done
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
..
2025-08-09-14-27-17-display-tool-metrics-analysis.md Display tool call metrics: Add ⚒ counter to token usage display 2025-08-09 20:10:15 +02:00
2025-08-09-14-27-17-display-tool-metrics.md Display tool call metrics: Add ⚒ counter to token usage display 2025-08-09 20:10:15 +02:00
2025-08-09-23-33-17-missing-thinking-tokens-analysis.md missing-thinking-tokens: Complete task management for reasoning token support 2025-08-10 14:38:25 +02:00
2025-08-09-23-33-17-missing-thinking-tokens.md missing-thinking-tokens: Complete task management for reasoning token support 2025-08-10 14:38:25 +02:00
2025-08-10-14-40-44-tui-double-buffer-analysis.md tui-double-buffer: Implement smart differential rendering with terminal abstraction 2025-08-10 22:33:03 +02:00
2025-08-10-14-40-44-tui-double-buffer.md tui-double-buffer: Implement smart differential rendering with terminal abstraction 2025-08-10 22:33:03 +02:00
2025-08-11-02-00-00-agent-tui-ctrl-c-display-artifact-analysis.md Fix file paths. 2025-08-11 02:32:52 +02:00
2025-08-11-02-00-00-agent-tui-ctrl-c-display-artifact.md Fix file paths. 2025-08-11 02:32:52 +02:00
20250811-114520-agent-tui-interrupted-message-esc-analysis.md fix(agent): Properly handle ESC interrupt in TUI with centralized event emission 2025-08-11 12:21:13 +02:00
20250811-114520-agent-tui-interrupted-message-esc.md fix(agent): Properly handle ESC interrupt in TUI with centralized event emission 2025-08-11 12:21:13 +02:00
20250811-122302-tui-garbled-output-fix-analysis.md feat(agent): Add /tokens command for cumulative token usage tracking 2025-08-11 15:43:48 +02:00
20250811-122302-tui-garbled-output-fix.md feat(agent): Add /tokens command for cumulative token usage tracking 2025-08-11 15:43:48 +02:00
20250811-150336-token-usage-tracking-analysis.md feat(agent): Add /tokens command for cumulative token usage tracking 2025-08-11 15:43:48 +02:00
20250811-150336-token-usage-tracking.md feat(agent): Add /tokens command for cumulative token usage tracking 2025-08-11 15:43:48 +02:00