Cfn token report

From masharratt/claude-flow-novice · View interactive version

Cfn token report is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. Report where Claude Code tokens went, from the local session logs: totals plus breakdowns by project, agent type (main chat vs each subagent type), model and day. Use when asked about token use, which agents or projects burn the most, or whether a workflow got more expensive. Tokens only; subscripti

How to use this skill

Skill file

CFN Token Report

Purpose: Answer "where did my tokens go?" without guessing. Claude Code records exact

token counts for every reply in ~/.claude/projects/, on a subscription or not. This skill

reads them.

Usage

python3 -I "$HOME/.claude/skills/cfn-token-report/report.py"                 # last 7 days
python3 -I "$HOME/.claude/skills/cfn-token-report/report.py" --days 1
python3 -I "$HOME/.claude/skills/cfn-token-report/report.py" --since 2026-10-01 --project fireside
python3 -I "$HOME/.claude/skills/cfn-token-report/report.py" --json            # for scripts

Options: --days N or --since YYYY-MM-DD, --project <text>, --top N (rows per

breakdown, default 10), --json.

Reading the numbers

three ("fresh tokens") so cache reads do not dominate.

subagent's .meta.json.

When relaying results to the user, lead with the biggest consumer and what it suggests

(for example a subagent type doing most of the work), not the full tables.

Limits

line count overstates usage 2-5x.

cap shown by /usage, which the logs do not record.

Tests

bash "$HOME/.claude/skills/cfn-token-report/tests/test-token-report.sh"

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.