/ccam-insights:session-comparefrom ccam-insights
Compares two Claude Code sessions side-by-side using Agent Monitor data, including token usage, cost breakdowns, workflow intelligence, session metadata, and event timelines.
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.
Compare two Claude Code sessions side-by-side using Agent Monitor data.
The user provides: $ARGUMENTS
This may be:
Identify sessions to compare:
http://localhost:4820/api/sessions/{id}GET /api/sessions?limit=2 (default sort: most recently updated first)Gather detailed data for each session:
GET /api/sessions/{id}GET /api/events?session_id={id}GET /api/agents?session_id={id}GET /api/pricing/cost/{id}Build comparison:
| Metric | Session A | Session B | Difference |
|---|---|---|---|
| Status | completed | error | — |
| Model | sonnet-4 | sonnet-4 | same |
| Duration | 12m 34s | 45m 12s | +32m 38s |
| Total Cost | $0.0234 | $0.1456 | +522% |
| Events | 45 | 187 | +315% |
| Tools Used | 8 | 12 | +4 |
| Error Count | 0 | 7 | +7 |
| Agents | 2 | 5 | +3 |
| Token Type | Session A | Session B | Difference |
|---|---|---|---|
| Input | N | N | ±N% |
| Output | N | N | ±N% |
| Cache Read | N | N | ±N% |
| Cache Write | N | N | ±N% |
| Efficiency | N% | N% | ±N% |
Analysis:
Present as a side-by-side comparison report with:
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.
/regression-watchDetect quality and efficiency regressions over time using Agent Monitor data — rising error rate (APIError events), falling cache hit rate, growing compaction frequency, and climbing cost-per-session. Splits history into an earlier baseline window and a recent window and reports which metrics are getting worse, by how much, and where. Use when checking whether things are degrading or trending in the wrong direction.
5 plugins ship this exact skill · first indexed Aug 10, 2026
Other plugins' skills for the same job