Agent Debug Traces

•
1
•

Diagnoses agent performance and execution issues through comprehensive trace logging and SQL-based analysis.

The Agent Debug Traces skill provides a robust observability framework for monitoring and troubleshooting AI agent behavior within Claude. It enables developers to query structured execution logs, analyze performance metrics, and pinpoint the root cause of slow responses, tool failures, or guardrail rejections. By leveraging SQL-based querying of agent traces and daily metrics, it offers deep visibility into the entire agent lifecycle—from initial message receipt and tool invocation to final completion and error handling.

Key Features

01Performance monitoring to identify tool bottlenecks and high-latency events
02Verbose environment-level debug flags for tools, context, and retrieval
03Guardrail analysis to understand the logic behind message rejections
041 GitHub stars
05Aggregate metrics tracking for success rates, token usage, and total costs
06SQL-based trace querying for rapid debugging of agent execution failures

Use Cases

01Reviewing historical performance trends to correlate success rate changes with recent code or instruction deployments
02Investigating why a specific agent response was significantly slower than expected by analyzing event durations
03Debugging recurring tool failures by examining the exact parameters and sequence of events leading to errors