trace-claude-code
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool calls as hierarchical traces.
Show full session token usage, costs, TLDR savings, and hook activity
$ npx -y skills add parcadei/Continuous-Claude-v3 --skill tldr-stats --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/tldr-statsContext preview
The summary Claude sees to decide when to auto-load this skill.
Show full session token usage, costs, TLDR savings, and hook activity
name: tldr-stats description: Show full session token usage, costs, TLDR savings, and hook activity
Show a beautiful dashboard with token usage, actual API costs, TLDR savings, and hook activity.
**IMPORTANT:** Run the script AND display the output to the user.
1. Run the stats script:
python3 $CLAUDE_PROJECT_DIR/.claude/scripts/tldr_stats.py
2. **Copy the full output into your response** so the user sees the dashboard directly in the chat. Do not just run the command silently - the user wants to see the stats.
╔══════════════════════════════════════════════════════════════╗
║ 📊 Session Stats ║
╚══════════════════════════════════════════════════════════════╝
You've spent $96.52 this session
Tokens Used
1.2M sent to Claude
416.3K received back
97.8K from prompt cache (8% reused)
TLDR Savings
You sent: 1.2M
Without TLDR: 2.5M
💰 TLDR saved you ~$18.83
(Without TLDR: $115.35 → With TLDR: $96.52)
File reads: 1.3M → 20.9K █████████░ 98% smaller
TLDR Cache
Re-reading the same file? TLDR remembers it.
█████░░░░░░░░░░ 37% cache hits
(35 reused / 60 parsed fresh)
Hooks: 553 calls (✓ all ok)
History: █▃▄ ▇▃▇▆ avg 84% compression
Daemon: 24m up │ 3 sessions| Metric | What it means | |--------|---------------| | **You've spent** | Actual $ spent on Claude API this session | | **You sent / Without TLDR** | Actual tokens vs what it would have been | | **TLDR saved you** | Money saved by compressing file reads | | **File reads X → Y** | Raw file tokens compressed to TLDR summary | | **Cache hits** | How often TLDR reuses parsed file results | | **History sparkline** | Compression % over recent sessions (█ = high) |
A persistent, learning, multi-agent development environment built on Claude Code Continuous Claude transforms Claude Code into a continuously learning system that maintains context across sessions, orchestrates specialized agents, and eliminates wasting
Repo: parcadei/Continuous-Claude-v3
Automatically trace Claude Code conversations to Braintrust for observability. Captures sessions, conversation turns, and tool calls as hierarchical traces.
Guide for integrating Agentica SDK with Claude Code CLI proxy
Reference guide for Agentica multi-agent infrastructure APIs