Applies to:
- Plan -
- Deployment -
Summary
Issue: Claude Code tracing appears to succeed but logs never appear in Braintrust, and~/.claude/state/braintrust_hook.log is never created.
Cause: The trace-claude-code plugin is not installed or not registered — the braintrust plugin (for querying Braintrust from Claude Code) is a separate plugin and does not register tracing hooks.
Resolution: Install the trace-claude-code plugin and verify hooks are registered before testing tracing.
Resolution steps
Step 1: Distinguish the two plugins
Two separate plugins exist:braintrust— lets you query Braintrust from within Claude Codetrace-claude-code— registers the hooks that send Claude Code sessions to Braintrust Logs
trace-claude-code is not loaded.
Step 2: Check which plugins are installed
Exit any running Claude Code session and run from your terminal:trace-claude-code is not listed, install it:
Step 3: Verify hooks are registered
Fully restart Claude Code, then run/hooks inside a session.
Confirm trace-claude-code appears with all five hooks and source: Plugin:
SessionStartUserPromptSubmitPostToolUseStopSessionEnd
Step 4: Confirm environment variables are set
Step 5: Enable debug mode and test
Start a fresh session with debug enabled:braintrust_hook.log still does not exist after this step, the hooks are not executing. Review the debug file for errors about skipped or failed hook commands.