Tooluck logoTooluck
SKILL.md

session-compare

Agent skill fromhoangsonww/Claude-Code-Agent-Monitor

Compare 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.

How to install session-compare

install session-compare
# install the Claude-Code-Agent-Monitor pack with the skills CLI
npx skills add hoangsonww/Claude-Code-Agent-Monitor

# or add only this skill to Claude Code: copy the folder

plugins/ccam-insights/skills/session-compare/

# into

~/.claude/skills/session-compare/ (all projects)

.claude/skills/session-compare/ (one project)

plugins/ccam-insights/skills/session-compare/SKILL.md

MITFull file
1# Session Compare
2
3Compare two Claude Code sessions side-by-side using Agent Monitor data.
4
5## Input
6
7The user provides: **$ARGUMENTS**
8
9This may be:
10- Two session IDs: "abc123 def456"
11- "best vs worst" — compare highest and lowest productivity sessions
12- "latest 2" — compare the two most recent sessions
13- A session ID + "vs average" — compare one session against the baseline
14
15## Procedure
16
171. **Identify sessions to compare**:
18 - If two IDs given: fetch both from `http://localhost:4820/api/sessions/{id}`
19 - If "best vs worst": fetch sessions, score by completion + cost efficiency, pick extremes
20 - If "latest 2": `GET /api/sessions?limit=2` (default sort: most recently updated first)
21 - If "vs average": fetch session + compute averages from last 50 sessions
22
232. **Gather detailed data** for each session:
24 - Session metadata: `GET /api/sessions/{id}`
25 - Events: `GET /api/events?session_id={id}`
26 - Agents: `GET /api/agents?session_id={id}`
27 - Cost: `GET /api/pricing/cost/{id}`
28
293. **Build comparison**:
30
31 ### Overview Comparison
32 | Metric | Session A | Session B | Difference |
33 |--------|-----------|-----------|-----------|
34 | Status | completed | error | — |
35 | Model | sonnet-4 | sonnet-4 | same |
36 | Duration | 12m 34s | 45m 12s | +32m 38s |
37 | Total Cost | $0.0234 | $0.1456 | +522% |
38 | Events | 45 | 187 | +315% |
39 | Tools Used | 8 | 12 | +4 |
40 | Error Count | 0 | 7 | +7 |
41 | Agents | 2 | 5 | +3 |
42
43 ### Token Comparison
44…

Excerpt shown under the repository's MIT license.

More skills in Claude-Code-Agent-Monitor

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates