By emasoft
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).
npx claudepluginhub emasoft/emasoft-plugins --plugin token-reporterThis plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
SKILLS_BOXWhen 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.
${user_config.SKILLS_BOX}OUTPUT_LIMIT_CHARSMaximum 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.
${user_config.OUTPUT_LIMIT_CHARS}MAX_ENTRIES_PER_SECTIONLists 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.
${user_config.MAX_ENTRIES_PER_SECTION}Analyze Claude Code session token usage, costs, trends, and anomalies
OTel + Hooks analytics for Claude Code. Run /init-claudalytics to configure telemetry and hooks capture for this project.
Visual dashboard for Claude Code harness — usage/token analysis of skills, agents, plugins, hooks, memory, MCP servers, rules, and principles
PostToolUse hook that reports estimated token usage and cost per tool call
Governor: always-on compact professional output, telemetry, context slimming, tool-output filtering, prompt guidance, and drift guardrails for Claude Code Max users.
Matches all tools
Hooks run on every tool call, not just specific ones
Share bugs, ideas, or general feedback.
Session intelligence for Claude Code — find why your sessions fail and fix them
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim