/ccam-devtools:event-tracefrom ccam-devtools
Builds a chronological, annotated event timeline for a single Claude Code session, highlighting gaps, out-of-order events, failures, and unpaired tool calls. Helpful for debugging exactly what a session did step by step.
Ships in ccam-devtools. 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.
Build a chronological, annotated event timeline for a single session.
The user provides: $ARGUMENTS
This is a session ID. It may also be:
latest / last — trace the most recently updated sessionerrors — trace the most recent session whose status is error| Endpoint | Returns |
|---|---|
GET /api/sessions?limit=N | session list (used to resolve latest/errors and the target id) |
GET /api/sessions/:id | full session detail (status, model, cwd, started_at, ended_at, cost, nested agents + events) |
GET /api/events?session_id=X | the ordered event stream: event_type, tool_name, summary, data, timestamp |
If $ARGUMENTS is a raw id, use it. If latest/last, call
GET /api/sessions?limit=1. If errors, call
GET /api/sessions?limit=10&status=error and pick the newest. Confirm the id
resolves via GET /api/sessions/:id; if not, report it as missing and stop.
From GET /api/sessions/:id: id, status, model, cwd, started_at → ended_at,
total duration, cost (USD to 4 decimals), and counts (events, agents).
From GET /api/events?session_id=X, list every event in timestamp order. One row
per event:
| # | time | Δ since prev | event_type | tool_name | summary |
Cover all event types present: SessionStart, PreToolUse, PostToolUse, Stop, SubagentStop, Compaction, APIError, TurnDuration, Notification, SessionEnd.
Annotate the timeline:
summary/data indicates
an error — mark ❌ with the error text.One line: CLEAN, GAPS DETECTED, or FAILURES PRESENT — with the count of each flag type and the single most likely thing to investigate next.
npm start from the repo root.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hoangsonww/claude-code-agent-monitor --plugin ccam-devtools6 skills in this plugin
/data-exportExport Claude Code session and analytics data in JSON, CSV, or Markdown formats. Supports exporting sessions, events, costs, and analytics for external analysis or reporting. Use for data backup or integration.
/health-checkRun comprehensive health checks on the Claude Code Agent Monitor system. Validates dashboard API, database, WebSocket, hooks, and disk usage. Use to verify the monitoring setup is working correctly.
/hook-diagnosticsDiagnose Claude Code hook installation, delivery, and ingestion issues. Checks hook configuration, connectivity, event flow, and identifies common problems. Use when events are not appearing in the dashboard.
/session-debugDebug a specific session by inspecting its full event chain (PreToolUse, PostToolUse, Stop, SubagentStop, Compaction, APIError, TurnDuration, Notification events), agent hierarchy (recursive parent/child tree with subagent_type and depth), token usage with compaction baselines, workflow intelligence data (orchestration DAG, error propagation by depth), and session metadata (thinking_blocks, turn_count, total_turn_duration_ms).
/transcript-grepSearch a Claude Code session transcript for a string or regex pattern and show every matching message with surrounding context. Reads /api/sessions/:id/transcript and resolves sessions via /api/sessions?limit= from the Agent Monitor dashboard. Use when hunting for a specific message, prompt, tool call, or error inside a session's conversation.
5 plugins ship this exact skill · first indexed Aug 10, 2026
Other plugins' skills for the same job