<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq" -->

---
title: Debugging Deep Agents with LangSmith | daily.dev
description: LangSmith introduces new tooling for debugging 'deep agents' - long-running, multi-step LLM agent applications that produce complex traces spanning hundreds of...
canonical: https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Debugging Deep Agents with LangSmith | daily.dev
og:description: LangSmith introduces new tooling for debugging 'deep agents' - long-running, multi-step LLM agent applications that produce complex traces spanning hundreds of...
og:url: https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq
og:image: https://api.daily.dev/og/posts/BiqVk7Fjq.png
og:image:alt: Debugging Deep Agents with LangSmith
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Debugging Deep Agents with LangSmith

**[LangChain](https://daily.dev/sources/langchain)** · 6 min read · 1 upvotes · 0 comments

## Summary

LangSmith introduces new tooling for debugging 'deep agents' - long-running, multi-step LLM agent applications that produce complex traces spanning hundreds of steps and multiple conversational turns. Two new features are launched: Polly, an in-app AI assistant that lets developers chat with their trace and thread data to spot inefficiencies, mistakes, and suggest prompt improvements; and langsmith-fetch, a CLI tool that connects coding agents like Claude Code or DeepAgents CLI to LangSmith traces and threads for local debugging workflows. The post also explains LangSmith's data model of runs, traces, and threads, and why deep agents are harder to debug than simple LLM calls due to longer prompts, longer traces, and multi-turn interactions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.langchain.com/blog/debugging-deep-agents-with-langsmith>

## Questions this post answers

### What is Polly in LangSmith and how do I use it to debug an agent trace?

Polly is an in-app AI assistant in LangSmith for agent engineering, letting you chat about a trace, thread, or prompt instead of manually scanning steps. In the Trace view you can ask things like whether the agent made mistakes or could be more efficient; in the Thread view it reasons across an entire multi-turn conversation; and in the Prompt Playground it rewrites your system prompt based on a described desired behavior.

_daily.dev surfaces tooling updates like this for engineers debugging complex agent behavior._

### How do I fetch recent LangSmith traces from the command line for a coding agent like Claude Code?

Use the langsmith-fetch CLI, which connects Claude Code, DeepAgents CLI, or any coding agent to LangSmith traces and threads. Run langsmith-fetch threads ./my_data to grab the most recent threads, add --last-n-minutes 30 or --project-uuid to filter, and choose --format pretty, json, or raw depending on whether you're viewing in a terminal or piping to another tool.

_teams wiring coding agents into observability workflows can track CLI releases like this via daily.dev._

### What is the difference between a run, a trace, and a thread in LangSmith?

A run is a single step an agent takes, such as an LLM call or tool call, and runs are nested in a tree structure. A trace is one full execution of the agent, made up of a tree of runs. A thread is a collection of traces representing a complete conversation between a user and the application, which can span multiple turns and even days.

_developers structuring agent observability can follow terminology clarifications like this on daily.dev._

## Similar posts on daily.dev

- [Debugging Deep Agents with LangSmith](https://daily.dev/posts/debugging-deep-agents-with-langsmith-v1oyf16pl) · LangChain · 1 upvotes · 0 comments
- [LangSmith Explained: Debugging and Evaluating LLM Agents](https://daily.dev/posts/langsmith-explained-debugging-and-evaluating-llm-agents-wy5ceqqjb) · DigitalOcean Community · 1 upvotes · 0 comments
- [Introducing Polly: Your AI Agent Engineer](https://daily.dev/posts/introducing-polly-your-ai-agent-engineer-knoawipym) · LangChain · 1 upvotes · 0 comments
- [Building a Tool-Calling AI Agent with LangChain, LangGraph, Groq and LangSmith](https://daily.dev/posts/building-a-tool-calling-ai-agent-with-langchain-langgraph-groq-and-langsmith-ulgchhdc9) · Medium · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#observability](https://daily.dev/tags/observability), [#langchain](https://daily.dev/tags/langchain), [#langsmith](https://daily.dev/tags/langsmith)

[View this post on daily.dev](https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Debugging Deep Agents with LangSmith","url":"https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq"},"datePublished":"2026-08-25T18:38:53.210Z","dateModified":"2026-09-13T20:35:23.124Z","description":"LangSmith introduces new tooling for debugging 'deep agents' - long-running, multi-step LLM agent applications that produce complex traces spanning hundreds of...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/354fbee2ddb6c96293745242ee965999?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/354fbee2ddb6c96293745242ee965999?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"LangChain","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"LangChain","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/0f4f2629e0724a849823f8cd0d913e13","url":"https://daily.dev/sources/langchain"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,observability,langchain,langsmith","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"LangChain","item":"https://daily.dev/sources/langchain"},{"@type":"ListItem","position":3,"name":"Debugging Deep Agents with LangSmith"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/debugging-deep-agents-with-langsmith-biqvk7fjq#faq","mainEntity":[{"@type":"Question","name":"What is Polly in LangSmith and how do I use it to debug an agent trace?","acceptedAnswer":{"@type":"Answer","text":"Polly is an in-app AI assistant in LangSmith for agent engineering, letting you chat about a trace, thread, or prompt instead of manually scanning steps. In the Trace view you can ask things like whether the agent made mistakes or could be more efficient; in the Thread view it reasons across an entire multi-turn conversation; and in the Prompt Playground it rewrites your system prompt based on a described desired behavior. daily.dev surfaces tooling updates like this for engineers debugging complex agent behavior."}},{"@type":"Question","name":"How do I fetch recent LangSmith traces from the command line for a coding agent like Claude Code?","acceptedAnswer":{"@type":"Answer","text":"Use the langsmith-fetch CLI, which connects Claude Code, DeepAgents CLI, or any coding agent to LangSmith traces and threads. Run langsmith-fetch threads ./my_data to grab the most recent threads, add --last-n-minutes 30 or --project-uuid to filter, and choose --format pretty, json, or raw depending on whether you're viewing in a terminal or piping to another tool. teams wiring coding agents into observability workflows can track CLI releases like this via daily.dev."}},{"@type":"Question","name":"What is the difference between a run, a trace, and a thread in LangSmith?","acceptedAnswer":{"@type":"Answer","text":"A run is a single step an agent takes, such as an LLM call or tool call, and runs are nested in a tree structure. A trace is one full execution of the agent, made up of a tree of runs. A thread is a collection of traces representing a complete conversation between a user and the application, which can span multiple turns and even days. developers structuring agent observability can follow terminology clarifications like this on daily.dev."}}]}
```

