/ccam-insights:regression-watchfrom ccam-insights
Detects quality and efficiency regressions in Claude Code sessions via Agent Monitor data: rising error rates, falling cache hit rates, growing compaction frequency, climbing cost-per-session.
Ships in ccam-insights. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Detect whether Claude Code sessions are getting worse over time across quality and efficiency metrics, using Agent Monitor data.
The user provides: $ARGUMENTS
This may be:
| Endpoint | Returns |
|---|---|
GET /api/analytics | daily_events (365d), daily_sessions (365d), event_types, tokens (total_input, total_output, total_cache_read, total_cache_write — baselines pre-summed), avg_events_per_session |
GET /api/events?session_id=X | Event stream incl. APIError, Compaction, PreToolUse/PostToolUse — used to localize regressions to specific sessions |
GET /api/pricing/cost | { total_cost, breakdown[...] } — total cost to derive cost-per-session |
GET /api/pricing/cost/{sessionId} | Per-session cost — used to compare recent vs baseline session cost |
GET /api/workflows/{sessionId} | compaction (impact), errorPropagation (by depth), effectiveness — per-session quality signals |
GET /api/sessions?limit=N | Sessions with started_at, cost, metadata — to bucket sessions into time windows |
Split history into a baseline window (older) and a recent window (newer).
Default: recent = last 30 days, baseline = the 30–90 day range before it. Use
daily_events/daily_sessions for series metrics and GET /api/sessions?limit=N
to assign sessions to each window by started_at.
APIError count / total events in the recent window
(from event_types and daily_events, or per-session GET /api/events).APIError events.total_cache_read / (total_cache_read + total_input).Compaction events / session per window (from
event_types / daily_events, confirmed via per-session
GET /api/workflows/{id} compaction). Flag a rising rate — context is
overflowing more often.GET /api/pricing/cost overall and GET /api/pricing/cost/{id} for the
sessions in each window. Flag a climbing value.Roll up which metrics regressed, rank by relative worsening, and name the most likely driver (e.g., cache hit rate fell → cost per session climbed).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-insights6 skills in this plugin
/anomaly-alertIdentify anomalous sessions using Agent Monitor data — cost outliers from the pricing engine, token anomalies (cache miss spikes, compaction baseline surges), unusual event type ratios (PreToolUse/PostToolUse gaps, APIError clusters), behavioral deviations from workflow intelligence (complexity score outliers, error propagation anomalies), and sessions with abnormal metadata (extreme turn_count, high thinking_blocks, zero turn_duration).
/benchmarkBenchmark one session (or a small recent set) against the rolling average using Agent Monitor data — cost, total tokens, tool count, and workflow complexity score — and report where each metric lands as a percentile of the population. Tells you whether a session was normal, cheap, or an outlier. Use when judging whether a session was typical or out of band.
/optimization-suggestSuggest concrete optimizations for Claude Code usage based on historical session data. Covers cost reduction, speed improvement, error prevention, and workflow efficiency. Use for data-driven optimization planning.
/pattern-detectDetect recurring patterns using the Agent Monitor's workflow intelligence — toolFlow transitions (tool A → B frequency matrices), recurring workflow patterns, agent co-occurrence pairs, model delegation habits, error propagation paths by agent depth, and compaction triggers. Use to discover habitual usage patterns and anti-patterns.
/session-compareCompare two sessions side-by-side using Agent Monitor data — per-model token usage (input/output/cache_read/cache_write + compaction baselines), pricing engine cost breakdowns, workflow intelligence (complexity scores, tool flow transitions, subagent effectiveness), session metadata (thinking_blocks, turn_count, turn_duration_ms, usage_extras), and full event timelines with all 10+ event types.
5 plugins ship this exact skill · first indexed Aug 10, 2026
Other plugins' skills for the same job