Skip to content

Analyze Claude Code session traces in Braintrust for tool usage, loops, and token trends.

CCM score
49 of 100
skills.sh installs
490
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers session retrospectives, agent and skill usage statistics, weekly activity summaries, and token consumption trends
  • Includes commands for --last-session, --sessions, --replay <session-id>, --detect-loops, and --weekly-summary, run through runtime.harness
  • Flags loops where the same tool runs more than five times in a session, which can signal a stuck search or inefficient approach
  • Requires a BRAINTRUST_API_KEY in ~/.claude/.env or a project .env, with Braintrust tracing enabled via braintrust-claude-plugin

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill braintrust-analyze -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Braintrust Analysis

Analyze your Claude Code sessions for patterns, issues, and insights using Braintrust tracing data.

When to Use

  • After completing a complex task (retrospective)
  • When debugging why something failed
  • Weekly review of productivity patterns
  • Finding opportunities to create new skills
  • Understanding token usage trends

Commands

Run from the project directory:

# Analyze last session - summary with tool/agent/skill breakdown
uv run python -m runtime.harness scripts/braintrust_analyze.py --last-session

# List recent sessions
uv run python -m runtime.harness scripts/braintrust_analyze.py --sessions 5

# Agent usage statistics (last 7 days)
uv run python -m runtime.harness scripts/braintrust_analyze.py --agent-stats

# Skill usage statistics (last 7 days)
uv run python -m runtime.harness scripts/braintrust_analyze.py --skill-stats

# Detect loops - find repeated tool patterns (>5 same tool calls)
uv run python -m runtime.harness scripts/braintrust_analyze.py --detect-loops

# Replay specific session - show full sequence of actions
uv run python -m runtime.harness scripts/braintrust_analyze.py --replay <session-id>

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
Agent Workflow & Planning, Data Science & Analytics, Debugging
First seen
Jun 3, 2026

More from parcadei/continuous-claude-v3

All 108

Similar to Braintrust Analyze

More Agent Workflow & Planning