Uploaded September 2026 | Updated November 2026, 16 hours ago
A short walkthrough of a practical workflow for analyzing production traces and building datasets without leaving your coding agent. Using LangChain's own customer support agent as the example, we pull the latest threads flagged for perceived error, have a coding agent classify each failure by issue type, then create a native thread dataset in LangSmith with a split for every issue type. The result is a sorted corpus of real failures you can reuse as an evaluation metric or as post-training examples.
Chapters:
0:00 The problem: thousands of interactions a day
0:18 The perceived error evaluator
0:44 Setup: the LangSmith CLI and a coding agent
0:54 Grabbing the latest LangSmith skills
1:09 Pulling the 50 latest flagged threads
1:24 Defining agent issue types
1:38 Classifying every failure by issue type
2:07 Reading the results: most were a flawed plan
2:19 Building a dataset with a split per issue type
2:50 Exploring the splits in LangSmith
3:16 Filtering to failed error recovery threads
3:26 What you can do next
Resources:
→ LangSmith: langchain.com/langsmith
→ LangSmith docs: docs.langchain.com/langsmith
→ LangSmith CLI and skills: docs.langchain.com
A short walkthrough of a practical workflow for analyzing production traces and building datasets without leaving your coding agent. Using LangChain's own customer support agent as the example, we pull the latest threads flagged for perceived error, have a coding agent classify each failure by issue type, then create a native thread dataset in LangSmith with a split for every issue type. The result is a sorted corpus of real failures you can reuse as an evaluation metric or as post-training examples.
Chapters:
0:00 The problem: thousands of interactions a day
0:18 The perceived error evaluator
0:44 Setup: the LangSmith CLI and a coding agent
0:54 Grabbing the latest LangSmith skills
1:09 Pulling the 50 latest flagged threads
1:24 Defining agent issue types
1:38 Classifying every failure by issue type
2:07 Reading the results: most were a flawed plan
2:19 Building a dataset with a split per issue type
2:50 Exploring the splits in LangSmith
3:16 Filtering to failed error recovery threads
3:26 What you can do next
Resources:
→ LangSmith: langchain.com/langsmith
→ LangSmith docs: docs.langchain.com/langsmith
→ LangSmith CLI and skills: docs.langchain.com










