mcpbeat Sign in

Session Compare Skill for Claude

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

787 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
867
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/hoangsonww/Claude-Code-Agent-Monitor --skill session-compare

The instruction itself

9 sections, as written by the author

Session Compare

Compare two Claude Code sessions side-by-side using Agent Monitor data.

Input

The user provides: $ARGUMENTS

This may be:

  • Two session IDs: "abc123 def456"
  • "best vs worst" — compare highest and lowest productivity sessions
  • "latest 2" — compare the two most recent sessions
  • A session ID + "vs average" — compare one session against the baseline

Procedure

  • Identify sessions to compare:
  • If two IDs given: fetch both from http://localhost:4820/api/sessions/{id}
  • If "best vs worst": fetch sessions, score by completion + cost efficiency, pick extremes
  • If "latest 2": GET /api/sessions?limit=2 (default sort: most recently updated first)
  • If "vs average": fetch session + compute averages from last 50 sessions
  • Gather detailed data for each session:
  • Session metadata: GET /api/sessions/{id}
  • Events: GET /api/events?session_id={id}
  • Agents: GET /api/agents?session_id={id}
  • Cost: GET /api/pricing/cost/{id}
  • Build comparison:

Overview 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 Comparison

| 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% |

Tool Usage Comparison

  • Tools unique to Session A
  • Tools unique to Session B
  • Shared tools with usage count comparison
  • Error rate per tool in each session

Timeline Comparison

  • Side-by-side event timeline
  • Where sessions diverged in approach
  • Key decision points that led to different outcomes

Agent Activity Comparison

  • Agent counts and types
  • Subagent strategy differences
  • Agent success rates
  • Analysis:
  • Why one session was more efficient/successful than the other
  • Key decisions that made the difference
  • Lessons to apply to future sessions

Output Format

Present as a side-by-side comparison report with:

  • Executive comparison summary (which session was "better" and why)
  • Structured comparison tables with color-coded differences (green = better, red = worse)
  • A "Lessons Learned" section with actionable takeaways
  • Overall winner declaration with justification

Other skills for the same job

different authors, same section of the catalogue
Skill Creator
by anthropics
vendor ×10

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

56k tokens scripts
Skill Creator
by vercel-labs
vendor ×10

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

12k tokens scripts
Skill Creator
by JayZeeDesign
×9

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

10k tokens scripts
Template Skill
by JayZeeDesign
×7

Replace with description of the skill and when Claude should use it.

35 tokens
Dispatching Parallel Agents
by ZhanlinCui
×5

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

2k tokens
Skill Development
by anthropics
vendor ×4

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

9k tokens
Find Skills
by sanity-io
vendor ×4

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

1k tokens
Writing Skills
by ZhanlinCui
×4

Use when creating new skills, editing existing skills, or verifying skills work before deployment

26k tokens scripts

How to use it

Copy the folder

Take hoangsonww/session-compare from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.