AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Session Debug

skill-hoangsonww-claude-code-agent-monitor-session-debug · by hoangsonww

>

No reviews yet
0 installs
20 views
0.0% view→install

Install

$ agentstack add skill-hoangsonww-claude-code-agent-monitor-session-debug

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-hoangsonww-claude-code-agent-monitor-session-debug)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Session Debug? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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

  1. 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
  1. 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}
  1. 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)
  1. 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

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.