Structs§
- CepSession
Snapshot - Point-in-time snapshot of CEP scores for a single session.
- CepStats
- Aggregated CEP (Cognitive Efficiency Protocol) metrics across sessions.
- Command
Stats - Per-command token statistics: invocation count and input/output totals.
- Cost
Breakdown - Detailed cost comparison: with vs. without lean-ctx compression.
- Cost
Model - LLM pricing model for estimating dollar savings from token compression.
- DayStats
- Daily aggregate: command count and token totals for one calendar day.
- Gain
Summary - High-level token savings summary for display.
- Stats
Store - 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