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