Skip to content
Skillpedia
Analysis & spreadsheets117k · #741

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.md

Copy 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

Use this skill to help me: https://github.com/JuliusBrussee/caveman/blob/main/plugins/caveman/skills/caveman-stats/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills