Cc Waste — Development skill for Claude Code
Scans your local Claude Code session logs and generates a self-contained HTML report of token usage, cost, and likely waste (repeated file reads, oversized tool results, unused skills) — 100% local, n.
How to install Cc Waste
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open yoodongdong/cc-waste and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cc Waste does
Scans your local Claude Code session logs and generates a self-contained HTML report of token usage, cost, and likely waste (repeated file reads, oversized tool results, unused skills) — 100% local, no network calls. Optional --fix auto-disables unused skills.
Alternatives in Development
- Om Tidy — Self-maintenance pass — acts on every hygiene flag: archives completed work, groups loose clusters, splits ove 4.6k ★
- Clauditor — Stop Claude Code from burning through your quota in 20 minutes 367 ★
- Playbook — How to dispatch well — choosing flash vs pro, writing self-contained briefs, parallelism, verifying results, a 116 ★
README
cc-waste
[](https://www.npmjs.com/package/cc-waste) [](https://www.npmjs.com/package/cc-waste)
Scans your local Claude Code session logs and generates a single self-contained HTML report showing token usage, estimated cost, and likely token-waste patterns — repeated file reads, oversized tool results, large pasted content, low prompt-cache hit rates, and unused or rarely-used installed skills. With `--fix`, it disables the unused/rarely-used skills itself and the report shows exactly what it found and what it did about it.
**100% local.** It only reads files under your own `~/.claude/projects/` directory. It makes no network calls and sends nothing anywhere.
**Early version.** Token/cost numbers are heuristic estimates (not exact), and this hasn't been battle-tested against every Claude Code setup yet (Windows, huge logs, etc.). Feedback and bug reports are very welcome — [open an issue](https://github.com/yoodongdong/cc-waste/issues).
Usage
npx cc-waste
This writes `cc-waste-report.html` in the current directory, prints a summary to the terminal, and **opens the report in your default browser** — no extra flag needed. If any installed skill looks unused, the terminal and the report both print the exact command to clean it up.
Options
-o, --out Output HTML path (default: ./cc-waste-report.html)
--dir Claude config dir to scan (default: $CLAUDE_CONFIG_DIR or ~/.claude)
--days Only include activity from the last N days
--project Only include projects whose folder name contains this
--json Also write a .json file with the raw aggregated data
--no-open Don't auto-open the report in a browser (default: opens)
--fix Disable unused/rarely-used skills automatically (see below)
-h, --help Show help
Examples:
Related Skills
Claude Agent Ledger
Per-subagent cost attribution for Claude Code. Reads local JSONL session logs, computes shadow cost at margina
Analyze Patterns
Analyze ~/.claude/tool_logs/operations.jsonl operation logs to identify repeated patterns across sessions and
Token Guard
Automatic Claude Code hooks to reduce token waste — block heavy files, context warnings, cost logging
Offline Telemetry Script
Offline analyzer for Claude Code session transcripts (~/.claude/projects/.jsonl). Pure-stdlib Python, no API c
Claude Code Token Watch
Claude Code hooks that warn when a session starts burning tokens on repeated Reads, recursive greps, or WebFet
Spinwatch
Alarm when your coding agent spins instead of works — catches repeated identical tool calls and endless talk-w
Related Agents
API Cost Scanner
Scans codebase for AI/API cost optimization opportunities including model usage, token estimates, caching stra
AI Cost Optimizer
Audits an LLM application or AI agent for token cost and rate-limit risk, using its usage logs and code, and r
Context Analyzer
Analyzes context usage patterns, identifies waste, and provides optimization recommendations. Use when the use