← Back to the catalog Debug 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_c
View on GitHub ↗ Copy repo URL Copy SKILL.md link License: MIT /plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor The exact command may vary by repository. Check the README on GitHub.
For the skill author
Shows your skill is listed on Skillteca, generates a backlink and trackable traffic.
Markdown HTML
[](https://www.skillteca.com.br/skills/claude-code-agent-monitor-mpsjmms2?utm_source=badge&utm_medium=readme&utm_campaign=badge) Copy snippet Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Design e Frontend #test by anthropics
Applies Anthropic's official brand colors and typography to any artifact that may benefit from its look-and-feel. Use it when brand colors, style guidelines, visual formatting, or company design standards apply.
Design e Frontend by anthropics
Creates distinctive, production-grade frontend interfaces with high design quality, generating creative, polished code and UI design that avoids generic AI aesthetics. Use for building web components, pages, and applications, or for styling/beautifying web UIs.
Design e Frontend #css #ai by anthropics
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
Design e Frontend #css #ai by anthropics
Category alert
One short email with only the new Design e Frontend skills. 4 minutes of reading, no spam, unsubscribe with one click.
You confirm your email on the first send. No spam. Unsubscribe with one click.
Session Debug
Debug and inspect a Claude Code session from Agent Monitor data.
Input
The user provides: $ARGUMENTS
This may be:
A session ID to debug
"latest" or "last" for the most recent session
"errors" to find and debug the most recent errored session
Procedure
Identify the target session :
If session ID given: GET /api/sessions/{id} from http://localhost:4820
If "latest": GET /api/sessions?limit=1 (default sort: most recently updated first)
If "errors": GET /api/sessions?limit=10&status=error
Collect full session data :
Session metadata: status, model, cwd, timestamps, duration
Events: GET /api/events?session_id={session_id} — full event timeline
Agents: GET /api/agents?session_id={session_id} — all agents in session
Cost: GET /api/pricing/cost/{session_id}
Analyze the session :
Session Lifecycle
Start time → first event → last event → end time
Status transitions (active → working → completed/error)
Total duration and active-vs-idle time
Event Chain Analysis
Chronological event list with timestamps and durations
Identify the critical path (longest chain of dependent events)
Flag events that took unusually long
Highlight error events with full error context
Agent Inspection
List all agents: type, task, status, duration
Subagent tree visualization (parent → children)
Agents that failed and their last known state
Agent switching patterns (when and why new agents spawned)
Tool Execution Trace
Every tool invocation in order with: tool name, duration, success/failure
Failed tool calls with error messages
Tool retry patterns (same tool called multiple times)
Anomaly Detection
Events out of expected order
Gaps in event timeline (>30s with no events)
Duplicate events or agent states
Token usage spikes (compaction indicators)
Diagnosis :
Root cause hypothesis (if errors present)
Contributing factors
Remediation suggestions
Output Format
Present as a debug report with:
Session summary header (ID, status, model, duration, cost)
Color-coded timeline (✅ success, ❌ error, ⚠️ warning, ℹ️ info)
Agent tree diagram
Diagnosis section with numbered findings
Read full description↓
Comments · No comments No comments yet. Be the first.