caveman-stats
What it does
This skill reports the token usage recorded for the current Claude Code session. It is for people who want to see how much their AI session has used.
When to use it
- ✓When you want to see the token usage for the current Claude Code session.
- ✓When you want totals across several sessions over a period.
- ✓When you want to know which mode was active during a session.
Skill link
https://github.com/JuliusBrussee/caveman/blob/main/plugins/caveman/skills/caveman-stats/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Show me the token usage for this Claude Code session and which mode I was in.”
5 new skills a week. 1 minute to read.
How it works
The skill runs a stats report and prints the recorded numbers exactly as shown. It does not add its own estimates, and it notes that savings are unknown without a measured comparison.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
In Claude Code, src/hooks/caveman-mode-tracker.js runs src/hooks/caveman-stats.js on /caveman-stats and supplies its report through hookSpecificOutput.additionalContext. Print that report verbatim inside a fenced code block, as the hook instructs. Do not calculate or add 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.
The report shows recorded output and cache-read tokens, response counts, and mode attribution where available. Savings are unknown: the transcript has no measured comparison without Caveman. Do not infer saved tokens, percentages, dollars, rule overhead, or a net result from output counts or the current mode.
--all and --since 7d aggregate the latest recorded output count per session. --share reports observed usage with savings unknown. Historical est_saved_* fields are ignored; their original history rows remain on disk. The statusline shows the active mode without the retired savings badge.
Original/current memory-file pairs are reported by their measured byte sizes. Those file-size differences do not establish provider token or billing savings. See docs/HONEST-NUMBERS.md.
FAQ
Does it estimate how many tokens I saved?
No. The description says savings are unknown, because there is no measured comparison without the mode.
Does it work outside Claude Code?
Only Claude Code is covered in detail. Other hosts are told to use their own usage reports.
Can it cover several sessions?
Yes. Options cover all sessions or a period such as the last seven days.
Details
Original description by the author
Show recorded output and cache-read token usage and mode attribution for the current Claude Code session, or locate the host's native usage report. Trigger: /caveman-stats.
repo: JuliusBrussee/caveman
Popularity
- GitHub stars
- 117k
- Ranking position
- #741
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
cavecrew
117kHelps your agent decide when to hand a search, a small edit or a diff review to a compact subagent, saving space in its main context.
caveman-compress
117kHelps your agent shrink a memory file, such as CLAUDE.md or a todo list, into a shorter caveman style to save input tokens.
caveman
117kHelps your agent answer in a short, direct style with the fluff removed and every technical fact kept.
megacave
117kHelps your agent answer in a very short style written in Classical Chinese, keeping technical terms and code exact.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.