AI Skill
Pass
Audit score 90

caveman-stats

juliusbrussee/caveman

Display real token usage and estimated savings for your Claude Code session.

What is caveman-stats?

Shows actual token consumption and cost savings from your current session by reading directly from the Claude Code session log. Triggers on /caveman-stats command with no AI estimation required.

  • Display real token usage metrics from the current session
  • Show estimated cost savings
  • Read directly from Claude Code session logs without AI estimation
  • Inject output via mode-tracker hook for immediate display
  • Block further processing and return formatted statistics

How to install caveman-stats

npx skills add https://github.com/juliusbrussee/caveman --skill caveman-stats
Claude Code
Cursor
Windsurf
Cline

How to use caveman-stats

  1. 1.Type /caveman-stats in your Claude Code session
  2. 2.The hook intercepts the command and reads the session log
  3. 3.Formatted statistics display immediately without model processing
  4. 4.Review token usage and estimated savings in the output

Use cases

Good for
  • Monitor token consumption during a long coding session
  • Verify actual API costs before they accumulate
  • Track savings from using efficient coding practices
  • Audit session efficiency at any point during development
  • Compare token usage across different sessions or projects
Who it's for
  • Developers using Claude Code
  • Teams tracking API costs
  • Users optimizing token efficiency
  • Anyone monitoring session resource consumption

caveman-stats FAQ

Does the AI model compute the statistics?

No. The hook reads directly from the session log and returns the formatted stats, blocking further model processing.

When does /caveman-stats trigger?

It triggers when you type /caveman-stats in your Claude Code session.

What information is displayed?

Real token usage metrics and estimated cost savings for the current session.

Is this an estimation or actual data?

This is actual data read directly from the Claude Code session log, not an AI estimation.

Full instructions (SKILL.md)

Source of truth, from juliusbrussee/caveman.


name: caveman-stats description: > Show real token usage and estimated savings for the current session. Reads directly from the Claude Code session log — no AI estimation. Triggers on /caveman-stats. Output is injected by the mode-tracker hook; the model itself does not compute the numbers.

This skill is delivered by hooks/caveman-stats.js (read by hooks/caveman-mode-tracker.js on /caveman-stats). The model does not need to do anything when this skill fires — the hook returns decision: "block" with the formatted stats as the reason. The user sees the numbers immediately.