Claude Code Plugin Analyzes Token Waste and Anomalies Locally

A developer has created a Claude Code plugin called claude-token-analyzer that diagnoses token waste in Claude Code sessions by analyzing local data. The tool detects six specific anomaly types: HighCost, LowCacheHitRate, CostInefficient, ExcessiveToolUse, HighTokenUsage, and UnusualModelMix, each with severity scoring to prioritize fixes.
How It Works
The plugin is built as a Rust MCP server that parses Claude Code session data from ~/.claude/projects/**/*.jsonl files into a local SQLite database. It performs statistical analysis using standard deviation thresholds and composite anomaly detection. The system is fully local with no cloud components or telemetry.
What It Found
Scanning 8,392 sessions revealed 1,015 anomalies:
- ExcessiveToolUse was the most common (320 sessions) - far more tool calls than typical
- LowCacheHitRate affected 261 sessions - prompts were re-sent without caching
- 66 sessions were "cost-inefficient" - high cost combined with poor cache hit rate
Installation and Usage
Install with: claude plugin install claude-token-analyzer
After installation, you can ask Claude:
- "cta"
- "how much did I spend?"
- "scan for anomalies"
The plugin exposes 7 MCP tools and 6 workflow skills. It also includes Traditional Chinese workflow skills - you can input "看看狀況", "這個月花多少", or "有異常嗎" for Chinese analysis reports.
The tool is available on GitHub at https://github.com/li195111/claude-token-analyzer under MIT License.
📖 Read the full source: r/ClaudeAI
👀 See Also

Open Source MCP Server Connects Claude to Mailchimp API
A developer built a Mailchimp MCP server using Claude Code, providing 53 tools for campaigns, audiences, reports, automations, and e-commerce with built-in safety modes and read-only configuration.

OpenClaw user creates 'feelslikeclaude' skill to improve ChatGPT agent workflow behavior
A developer switched their OpenClaw setup from Claude to ChatGPT and found the key difference was workflow behavior, not writing style. They created a clawhub skill called 'feelslikeclaude' to nudge ChatGPT toward better execution habits.
Voker Launches Agent Analytics Platform with Intent/Correction/Resolution Primitives
YC S24 startup Voker launches an agent analytics platform with a lightweight SDK that automatically annotates user intents, corrections, and resolutions — providing self-service dashboards without relying on LLMs for data engineering.

Gemma4 26B-A4B Delivers Fast Local Performance with Web Search and Image Support
The gemma-4-26B-A4B model achieves approximately 145 tokens per second on an RTX 4090 and includes web search MCP and image support for chat applications. A blog post details setup and cross-platform usage on Mac and iPhone.