Diagnose a slow agent without opening LangSmith UI
何时使用: An agent that used to be snappy is now slow; you want root cause.
步骤
-
Ask Claude to diagnoseWhy is my agent <name> slow? Pull the last 20 traces from LangSmith and find the hotspot.✓ 已复制→ Skill fetches traces; reports latency by step
-
Drill inFocus on trace <id> — break down tool-call times.✓ 已复制→ Per-tool latency with the outlier called out
结果: A specific step to optimize, not a hunch.
注意事项
- Optimizing the average when tail latency is the problem — Ask for p95/p99 specifically