Skip to main content

Module tracking

Module tracking 

Source
Expand description

SQLite-backed token usage tracking for compact output analytics.

Records per-command token savings so users can see how much compact output reduces context-window consumption over time.

Structs§

CommandStats
Per-command aggregate statistics.
GainSummary
Aggregate token-savings statistics.
HistoryEntry
A single history entry.
Timer
A lightweight timer for measuring command duration.

Functions§

display_history
Print a formatted history table to stdout.
display_summary
Print a formatted summary of token savings to stdout.
get_history
Return the most recent history entries.
get_summary
Build an aggregate summary of all recorded token savings.
record
Record a single command’s token usage.