langsmith-fetch

Fetch and analyze LangSmith traces to debug LangChain and LangGraph agents.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/syl2042/codex_skills --skill langsmith-fetch-syl2042
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-fetch
Source: https://github.com/syl2042/codex_skills/tree/main/langsmith-fetch
Command: npx skills add https://github.com/syl2042/codex_skills --skill langsmith-fetch-syl2042

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug LangChain and LangGraph agents by fetching execution traces directly from LangSmith Studio in your terminal, enabling rapid debugging of behavior, errors, and performance.

Core Features & Use Cases

  • Fetch recent traces from LangSmith Studio for quick diagnosis.
  • Analyze tool calls, memory operations, and token usage to identify bottlenecks.
  • Export traces in pretty, json, or raw formats for reporting and debugging.

Quick Start

Install the langsmith-fetch CLI and run langsmith-fetch traces --last-n-minutes 5 --limit 5 --format pretty to view the most recent activity.

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 and LangGraph agents using LangSmith traces?

Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio using the langsmith-fetch CLI, enabling rapid diagnosis of agent behavior, errors, and performance bottlenecks directly in your terminal.

What is the best way to analyze agent tool calls and memory operations?

Analyze agent tool calls and memory operations by fetching recent LangSmith traces, which allow you to investigate specific agent actions, review token usage, and identify performance bottlenecks during execution.

How do I fetch recent LangSmith traces for quick diagnosis?

Fetch recent LangSmith traces by installing the langsmith-fetch CLI and running a command like langsmith-fetch traces --last-n-minutes 5 --limit 5 --format pretty to view the most recent agent activity.

Can I export LangSmith traces to JSON for reporting?

Yes, you can export LangSmith traces to JSON by specifying the json format option in the langsmith-fetch CLI, alongside pretty and raw formats, for external reporting and debugging workflows.

Do I need a LangSmith project to fetch agent execution traces?

Yes, fetching and analyzing agent execution traces requires access to existing LangSmith projects and the langsmith-fetch CLI installed in your environment to retrieve the execution data.

Why does my LangGraph agent have high token usage and poor performance?

Investigate high token usage and poor performance by fetching LangSmith traces to analyze specific tool calls and memory operations, allowing you to pinpoint the exact bottlenecks within the agent workflow.