Caveman Stats
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
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 modelor/stats sessionfor its own usage data
Install
$ npx -y skills add juliusbrussee/caveman --skill caveman-stats -yInstalls 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- Cavecrew389K
- Caveman Explore137.1K
- Caveman Learn136.1K
- Safe Refactor135.9K
- Caveman Optimize135.1K
- Investigate First134.8K
- Verify And Stop134.2K
- Surgical Patch134.1K
- Lean Build133.7K
- Caveman Evidence Review133.5K
- Caveman Discover133.4K
- Caveman Manage133.2K
- Migration132.9K
- Caveman Setup132.4K
- Ultracave56.5K
- Megacave54.8K
- Compress45.8K
- Caveman Es513
- Caveman Cn437
- Caveman646.1K
- Caveman Compress448.1K
- Caveman Commit447.1K
- Caveman Review443.1K
- Caveman Help433.2K
Similar to Caveman Stats
More Memory & Contextsession-reportSkillanthropics/claude-plugins-official4.9K installsGenerates an explorable HTML usage report from local Claude Code session transcripts, with anomaly callouts.
tldr-statsSkillparcadei/continuous-claude-v3477 installsLive dashboard of session token usage, API costs, TLDR compression savings, and hook activity for Claude Code.
ccam-analyticsPluginhoangsonww/Claude-Code-Agent-Monitor1.2K starsDeep analytics and monitoring for Claude Code sessions — cost tracking, token usage breakdowns, usage trends, and productivity scoring powered by Agent Monitor.
cost-trackSkillruvnet/ruflo685 installsCaptures per-session Claude Code token usage and USD cost into the cost-tracking namespace for reporting.