langsmith-fetch

Fetch and analyze LangSmith traces to debug agent behavior.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/piyushmal13/kandhogaya --skill langsmith-fetch-piyushmal13
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-fetch
Source: https://github.com/piyushmal13/kandhogaya/tree/main/.kilocode/skills/langsmith-fetch
Command: npx skills add https://github.com/piyushmal13/kandhogaya --skill langsmith-fetch-piyushmal13

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

LangSmith fetch provides an automated workflow to debug LangChain and LangGraph agents by collecting and analyzing execution traces from LangSmith Studio directly in your terminal.

Core Features & Use Cases

  • Fetch recent traces automatically or on-demand from LangSmith Studio.
  • Analyze traces to identify errors, tool calls, memory operations, and performance bottlenecks.
  • Workflow templates: quick debug of recent activity, deep-dive trace analysis, and exportable sessions for sharing.

Quick Start

Install langsmith-fetch, configure LANGSMITH_API_KEY and LANGSMITH_PROJECT, then run the tracing workflow to fetch and analyze recent traces.

Frequently Asked Questions about langsmith-fetch

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

FAQPage Schema
How do I debug LangChain agents by tracing execution runs?

To debug LangChain agents by tracing execution runs, you can fetch and analyze LangSmith traces to get an end-to-end view of recent activity, including errors, tool calls, and memory usage. This provides a concise way to identify agent behavior issues.

What is LangSmith trace analysis for LangGraph agents?

LangSmith trace analysis for LangGraph agents is the process of collecting and examining execution traces to identify errors, tool calls, memory operations, and performance bottlenecks. It provides an automated workflow to debug agent behavior directly in your terminal.

Do I need a LANGSMITH_API_KEY to fetch execution traces?

Yes, you need a LANGSMITH_API_KEY and a LANGSMITH_PROJECT environment variable to fetch execution traces. You must configure these variables alongside the langsmith-fetch CLI to access and analyze your recent LangSmith Studio activity.

Can I analyze tool calls and memory operations from recent agent activity?

Yes, you can analyze tool calls and memory operations from recent agent activity by fetching on-demand traces. The analysis provides a concise, end-to-end view of recent execution, helping you pinpoint exactly where errors or performance bottlenecks occur.

What is the best way to debug performance bottlenecks in LangChain agents?

The best way to debug performance bottlenecks in LangChain agents is to use an automated workflow that fetches and analyzes LangSmith traces. This approach offers deep-dive trace analysis to identify memory operations, tool calls, and errors efficiently.

Why does my LangSmith fetch workflow fail to retrieve recent traces?

Your LangSmith fetch workflow fails to retrieve recent traces if the required environment variables are missing. You must properly configure the LANGSMITH_API_KEY and LANGSMITH_PROJECT environment variables for the CLI to access LangSmith Studio successfully.