See your actual token spend this session

Reads the session log and displays real token counts—input, output, cache hits—with no estimation. Shows you exactly what you paid for and what you saved via caching.

Best for: Engineers and operators who want to audit token usage without guessing.

Engineering / pipelines-dataatomicfor-engineersno-setup

Topics

aianthropiccavemanclaudeclaude-codellmmemeprompt-engineeringskilltokens

Source

Creator's repository · JuliusBrussee/caveman

View on GitHub

License: MIT

Skill file

Preview skill file
---
name: caveman-stats
description: >
  Show real token usage and estimated savings for the current session.
  Reads directly from the Claude Code session log — no AI estimation.
  Triggers on /caveman-stats. Output is injected by the mode-tracker hook;
  the model itself does not compute the numbers.
---

This skill is delivered by `hooks/caveman-stats.js` (read by `hooks/caveman-mode-tracker.js` on `/caveman-stats`). The model does not need to do anything when this skill fires — the hook returns `decision: "block"` with the formatted stats as the reason. The user sees the numbers immediately.