Tooluck logoTooluck
SKILL.md

benchmark

Agent skill fromhoangsonww/Claude-Code-Agent-Monitor

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

How to install benchmark

install benchmark
# 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/benchmark/

# into

~/.claude/skills/benchmark/ (all projects)

.claude/skills/benchmark/ (one project)

plugins/ccam-insights/skills/benchmark/SKILL.md

MITFull file
1# Benchmark
2
3Score a session against the rolling population average and report its percentile on
4cost, tokens, tool count, and complexity using Agent Monitor data.
5
6## Input
7
8The user provides: **$ARGUMENTS**
9
10This may be:
11- A single session ID — benchmark that session
12- "latest" — benchmark the most recent session
13- "latest N" — benchmark the N most recent sessions, each vs the average
14- empty — benchmark the most recent session (default)
15
16## Data Sources
17
18| Endpoint | Returns |
19|----------|---------|
20| `GET /api/sessions?limit=N` | Population of sessions with `cost`, `model`, `started_at`, `metadata` (turn_count, total_turn_duration_ms) — builds the rolling baseline |
21| `GET /api/pricing/cost/{sessionId}` | `{ total_cost, breakdown:[{ input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost }] }` — the target session's cost and tokens |
22| `GET /api/workflows/{sessionId}` | `complexity` (score), `stats` (tool/event counts), `toolFlow` (distinct tools used) — the target session's tool count and complexity |
23| `GET /api/analytics` | `avg_events_per_session`, `tool_usage`, `daily_sessions` — corroborates population-level averages |
24
25## Report Sections
26
27### 1. Build the Baseline
28Fetch the population with `GET /api/sessions?limit=200` (the rolling set). For each
29session gather cost (`GET /api/pricing/cost/{id}` or the list `cost` field), total
30tokens (sum of the 4 token types from the pricing breakdown), tool count and
31…

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