Guide · Agent skill
How to use the Caveman Stats Reporter agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The caveman-stats skill is an agent skill for the Caveman project. When you type /caveman-stats in Claude Code, the agent prints a usage report built from recorded session data: output tokens, cache-read tokens, response counts, and which Caveman mode was active. This guide explains what the skill does, how to install it, how to trigger it, and what its numbers do and do not mean.
Quick start
- 1Download the ZIP. Download the caveman-stats ZIP file from this page.
- 2Unzip into a skills folder. Unzip it into ~/.claude/skills/ for all projects, or into the project's .claude/skills/ folder for one project.
- 3Or upload in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the skill.
- 4Install the Caveman plugin. Make sure the Caveman plugin is installed with its src/hooks scripts, since the hook-based report needs them.
- 5Trigger the report. In Claude Code, type /caveman-stats to print the recorded usage report.
- 6Use native commands elsewhere. In Gemini CLI, run /stats model or /stats session for session usage instead.
What does the caveman-stats skill make the agent do?
The skill reports recorded usage for the current Claude Code session, or points you to the host's native usage report if you are using a different tool. In Claude Code, a companion hook script generates the report, and the agent prints it unchanged. The agent is told not to calculate or add numbers itself.
The report shows recorded output and cache-read tokens, response counts, and mode attribution where available. The skill is built to avoid overstating results: it does not estimate how many tokens Caveman saved, because the transcript has no measured comparison without Caveman.
- Shows recorded output tokens and cache-read tokens
- Shows response counts for the session
- Shows which Caveman mode was active, where that is recorded
- Reports savings as unknown rather than estimating them
Install the caveman-stats skill
Download the ZIP file from this page. Then choose one of the two methods below.
For a personal install that works in all your projects, unzip the file into ~/.claude/skills/. For a single project, unzip it into that project's .claude/skills/ folder.
If you use the Claude apps instead, upload the skill under Settings → Capabilities → Skills.
- Personal install: unzip into ~/.claude/skills/
- Project install: unzip into the project's .claude/skills/ folder
- Claude apps: Settings → Capabilities → Skills, then upload
~/.claude/skills/What you need before the report works
The hook-based report requires Claude Code and the Caveman plugin installed with its src/hooks scripts. The report depends on the two hook scripts in that folder: caveman-mode-tracker.js, which runs the stats logic, and caveman-stats.js, which generates the report.
The skill runs scripts and does not use the network, according to its listing. Without the Caveman plugin and its hook scripts, the hook-based report is not available.
- Claude Code
- The Caveman plugin, installed with its src/hooks scripts
- Scripts run locally; the listing states the skill does not use the network
How to trigger the skill with a request
Type /caveman-stats in Claude Code to trigger the skill. The hook runs the report and passes it to the agent, which prints it verbatim inside a fenced code block.
Other tools use different commands. In Gemini CLI, the skill tells you to use /stats model for current session token usage or /stats session for session statistics. Those are Gemini's own built-in commands, so run them directly in Gemini CLI.
- Claude Code: /caveman-stats
- Gemini CLI: use /stats model or /stats session directly
/caveman-statsRead the report and its flags
The --all and --since 7d options aggregate the latest recorded output count for each session. The --share option reports observed usage with savings still marked as unknown.
Older history rows may contain estimated savings fields named est_saved_*. The skill ignores those fields. The original rows stay on disk, but they are not used in the report. The statusline shows the active mode and no longer shows the retired savings badge.
Memory-file pairs, meaning original and current versions of a memory file, are reported by their measured byte sizes. A size difference does not establish token or billing savings. For the reasoning behind these numbers, see docs/HONEST-NUMBERS.md in the Caveman project.
- --all: aggregates the latest recorded output count per session
- --since 7d: limits aggregation to the last 7 days
- --share: reports observed usage with savings unknown
- Historical est_saved_* fields are ignored
- Memory-file size differences are not token or billing savings
Examples of what the report tells you
A typical check is to run /caveman-stats at the end of a working session to see how many output and cache-read tokens were recorded and which Caveman mode was active. Running it across several sessions shows how often each mode was in use.
The report does not tell you how much money or how many tokens Caveman saved. If you need that figure, the source says there is no measured comparison without Caveman to base it on.
- Check recorded output and cache-read tokens for the current session
- See which Caveman modes were active across recent sessions with --since 7d
- Compare memory-file byte sizes before and after changes, understanding these are not billing figures
What people use it for
- Checking recorded output and cache-read tokens at the end of a Claude Code session
- Seeing which Caveman modes were active across recent sessions
- Reviewing usage over the last 7 days with the --since 7d option
- Getting usage numbers without inflated savings claims
Frequently asked questions
How do I install the caveman-stats skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder. In the Claude apps, you can instead upload it under Settings → Capabilities → Skills.
What do I need to run caveman-stats?
You need Claude Code and the Caveman plugin installed with its src/hooks scripts for the hook-based report. The listing says the skill runs scripts and does not use the network.
Is caveman-stats free?
The listing states the project is licensed under Apache-2.0. The source does not mention pricing, so check the project's licence terms for details.
Does caveman-stats show how many tokens Caveman saved?
No. The skill reports savings as unknown because the transcript has no measured comparison without Caveman. It does not estimate saved tokens, percentages, or dollars.
Can I use caveman-stats in Gemini CLI?
Not for live session metrics. The skill directs Gemini CLI users to the built-in /stats model and /stats session commands, since custom commands cannot read those live metrics.
Why does my report show no mode or no usage data?
The report shows mode attribution only where it is available, and it depends on recorded session data. If the Caveman plugin and its hook scripts are not installed, the hook-based report cannot run.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use caveman-stats if you use Claude Code and want recorded token usage and Caveman mode attribution without inflated savings claims. Pick a different tool if you need measured token savings, since this skill reports savings as unknown, or if you work mainly in Gemini CLI and expect live session metrics from the skill itself.
Download the skill