Skip to main content Module stats Copy item path Source 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. DEFAULT_INPUT_PRICE_PER_M Average LLM pricing per 1M tokens (blended across Claude, GPT, Gemini). DEFAULT_OUTPUT_PRICE_PER_M adjust_savings Adjust saved tokens after post-processing (terse, hints) changed the output size.
Positive delta = savings were over-reported, negative = under-reported. 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_body The dashboard body without the trailing footer (tips / Context OS / hints).
Used to compose gain --deep, where the extra themed sections must appear
before the footer instead of in the middle of the output. format_gain_daily Renders a daily breakdown table of token savings with totals. format_gain_footer The standalone gain dashboard footer (contextual tip, Context OS, hints). format_gain_graph Renders a 30-day token savings bar chart with sparkline. format_gain_hero Renders the concise “hero” gain output — 3 key metrics, gain score, trend, next actions. format_gain_hero_themed Hero gain with specific theme. 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 (with footer). 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