Back to Skills

langsmith-fetch

AI observability skill for Claude Code. Debug LangChain/LangGraph agents by fetching execution traces from LangSmith Studio directly in your terminal.

11stars3forksUpdated 1/20/2026

Security Assessment

Critical Risk(20/100)

Detected risks:

Persistence([README.md] .bashrc, [README.md] .zshrc, [SKILL.md] .bashrc)
Secret Exposure([README.md] API_KEY=, [SKILL.md] API_KEY=)
Security Score20/100

About langsmith-fetch

The langsmith-fetch skill is designed to facilitate debugging for LangChain and LangGraph agents by fetching execution traces directly from LangSmith Studio. It addresses the common challenges faced by developers and data scientists when trying to understand the behavior of their agents, especially in scenarios where errors occur or performance issues arise. By providing an easy-to-use command-line interface, this skill allows users to quickly retrieve and analyze recent execution traces, enabling them to identify problems and optimize their agents' performance effectively.

With core workflows that cover quick debugging of recent activity, deep dives into specific traces, and the ability to export debug sessions, langsmith-fetch is a versatile tool for agent debugging. It automatically fetches recent traces, analyzes execution patterns, checks for errors, and reviews memory operations. The skill is particularly useful for developers working with AI agents who need to investigate failures, analyze tool calls, or check token usage for cost management. Overall, it streamlines the debugging process, making it more efficient and user-friendly.

Target users for this skill include developers, data scientists, and AI engineers who utilize LangChain and LangGraph frameworks. By integrating this skill into their workflows, users can ensure that their agents operate smoothly, thereby improving the reliability and performance of their AI applications. Whether it's for debugging, performance analysis, or error detection, langsmith-fetch serves as an essential tool in the AI developer's toolkit.

FAQ

How do I install langsmith-fetch?

You can install langsmith-fetch using the command: pip install langsmith-fetch.

What environment variables do I need to set?

You need to set LANGSMITH_API_KEY and LANGSMITH_PROJECT environment variables.

Can I use this skill for performance analysis?

Yes, this skill allows you to analyze agent performance, including execution times and token usage.

What if I encounter an error while using langsmith-fetch?

You can use the skill to fetch recent traces and identify any errors or failures in agent execution.

Is there a limit on the number of traces I can fetch?

Yes, you can specify limits when fetching traces, such as the number of traces or the time frame.

All Files

6 files
.gitignore0.5 KB
View
CHANGELOG.md2.9 KB
View
CONTRIBUTING.md7.8 KB
View
LICENSE1.1 KB
View
README.md7.6 KB
View
SKILL.md10.6 KB
View

Install langsmith-fetch

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill