{"slug": "show-hn-costclaw-a-local-cli-that-finds-your-claude-code-spend-leaks", "title": "Show HN: CostClaw, a local CLI that finds your Claude Code spend leaks", "summary": "CostClaw, a new local CLI tool, analyzes Claude Code usage and found $1,284.50 in recoverable spend from cache misses across 1,840 sessions and 41 projects, with a total spend of $6,240.18 and a 95.1% cache hit rate. The tool provides an overall setup score of 88/100 and recommends stabilizing session starts to reuse the prompt cache, potentially saving $1,284.50.", "body_md": "~/.claude/projects 1840 sessions · 41 projects · CLAUDE.md found\n\nRecoverable spend $1,284.50 cache-miss exposure\n\n- Spend analyzed\n- $6,240.18\n\n- Cache hit\n- 95.1%\n\n- Active hours\n- 538\n\nModel spend opus 58% / sonnet 33% / haiku 9%\n\nOverall setup score 88 / 100 Tight\n\n- CLAUDE.md quality 78\n- Context hygiene 95\n- Prompting patterns 92\n- Session management 84\n- Tool and MCP config 100\n- Cost discipline 70\n\nTop fix by recoverable spend\n\n$1,284.50 Recover spend lost to cache misses Keep the start of each session stable so the prompt cache is reused instead of rebuilt.\n\n- $52.40 Use a cheaper model for 61 small sessions\n- $18.90 Compact four long sessions that lost the cache\n- warn Workflow and subagent runs cost $214\n- warn Three projects fire one tool 100+ times per session", "url": "https://wpnews.pro/news/show-hn-costclaw-a-local-cli-that-finds-your-claude-code-spend-leaks", "canonical_source": "https://www.costclaw.io/", "published_at": "2026-08-05 06:01:40+00:00", "updated_at": "2026-08-05 06:22:47.548777+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "ai-infrastructure"], "entities": ["CostClaw", "Claude Code"], "alternates": {"html": "https://wpnews.pro/news/show-hn-costclaw-a-local-cli-that-finds-your-claude-code-spend-leaks", "markdown": "https://wpnews.pro/news/show-hn-costclaw-a-local-cli-that-finds-your-claude-code-spend-leaks.md", "text": "https://wpnews.pro/news/show-hn-costclaw-a-local-cli-that-finds-your-claude-code-spend-leaks.txt", "jsonld": "https://wpnews.pro/news/show-hn-costclaw-a-local-cli-that-finds-your-claude-code-spend-leaks.jsonld"}}