Skip to content

Shows recorded token usage and mode attribution for the current session, with savings reported as unknown.

CCM score
71 of 100
install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
6
skills.sh installs
392.5K
GitHub stars
123.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Claude Code session output and cache-read tokens, response counts, and mode attribution from the session log
  • Runs via the mode-tracker hook, which prints the report verbatim in a fenced block without recalculating the numbers
  • Reports savings as unknown and does not infer saved tokens, percentages, or dollars from output counts or mode
  • Designed for Claude Code users, with Gemini CLI directed to /stats model or /stats session for its own usage data

Install

$ npx -y skills add juliusbrussee/caveman --skill caveman-stats -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

In Claude Code, src/hooks/caveman-mode-tracker.js resolves src/hooks/caveman-stats.js next to itself and runs it on /caveman-stats. The hook does not block the prompt: it supplies the report through hookSpecificOutput.additionalContext with an instruction to print it verbatim inside a fenced code block. Do exactly that, and do not calculate, recompute or re-round the numbers yourself.

In Gemini CLI, direct the user to /stats model for current session token usage or /stats session for session statistics. Gemini custom commands are prompts; they cannot invoke the built-in command or read its live session metrics. Never read Claude Code transcripts as Gemini usage. In other hosts, use a native usage report if one is available; otherwise say that current session usage is unavailable. The Claude reader and its lifetime history apply only to Claude Code. Savings remain unknown in every host without a measured comparison.

Details

Repository
github.com/juliusbrussee/caveman
Category
Memory & Context
First seen
May 16, 2026

Questions

What does the caveman-stats skill do?

The caveman-stats skill shows real token usage and estimated savings for the current session, reading directly from the Claude Code session log without AI estimation. It is triggered by the /caveman-stats command, and the report is injected by the mode-tracker hook rather than computed by the model.

How do I install caveman-stats?

Run npx -y skills add juliusbrussee/caveman --skill caveman-stats -y in your project. Once installed, typing /caveman-stats prints the session usage report for the current session.

Where does caveman-stats rank in its category?

caveman-stats sits in the Memory & Context category, where it ranks in the top 3. It is grouped with handoff, caveman-compress, caveman-learn, caveman-optimize and context-engineering, and it stands apart by reporting measured session token counts rather than estimates.

Does caveman-stats show how many tokens I saved?

No, savings are reported as unknown. The report shows recorded output and cache-read tokens, response counts and mode attribution, but the transcript has no measured comparison without Caveman, so saved tokens are not inferred.

Does caveman-stats work outside Claude Code?

The Claude reader and its lifetime history apply only to Claude Code. In Gemini CLI, direct users to /stats model or /stats session, and in Oh My Pi use /usage, since Claude Code transcripts are not read as usage for those hosts.

More from juliusbrussee/caveman

All 25

Similar to Caveman Stats

More Memory & Context