langchain-ai/langsmith-claude-code-plugins
A hook-based Claude Code plugin for turn-level tracing in LangSmith
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
Session data must stay on-device, you need a bundled self-hosted trace backend, or your primary requirement is model routing rather than observability.
Quick Start & Installation
pnpm install pnpm test pnpm build
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| langsmith-claude-code-plugins ★ | 74 | — | TypeScript | MIT | A hook-based Claude Code plugin for turn-level tracing in LangSmith |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| spec-kit | 153.7k | +1.3k | Python | MIT | A Python CLI for spec-driven coding-agent workflows and reviewable handoffs |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/langchain-ai/langsmith-claude-code-plugins.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about langsmith-claude-code-plugins
How does it integrate with Claude Code: hooks, MCP, or a model gateway?
Does it need a GPU, and what local overhead should I plan for?
Can we use it commercially or keep traces on our own infrastructure?
When is this preferable to direct SDK instrumentation or a gateway?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy