Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Emasoftv1.11.2MITIn 1 marketplace
Per-operation token usage reporter for Claude Code 2.1.108+. Shows token counts, cost estimates, tool + skill + agent attribution, cache invalidation detection, worktree sub-agent breakdown, compact_boundary markers, CLAUDE.md reload events, and file activity when agents complete. Only outputs in debug mode (claude --debug).
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Show Skills in a dedicated boxSKILLS_BOX
When enabled, per-skill cost breakdown is rendered in its own standalone unicode box instead of as an inline section in the main report. Useful for sessions with many skill invocations where the inline section would crowd the main box.
booleandefault false
Hook output character limitOUTPUT_LIMIT_CHARS
Maximum character count for the report injected into the transcript. The Claude Code binary hardcodes a 10,000 char cap on hook output (additionalContext / systemMessage / stdout) — output exceeding this is silently saved to a file and replaced with a preview stub, which destroys the inline box. Source: https://code.claude.com/docs/en/hooks. Keep this at 10000 unless Anthropic raises the cap in a future Claude Code version.
numberdefault 10000
Max entries per section in inline outputMAX_ENTRIES_PER_SECTION
Lists in the inline boxes (skills, bash commands, web fetches, files, sub-agents) are capped at this many entries, with a '+N more — see HTML report' indicator when truncated. The full untruncated data is always available in the HTML report file at <main-repo-root>/reports/token-reporter/. Set to 0 to disable truncation entirely.
numberdefault 12
A Claude Code plugin that displays per-operation token usage when agents and subagents complete. Only outputs in debug mode (claude --debug). Tracks Claude Code 2.1.85–2.1.108.
After each Claude Code response (in debug mode), a compact unicode-bordered report appears in the terminal showing:
loadChangedFiles())system/compact_boundary events with preTokens from auto-compactionInstructionsLoaded events, broken down by load_reason (session_start, nested_traversal, path_glob_match, include, compact) with red warning for compact-triggered reloads~/.claude/projects/<project>/<session>/tool-results/ are credited to the originating toolSkill tool. Each skill invocation shows invocation count, result→input bytes (the skill content loaded into context), output bytes, and an estimated cost per skill. Skills are sorted by cost so the biggest drains float to the topExplore x5), an aggregated row shows the total count, tokens, and cost per type in addition to the individual per-instance drill-downSKILLS_BOX) — when enabled, the per-skill breakdown is rendered in its own dedicated unicode box instead of as an inline section in the main reportMAX_ENTRIES_PER_SECTION, default 12) — long lists (skills, bash, web, files, sub-agents) are capped to keep inline output under Claude Code's hook output limit, with a ⋯ +N more — see HTML report indicator<main-repo-root>/reports/token-reporter/<YYYYMMDD_HHMMSS±HHMM>-<event>-<session>.html containing every section without truncation. The path resolves via git worktree list so linked worktrees still write to the main checkout's reports/ folder. The inline output ends with a Full report: <path> footer line so you can open the complete record in a browser. Add both reports/ and reports_dev/ to your project's .gitignore per the agent-reports-location rule — reports often contain private data (session IDs, file paths, tool outputs) that must never be committed.agent_id/agent_type hook input fields), model, message count, durationPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
token-reporter@emasoft-plugins is listed by emasoft/emasoft-plugins — review the source before installing
npx claudepluginhub emasoft/emasoft-plugins --plugin token-reporter