langsmith-fetch

Fetch LangSmith Studio execution traces for LangChain and LangGraph agent debugging.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/pkoka888/server-infra-templates --skill langsmith-fetch-pkoka888
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-fetch
Source: https://github.com/pkoka888/server-infra-templates/tree/main/.kilo/skills/marketplace/langsmith-fetch
Command: npx skills add https://github.com/pkoka888/server-infra-templates --skill langsmith-fetch-pkoka888

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines debugging of LangChain and LangGraph agents by fetching, summarizing, and analyzing execution traces from LangSmith Studio so engineers can quickly identify errors, tool call sequences, memory operations, and performance bottlenecks.

Core Features & Use Cases

  • Quick Debug Recent Activity: Automatically fetch recent traces and produce a human-readable summary of success/failure, tools called, durations, and token usage for rapid triage.
  • Deep Dive Specific Trace: Retrieve a single trace in JSON to analyze step-by-step tool calls, error messages, and root cause, with suggested fixes.
  • Export Debug Sessions: Export traces and threads into organized session folders for sharing, archiving, or offline analysis.
  • Error Detection & Analytics: Aggregate recent traces to report failure rates, error types, temporal patterns, and recommended mitigations.
  • Use Case Example: When an agent fails intermittently, fetch recent traces to find whether a database timeout, rate limit, or missing tool caused the failure.

Quick Start

Fetch the last five minutes of LangSmith traces and present a clear human-readable summary including errors, tools called, durations, and token usage.

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 agent failures using LangSmith traces?

Debug LangChain agent failures by fetching execution traces from LangSmith Studio to pinpoint errors, inspect tool call sequences, and identify root causes. The skill retrieves recent activity and produces summaries of success or failure rates for rapid triage.

Can I analyze LangGraph tool-call sequences and memory operations from execution traces?

Analyze LangGraph tool-call sequences and memory operations by retrieving a single trace in JSON format. This allows step-by-step inspection of tool calls, error messages, and memory checks to understand agent behavior and diagnose intermittent failures.

What do I need to fetch LangSmith traces for agent observability?

Fetch LangSmith traces for agent observability by requiring the langsmith-fetch CLI alongside configured LANGSMITH_API_KEY and LANGSMITH_PROJECT environment variables. These prerequisites retrieve and export traces in pretty, json, or raw formats.

How do I export LangSmith debug sessions for offline analysis?

Export LangSmith debug sessions for offline analysis by retrieving traces and threads into organized session folders. This functionality allows sharing, archiving, and offline review of agent execution data for error detection and performance profiling.

How does aggregating recent LangSmith traces help with error detection?

Aggregating recent LangSmith traces helps error detection by reporting failure rates, error types, and temporal patterns across agent runs. This analytics approach recommends mitigations for database timeouts, rate limits, or missing tools causing failures.

What's the best way to profile agent performance and token usage with LangSmith?

Profile agent performance and token usage with LangSmith by fetching recent traces to generate a human-readable summary. This summary includes durations, tools called, and token consumption, enabling quick identification of performance bottlenecks in development or production.