debug-live-issue
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows,…
Analyze prompt-cache effectiveness for Claude Code usage from the Agent Monitor dashboard — cache hit rate (total_cache_read / (total_cache_read + total_input)), cache_write vs cache_read reuse, cache-read vs cache-write spend, and the sessions with the poorest reuse. Pulls
Claude Code
$ npx -y skills add hoangsonww/Claude-Code-Agent-Monitor --skill cache-efficiency --agent claude-code
Codex
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cache-efficiency -a codex -y
Cursor
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cache-efficiency -a cursor -y
Gemini CLI
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cache-efficiency -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cache-efficiency -a github-copilot -y
OpenCode
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cache-efficiency -a opencode -y
Windsurf
$ npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cache-efficiency -a windsurf -y
name: cache-efficiency description: > Analyze prompt-cache effectiveness for Claude Code usage from the Agent Monitor dashboard — cache hit rate (total_cache_read / (total_cache_read + total_input)), cache_write vs cache_read reuse, cache-read vs cache-write spend, and the sessions with the poorest reuse. Pulls token totals from /api/analytics, per-session detail from /api/sessions, and dollar splits from /api/pricing/cost. Use when diagnosing cache spend or deciding whether prompt caching is paying off.
Diagnose whether prompt caching is actually saving money, and where it is not.
The user provides: **$ARGUMENTS**
This may be: empty (analyze the whole fleet), "today" / "this week" / a date range, a session ID to scope the analysis, or a target like "hit rate > 80%". When empty, analyze all data from `/api/analytics`.
| Endpoint | Returns | |----------|---------| | `GET /api/analytics` | `tokens.total_input`, `tokens.total_output`, `tokens.total_cache_read`, `tokens.total_cache_write` (baselines pre-summed), plus `daily_sessions` | | `GET /api/sessions?limit=200` | Session list — each has model, cwd, started_at, ended_at, inline `cost`, metadata (JSON: usage_extras with cache token detail) | | `GET /api/sessions/{id}` | Full session detail with nested agents and events, for drill-down on a flagged session | | `GET /api/pricing/cost` | `{ total_cost, breakdown: [{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }` — used to price cache read vs write spend |
cache_hit_rate = total_cache_read / (total_cache_read + total_input) cache_reuse = total_cache_read / total_cache_write cache_read_cost = (cache_read_tokens / 1M) × cache_read_per_mtok cache_write_cost = (cache_write_tokens / 1M) × cache_write_per_mtok
Cache writes cost more per token than cache reads (e.g. Sonnet $3.75 write vs $0.30 read per Mtok), and writes are billed even if the cached block is never reused. The payoff only arrives on subsequent reads — so a healthy fleet shows **cache_read_tokens far exceeding cache_write_tokens**. When `cache_reuse < 1`, you are paying to cache context you barely re-read.
Token counts are **effective totals** = `current + baseline` (baselines preserve pre-compaction tokens).
From `/api/analytics`: compute `cache_hit_rate × 100`. State raw `total_cache_read` and `total_input`. Benchmark: >70% strong, 40–70% moderate, <40% weak prompt-cache utilization.
Compute `cache_reuse = total_cache_read / total_cache_write`. Show both token counts. Flag if reuse < 1 (writing more cache than is ever read back).
From `/api/pricing/cost` breakdown, sum `cache_read_cost` and `cache_write_cost` across all models. Show the dollar split and what fraction of total cost is cache-write overhead vs cache-read savings.
From `/api/sessions?limit=200`, parse `metadata.usage_extras` for per-session cache read/write where available; rank sessions by lowest read/write reuse (and by cache_write-heavy cost). List the worst 10 with model, cost, and reuse ratio. Use `/api/sessions/{id}` to drill into any single flagged session.
Structured Markdown with tables. Currency as USD to 4 decimal places; rates as $/Mtok; percentages with ▲/▼ for any trend. Token counts with thousands separators.
🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, & an interactive web UI/MacOS/Windows native app.
Debug production-like issues in this repository with disciplined evidence gathering. Use when fixing failing workflows,…
MANDATORY for every coding agent (Claude Code, Codex, or any other) on every change-set — every applicable source file the agent…
MANDATORY for every coding agent and contributor touching localized content — keep all five localization surfaces (dashboard UI…
Operate and maintain the local MCP server for this project. Use when creating MCP host config, troubleshooting tool connectivity,…
Push the current working tree directly to a GitHub PR whose head lives on a **fork**, without creating a new branch and without…
Onboard quickly to this repository. Use when asked to understand architecture, locate ownership, choose the right module, or…
Personalized audit that teaches the advanced Paradev (formerly Superset) features the user isn't using yet (automations, parallel…
Direct actions on one Orchestrator session or PR: stop or interrupt, resume, merge a PR, start a review, screenshot a session's…
Your capability catalog — read this at boot. Lists the temporal date-range skills and the external integrations (reached via the…