Статистика токенов текущей сессии
★ 7.3 · vibe-coding
caveman-stats is a Claude Code skill that reports real token usage and estimated savings for the current session, reading data directly from the Claude Code session log via `hooks/caveman-stats.js` (invoked by `hooks/caveman-mode-tracker.js`). No AI estimation is involved — the hook returns `decision: "block"` with pre-formatted stats, so the model computes nothing and the user sees the numbers instantly after typing `/caveman-stats`. Output includes `Est. rule overhead` and `Est. net` lines: overhead is the per-turn INPUT-token cost of injected caveman rules (default 1,250 tokens/turn, overridable via `CAVEMAN_RULE_OVERHEAD_TOKENS`) multiplied by the turn count, and Net equals savings minus that overhead. When Net goes negative, the skill says so plainly and suggests disabling caveman for that workload rather than hiding the shortfall behind a gross-savings figure.
- #token-analytics
- #session-metrics
- #efficiency-tracking
- #caveman-stats
- #usage-monitoring