Skip to content
Agentmart
Submit a tool
This entry duplicates langsmith-fetch, which is the one we list in search.

langsmith-fetch

Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio.

Skill by tzeusy-org

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tzeusy-org-langsmith-fetch

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio. Use when debugging agent behavior, investigating errors, analyzing tool calls, checking memory operations, or examining agent performance. Automatically fetches recent traces and analyzes execution patterns. Requires langsmith-fetch CLI installed.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
langsmith-fetch
Description
Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio. Use when debugging agent behavior, investigating errors, analyzing tool calls, checking memory operations, or examining agent performance. Automatically fetches recent traces and analyzes execution patterns. Requires langsmith-fetch CLI installed.
License
MIT
Instructions
482 lines in SKILL.md ยท view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 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
```bash
pip install langsmith-fetch
```

### 2. Set Environment Variables
```bash
export LANGSMITH_API_KEY="your_langsmith_api_key"
export LANGSMITH_PROJECT="your_project_name"
```

**Verify setup:**
```bash
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:**
```bash
langsmith-fetch traces --last-n-minutes 5 --limit 5 --format pretty
```

**Analyze and report:**
1. โœ… Number of traces found
2. โš ๏ธ Any errors or failures
3. ๐Ÿ› ๏ธ Tools that were called
4. โฑ๏ธ Execution times
5. ๐Ÿ’ฐ Token usage

**Example response format:**
```
Found 3 traces in the last 5 minutes:

Trace 1: โœ… Success
- Agent: memento
- Tools: recall_memories, create_entities
- Duration: 2.3s
- Tokens: 1,245

Trace 2: โŒ Error
- Agent: cypher
- Error: "Neo4j connection timeout"
- Duration: 15.1s
- Failed at: search_nodes tool

Trace 3: โœ… Success
- Agent: memento
- Tools: store_memory
- Duration: 1.8s
- Tokens: 892

๐Ÿ’ก Issue found: Trace 2 failed due to Neo4j timeout. Recommend checking database connection.
```

---

### Workflow 2: Deep Dive Specific Trace

**When user provides:** Trace ID or says "investigate that error"

**Execute:**
```bash
langsmith-fetch trace <trace-id> --format json
```

**Analyze JSON and report:**
1. ๐ŸŽฏ What the agent was trying to do
2. ๐Ÿ› ๏ธ Which tools were called (in order)
3. โœ… Tool results (success/failure)
4. โŒ Error messages (if any)
5. ๐Ÿ’ก Root cause analysis
6. ๐Ÿ”ง Suggested fix

**Example response format:**
```
Deep Dive Analysis - Trace abc123

Goal: User asked "Find all projects in Neo4j"

Execution Flow:
1. โœ… search_nodes(query: "projects")
   โ†’ Found 24 nodes

2. โŒ get_node_details(node_id: "proj_123")
   โ†’ Error: "Node not found"
   โ†’ This is the failure point

3. โน๏ธ Execution stopped

Root Cause:
The search_nodes tool returned node IDs that no longer exist in the database,
possibly due to recent deletions.

Suggested Fix:
1. Add error handling in get_node_details tool
2. Filter deleted nodes in search results
3. Update cache invalidation strategy

From tzeusy-org/ai-bootstrap, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jun 12, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from tzeusy-org

Cite this page

langsmith-fetch skill. Agent Mart. https://agentmart.dev/skills/tzeusy-org-langsmith-fetch (last updated 2026-10-24)