Fetch execution traces from LangSmith Studio in your terminal. Debug LangChain and LangGraph agents using Claude Code. Improve AI observability and streamline debugging for developers.
git clone https://github.com/OthmanAdi/langsmith-fetch-skill.gitLangSmith Fetch Skill teaches Claude to debug LangChain and LangGraph agents by automatically retrieving and analyzing execution traces from LangSmith Studio. Simply ask Claude to debug your agent, and it fetches traces, identifies errors, analyzes performance bottlenecks, and reviews tool call execution. The skill detects failures and root causes, tracks token usage, examines memory operations, and compares agent performance across runs. Developers working with LangChain agents benefit from streamlined observability and faster debugging workflows without leaving the terminal.
Install the langsmith-fetch CLI and skill via npm, then set your LANGSMITH_API_KEY and LANGSMITH_PROJECT environment variables. Open Claude Code and ask Claude to debug your agent—it automatically fetches traces and provides analysis.
Debug failing agent traces and identify root causes automatically
Analyze execution performance and identify slowest operations
Review tool calls and memory operations for agent orchestration
Export debugging sessions for team review and documentation
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/OthmanAdi/langsmith-fetch-skillCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Fetch the execution traces for the [AGENT_NAME] agent from LangSmith Studio. Include all traces from the last [TIME_PERIOD] hours. Format the output for debugging in Claude Code.
```markdown
# Execution Traces for 'Order Processing Agent'
## Trace 1: Failed Order Creation
- **Timestamp**: 2023-11-15 14:30:22
- **Status**: Failed
- **Error**: Invalid product ID 'XYZ123'
- **Input**: {"product_id": "XYZ123", "quantity": 2}
- **Output**: {"error": "Product not found"}
## Trace 2: Successful Order Update
- **Timestamp**: 2023-11-15 15:45:10
- **Status**: Success
- **Input**: {"order_id": "ORD456", "status": "shipped"}
- **Output**: {"message": "Order status updated"}
## Trace 3: Timeout Error
- **Timestamp**: 2023-11-15 16:20:45
- **Status**: Timeout
- **Error**: Request timed out after 30 seconds
- **Input**: {"order_id": "ORD789", "action": "cancel"}
```Framework for building applications with LLMs
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan