Skip to main content

Module stats

Module stats 

Source

Structs§

CepSessionSnapshot
Point-in-time snapshot of CEP scores for a single session.
CepStats
Aggregated CEP (Cognitive Efficiency Protocol) metrics across sessions.
CommandStats
Per-command token statistics: invocation count and input/output totals.
CostBreakdown
Detailed cost comparison: with vs. without lean-ctx compression.
CostModel
LLM pricing model for estimating dollar savings from token compression.
DayStats
Daily aggregate: command count and token totals for one calendar day.
GainSummary
High-level token savings summary for display.
StatsStore
Persistent store for all-time token savings, command stats, and daily history.

Constants§

DEFAULT_INPUT_PRICE_PER_M
Average LLM pricing per 1M tokens (blended across Claude, GPT, Gemini).
DEFAULT_OUTPUT_PRICE_PER_M

Functions§

flush
format_cep_report
Renders the full CEP (Cognitive Efficiency Protocol) report with themes.
format_gain
Renders the token savings dashboard using the active theme.
format_gain_daily
Renders a daily breakdown table of token savings with totals.
format_gain_graph
Renders a 30-day token savings bar chart with sparkline.
format_gain_json
Returns the full stats store as pretty-printed JSON.
format_gain_themed
Renders the token savings dashboard with a specific theme.
format_gain_themed_at
Renders the token savings dashboard at a specific animation tick.
gain_live
Runs the live-updating gain dashboard (1s refresh loop, Ctrl+C to exit).
load
load_stats
record
record_cep_session
reset_all
reset_cep
save