Diagnose a slow agent without opening LangSmith UI
When to use: An agent that used to be snappy is now slow; you want root cause.
Flow
-
Ask Claude to diagnoseWhy is my agent <name> slow? Pull the last 20 traces from LangSmith and find the hotspot.✓ Copied→ Skill fetches traces; reports latency by step
-
Drill inFocus on trace <id> — break down tool-call times.✓ Copied→ Per-tool latency with the outlier called out
Outcome: A specific step to optimize, not a hunch.
Pitfalls
- Optimizing the average when tail latency is the problem — Ask for p95/p99 specifically