Files
Dani e4c2275bf6 feat(hooks): Add LangSmith tracing integration
Add comprehensive LangSmith observability integration for Claude Code:

- Add langsmith-tracing hook in monitoring category
  - Runs in background with & to avoid blocking
  - Official LangSmith stop_hook.sh script (33KB)
  - Automatic trace upload to LangSmith API
  - Session grouping with thread_id for continuity

- Add langsmith-tracing setting in telemetry category
  - Environment variables with placeholders
  - Easy installation for users
  - Clear instructions for API key setup

- Add bash script support to CLI (index.js)
  - Auto-downloads .sh files with executable permissions
  - Mirrors existing Python file handling
  - Critical for hook functionality

- Update security (.gitignore)
  - Protect .claude/settings.local.json (may contain API keys)
  - Protect .claude/hooks/ directory
  - Remove settings.local.json from git tracking

- Update component catalog (62 settings, 41 hooks)

Installation:
  npx claude-code-templates@latest --hook monitoring/langsmith-tracing
  npx claude-code-templates@latest --setting telemetry/langsmith-tracing

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-09 18:45:10 -05:00

10 lines
594 B
JSON

{
"description": "Configure LangSmith tracing environment variables for Claude Code observability. Sends conversation traces to LangSmith for monitoring and analysis. Requires: LangSmith account and API key from https://smith.langchain.com/settings/apikeys. After installation, replace YOUR_API_KEY_HERE with your actual API key (starts with lsv2_pt_). Set TRACE_TO_LANGSMITH to false to disable tracing.",
"env": {
"TRACE_TO_LANGSMITH": "true",
"CC_LANGSMITH_API_KEY": "YOUR_API_KEY_HERE",
"CC_LANGSMITH_PROJECT": "claude-code-project",
"CC_LANGSMITH_DEBUG": "false"
}
}