Model census
Neither the API console nor ccusage can see subagent type or repo — they see API keys and token counts, not which agent definition ran or what it was working on. This skill reads the transcripts directly.
What it reads
~/.claude/projects/**/*.jsonl (main-thread transcripts) and ~/.claude/projects/**/subagents/agent-*.jsonl (subagent transcripts). Subagent type is recovered by joining the parent transcript's Agent tool_use (input.subagent_type) to the matching tool_result's agentId: <id> line, then matching that id to its subagent transcript. Token counts are raw counts, not dollars — this is a routing check, not a billing report.
Command
python3 <skill dir>/scripts/model-census.py --brief --since <date>
Global install (npx skills add ... -g): ~/.claude/skills/model-census/scripts/model-census.py. Project-local install (the default): ./.claude/skills/model-census/scripts/model-census.py. --since takes YYYY-MM-DD (default: 30 days back). Drop --brief for the full report broken out by project.
Always flag
- Any Fable or top-tier row in the MAIN THREAD table — the main thread pays to read every tool output, so a top-tier default there is the expensive place for it to leak, not a per-task subagent.
- A top-level
modelkey in~/.claude/settings.json— that's a silent global default, usually written by/model <x>+ Enter instead of the session-only flag.