Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

Trace Claude Code to Braintrust

Wires Claude Code hooks so sessions, turns, and every tool call are logged as hierarchical Braintrust traces.

AutomationIntermediate3,945303AI score 7/10Last updated: Jan 26, 2026

What it does

  • Sets up four hooks (SessionStart, PostToolUse, Stop, SessionEnd) that stream Claude Code activity to Braintrust.
  • Produces hierarchical traces: session root → conversation turns → individual tool calls, so you can see which files were read and which commands ran.
  • Ships a ready-to-paste .claude/settings.local.json plus a table of env vars (TRACE_TO_BRAINTRUST, BRAINTRUST_API_KEY, BRAINTRUST_CC_PROJECT, debug flag).
  • Includes troubleshooting for missing traces, permission errors, missing jq, and stale state files.

Who it's for

  • AI engineering teams already using or evaluating Braintrust for observability.
  • Developers who need an audit trail of what the agent actually did during a session.
  • Anyone collecting session data to improve prompts and agent workflows.

Examples

  1. Run setup.sh inside a project, enter your API key and project name — hooks register automatically and every later session shows up under Braintrust Logs.
  2. If nothing appears, follow tail -f ~/.claude/state/braintrust_hook.log and flip BRAINTRUST_CC_DEBUG="true" for verbose output.
  3. Prefer code over hooks? Use the included wrapClaudeAgentSDK snippet for the Claude Agent SDK integration.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/HEAD/.claude/plugins/braintrust-tracing/skills/trace-claude-code/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the .claude/plugins/braintrust-tracing/skills/trace-claude-code folder from the GitHub repo parcadei/Continuous-Claude-v3 into my ~/.claude/skills/trace-claude-code/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/parcadei/Continuous-Claude-v3.git && mkdir -p ~/.claude/skills && cp -r Continuous-Claude-v3/.claude/plugins/braintrust-tracing/skills/trace-claude-code ~/.claude/skills/

This is a third-party skill. Check the source repository before installing.

  1. Create a Braintrust account and generate an API key from the settings page.
  2. Install jq (brew install jq on macOS, sudo apt-get install jq on Ubuntu/Debian).
  3. Clone the repo: git clone https://github.com/parcadei/Continuous-Claude-v3.git
  4. Copy the skill: mkdir -p ~/.claude/skills && cp -r Continuous-Claude-v3/.claude/plugins/braintrust-tracing/skills/trace-claude-code ~/.claude/skills/
  5. Make the hook scripts executable: chmod +x ~/.claude/skills/trace-claude-code/hooks/*.sh
  6. Change into the project you want traced and run bash ~/.claude/skills/trace-claude-code/setup.sh, entering your API key and project name when prompted.
  7. Review the generated .claude/settings.local.json and add it to .gitignore since it holds your API key.
  8. Restart Claude Code, do a few actions, then open braintrust.dev → your project → Logs to confirm traces are arriving.