langsmith-fetch

Fetch and analyze LangSmith Studio execution traces for LangChain and LangGraph agents.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/billydeeii136/black-opps-claude-skill --skill langsmith-fetch-billydeeii136
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-fetch
Source: https://github.com/billydeeii136/black-opps-claude-skill/tree/main/agent-skills/langsmith-fetch
Command: npx skills add https://github.com/billydeeii136/black-opps-claude-skill --skill langsmith-fetch-billydeeii136

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langsmith-fetch, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill facilitates debugging LangChain and LangGraph agents by automatically fetching execution traces from LangSmith Studio. It is useful when you need to diagnose agent behavior, investigate errors, or analyze agent performance.

Core Features & Use Cases

  • Trace Retrieval: Automatically fetches recent traces from LangSmith Studio.
  • Error Detection: Identifies and reports errors in execution.
  • Performance Analysis: Examine agent performance, token usage, and execution flow.
  • Use Case: When an agent is not responding or is slow, you can use this skill to check for recent traces, identify errors, and analyze execution patterns.

Quick Start

To debug recent activity, run 'langsmith-fetch traces --last-n-minutes 5 --limit 5 --format pretty'.

Frequently Asked Questions about langsmith-fetch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch execution traces for LangChain agents to debug errors?

Fetch execution traces for LangChain agents by running the langsmith-fetch CLI to retrieve recent runs from LangSmith Studio. This automatically identifies execution errors and reports them for debugging agent behavior.

What is the best way to analyze LangGraph agent performance and token usage?

Analyze LangGraph agent performance by fetching execution traces from LangSmith Studio. The traces provide detailed data on token usage, execution flow, and response latency to help monitor and optimize agent operations.

Can I use langsmith-fetch to investigate why my LangChain agent is not responding?

Yes, you can investigate unresponsive LangChain agents by fetching recent execution traces. Running the trace retrieval command surfaces recent activity logs, allowing you to identify errors and analyze execution patterns causing the failure.

Do I need a LangSmith Studio project to retrieve LangGraph execution traces?

Yes, retrieving LangGraph execution traces requires access to a LangSmith Studio project and the langsmith-fetch CLI. The Skill connects to your project environment to automatically pull and analyze the recorded agent execution data.

How do I retrieve recent LangChain agent traces from the last few minutes?

Retrieve recent LangChain agent traces by running 'langsmith-fetch traces --last-n-minutes 5 --limit 5 --format pretty'. This command fetches the latest execution records from LangSmith Studio for immediate debugging analysis.