# Repository Briefing: langchain-ai/langsmith-claude-code-plugins
> Source: https://repoforai.com/repo/langchain-ai/langsmith-claude-code-plugins (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/langchain-ai/langsmith-claude-code-plugins
- **Official Docs / Website**: https://langchain.com
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (90/100 · Maintenance 35/35 · Adoption 15/25 · Releases 20/20 · License 20/20)
- **Latest Release**: 0.7.0 (2026-11-20) — https://github.com/langchain-ai/langsmith-claude-code-plugins/releases
- **Review Snapshot**: 2026-12-01
- **Momentum**: 74 ★ total (+0 24h / +0 7d) · 19 forks
- **Topics**: `claude-code`, `claude-code-plugin`, `langsmith`
- **When to Use**: Best for: Teams already using LangSmith that need to inspect Claude Code model calls, tools, and subagents by turn and can approve export to a known endpoint. Skip if: Session data must stay on-device, you need a bundled self-hosted trace backend, or your primary requirement is model routing rather than observability.

## Overview
```text
### Architecture & Core Mechanics
This is a Claude Code hook-based observability extension, not an MCP server or a model proxy. The installable tracing plugin lives under plugins/langsmith-tracing. Its TypeScript package declares langsmith as its sole runtime dependency. Hooks capture activity from the Claude Code session, and a background worker uploads traces to the configured LangSmith API endpoint. Hook and worker logs give operators separate places to diagnose collection and upload failures.

The trace tree follows Claude Code turns rather than exposing only isolated model requests. Model and tool calls are captured within that context, and each subagent is nested under the turn that started it. A subagent is uploaded only after completion, so cancellation leaves its steps out of the trace. The separate langsmith-gateway plugin routes model requests; it is not required for this collection path.

### Key Capabilities & Differentiators
Each model call records the conversation so far, the reply, model and provider names, and token counts. Tool calls include inputs and outputs; skill calls identify which skill ran. A tool call that touches a file inside a Git repository is tagged with the repository name, branch, commit, and author. The /langsmith-tracing:trace command returns a link to the current conversation's trace.

Use agent_id for an agent-based workspace or the legacy project setting for a project-based workspace. If neither is set, the destination is the claude-code project. Authentication checks a plugin-specific key first, then a LangSmith CLI sign-in, then a generic LANGSMITH_API_KEY; an explicitly selected CLI profile suppresses that last fallback. A CLI sign-in acts with the user's workspace permissions, so a successful login does not rule out a write-time 403.

### Trade-offs & Limitations
Compared with direct SDK instrumentation, this plugin captures Claude Code activity without requiring changes to application code, but coverage is bounded by the plugin's integration and completed events. A model gateway addresses request routing, not this turn-level view of tools and subagents. The plugin is MIT-licensed; that does not determine the terms of the LangSmith service. Endpoint configuration lets operators choose where traces are sent, but does not supply a self-hosted backend.

Full tracing can export conversation and tool payloads. Redaction covers common credential patterns, not every sensitive value. Muting takes effect on the next turn, still exports trace structure, and does not retract prior uploads. Review repository-level configuration before use: it can enable tracing or change the destination. By default, an authentication failure does not block prompts, and content from the gap is not backfilled. Strict auth instead blocks prompts, including claude -p, so enabling it can turn a credential outage into a CI failure.

### Hardware & Deployment Guide
Add langchain-ai/langsmith-claude-code-plugins as a marketplace inside Claude Code, install langsmith-tracing@langsmith-claude-code-plugins, and run /reload-plugins. Macs normally run the bundled binary; Node.js is the fallback if it cannot start. Linux and Windows require Node.js 20 or newer. Release 0.7.0 provides signed, notarized macOS arm64 and x64 builds with SHA-256 sidecars. Marketplace auto-updates are off by default; an updated version loads in the next session.

Authenticate with a LangSmith account and enable tracing explicitly, for example with /langsmith-tracing:setup, unless it is already enabled through managed settings. Uploads require connectivity to the configured endpoint; the default is https://api.smith.langchain.com. On macOS and Linux, administrators can lock settings other than profile using ~/.langsmith-plugins/managed.json. The file and its parent directory must be root-owned, not writable by other users, and not symlinks; an invalid managed file stops tracing.
```

## Key Capabilities
```text
- Runtime: The TypeScript package declares langsmith as its sole runtime dependency; hook and uploader diagnostics go to separate logs.
- Trace detail: Model calls record conversation context, replies, model and provider names, and token counts; tool calls include inputs and outputs.
- Hierarchy: Subagents nest under the originating turn and upload only on completion; eligible file operations carry Git metadata.
- Destination: agent_id targets an agent-based workspace; project targets a legacy project-based workspace and defaults to claude-code when neither is set.
- Managed controls: A trusted root-owned managed.json overrides environment and user settings on macOS and Linux, except for profile.
- Release packaging: 0.7.0 includes signed, notarized macOS arm64 and x64 binaries with SHA-256 sidecars.
```

## Quick Start / Clone
```bash
pnpm install
pnpm test
pnpm build
```
