Caveman Stats
This skill is delivered by the hooks/caveman-mode-tracker hook, which intercepts /caveman-stats on UserPromptSubmit and runs the bundled caveman-stats.js against the active Claude Code session transcript. The hook returns decision: "block" with the formatted stats as the reason — the user sees real token counts and estimated savings immediately, and the model never has to compute or estimate anything.
Numbers come from the JSONL session log on disk:
output_tokensandcache_read_input_tokenssummed across every assistant turn.- Estimated savings derived from the mean per-task ratio recorded in
caveman-stats.js(COMPRESSIONtable — currently onlyfullmode has benchmark data; other modes report no estimate). - Lifetime aggregation across sessions via
/caveman-stats --allor/caveman-stats --since 7d, backed by~/.claude/.caveman-history.jsonl.
If the hook isn't registered in the active settings, the slash command falls through to the model — surface that fact and point the user at the wardrobe hooks/caveman-mode-tracker component (or the upstream installer at https://github.com/JuliusBrussee/caveman).