Informazioni sullo Skill
Show recorded session token usage where the host supports it.
SKILL.md
Autore: Julius Brussee · JuliusBrussee/caveman · Apache-2.0 · SKILL.md @ 9b24366
---
name: caveman-stats
description: >
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.
---
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.
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`.
Perché lo abbiamo scelto
A task workflow from Caveman. The author documents its host-specific integrations; this listing is source-based and does not measure token savings or execute the workflow.
Install
Claude Code
From the project directory, install this skill. Claude Code session statistics require the hooks in the Caveman plugin below. Other hosts use their native usage report.
npx skills add JuliusBrussee/caveman --skill caveman-stats -a claude-code --copyCodex
From the project directory, install this skill. Claude Code session statistics require the hooks in the Caveman plugin below. Other hosts use their native usage report.
npx skills add JuliusBrussee/caveman --skill caveman-stats -a codex --copyCursor
From the project directory, install this skill. Claude Code session statistics require the hooks in the Caveman plugin below. Other hosts use their native usage report.
npx skills add JuliusBrussee/caveman --skill caveman-stats -a cursor --copyManual copy
Copy the complete skills/caveman-stats folder from the original repository into the project skills directory: .claude/skills/ for Claude Code or .agents/skills/ for Codex and Cursor. Claude Code session statistics require the hooks in the Caveman plugin below. Other hosts use their native usage report.
Install the full pack
Install the Caveman Claude Code plugin with its skills, hooks and subagent presets.
claude plugin marketplace add JuliusBrussee/caveman && claude plugin install caveman@cavemanInstall the full pack
Run the author’s installer to configure the Caveman components for detected agents.
npx @caveman-ai/cli@latestInstall the full pack
On macOS or Linux, run the documented script to configure Caveman across agent apps.
curl -fsSL https://raw.githubusercontent.com/JuliusBrussee/caveman/v4.1.0/install.sh | bashInstall the full pack
On Windows, run the documented PowerShell script to configure Caveman across agent apps.
irm https://raw.githubusercontent.com/JuliusBrussee/caveman/v4.1.0/install.ps1 | iex
Prima di usarlo
- The author’s CLI requires Node.js 22.13 or newer. It installs several components and sends usage telemetry by default; the README documents how to turn telemetry off.
Agenti supportati
Fonti e riferimenti
Le fonti originali sono collegate qui sotto. Gli spunti pratici sono suggerimenti editoriali di SkillHey.

