composiohq avatar

Langsmith Fetch

Debug LangChain and LangGraph agents by fetching and analyzing LangSmith execution traces from the terminal.

CCM score
68 of 100
skills.sh installs
4.6K
GitHub stars
80.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers trace triage, deep-dive trace analysis, session export, and error detection for LangChain and LangGraph agents
  • Runs langsmith-fetch commands such as traces, trace <id>, and threads, with pretty, json, and raw output formats
  • Requires the langsmith-fetch CLI and LANGSMITH_API_KEY and LANGSMITH_PROJECT environment variables before use
  • Designed for developers investigating agent failures, tool-call behavior, memory operations, and token usage

Install

$ npx -y skills add composiohq/awesome-claude-skills --skill langsmith-fetch -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LangSmith Fetch - Agent Debugging Skill

Debug LangChain and LangGraph agents by fetching execution traces directly from LangSmith Studio in your terminal.

When to Use This Skill

Automatically activate when user mentions:

  • πŸ› "Debug my agent" or "What went wrong?"
  • πŸ” "Show me recent traces" or "What happened?"
  • ❌ "Check for errors" or "Why did it fail?"
  • πŸ’Ύ "Analyze memory operations" or "Check LTM"
  • πŸ“Š "Review agent performance" or "Check token usage"
  • πŸ”§ "What tools were called?" or "Show execution flow"

Prerequisites

1. Install langsmith-fetch

pip install langsmith-fetch

2. Set Environment Variables

export LANGSMITH_API_KEY="your_langsmith_api_key"
export LANGSMITH_PROJECT="your_project_name"

Verify setup:

echo $LANGSMITH_API_KEY
echo $LANGSMITH_PROJECT

Core Workflows

Workflow 1: Quick Debug Recent Activity

When user asks: "What just happened?" or "Debug my agent"

Execute:

langsmith-fetch traces --last-n-minutes 5 --limit 5 --format pretty

Details

Repository
github.com/composiohq/awesome-claude-skills
Categories
Debugging, AI Agents & LLM Apps

More from composiohq/awesome-claude-skills

All 21

Similar to Langsmith Fetch

More Debugging