claude

langsmith-tracing

Traces Claude Code sessions to LangSmith with full observability: LLM calls, tool executions, subagent runs, and context compaction events

72 on GitHubby LangChainv0.6.5MITupdated today
/

Plugin langsmith-tracing from marketplace langsmith-claude-code-plugins in langchain-ai/langsmith-claude-code-plugins. Commands read from the repo's manifest — today.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Slash commands (4)

  • /langsmith-tracing:mute

    Hide this thread's prompts, responses, and tool data from LangSmith next turn; keep only structural and usage metadata

  • /langsmith-tracing:setup

    Turn on LangSmith tracing and optionally set the project and LangSmith URL

  • /langsmith-tracing:trace

    Show the current session's thread link in LangSmith

  • /langsmith-tracing:unmute

    Resume sending this thread's prompts, responses, and tool data to LangSmith next turn

Hooks (9)

  • UserPromptSubmit

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" UserPromptSubmit node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" UserPromptSubmit

  • PreToolUse

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" PreToolUse node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" PreToolUse

  • PostToolUse

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" PostToolUse node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" PostToolUse

  • Stop

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" Stop node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" Stop

  • StopFailure

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" StopFailure node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" StopFailure

  • SubagentStop

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" SubagentStop node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" SubagentStop

  • PreCompact

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" PreCompact node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" PreCompact

  • PostCompact

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" PostCompact node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" PostCompact

  • SessionEnd

    exec "${CLAUDE_PLUGIN_ROOT}/hooks/langsmith-tracing" SessionEnd node "${CLAUDE_PLUGIN_ROOT}/bundle/dispatch.js" SessionEnd

View source on GitHub langchain.com

More from langchain-ai/langsmith-claude-code-plugins

All 2 plugins →

Experimental opt-in local subscription gateway proxy, managed through Claude Code setup/disable commands and independent of tracing.

3 commands · hooks

72

Maintain langsmith-tracing?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins2 plugins