Guide
Store Claude Code sessions in SupaTrace
SupaTrace stores a Claude Code session as a reviewed snapshot. You pick one finished transcript, convert it into JSON batches with claude_snapshot.py, inspect the batches, then upload them. It is not a live tail.
Status: Claude Code snapshot Live. Claude Code hooks Beta.
Steps
- Download the scripts. From the setup guide, save
connect.py,upload.pyandclaude_snapshot.pytogether in a new folder. They need Python 3 and use only its standard library. Read them before running them. - Approve a write-only connection. Open Agents in your workspace and copy its project-specific command, or replace
YOUR_PROJECT_IDbelow:Approve only the setup code your own agent just showed you. The saved key can upload but cannot read traces. Keep the config private.python3 connect.py --project YOUR_PROJECT_ID --config ./supatrace-access.json - Convert one finished transcript that you choose. Use a unique run ID and a clean output folder:
python3 claude_snapshot.py /path/to/selected-transcript.jsonl --run-id my-reviewed-snapshot --out ./reviewed-batches - Inspect every generated batch. The summary counts unsupported blocks or rows rather than claiming they were captured. Oversized blocks fail instead of being silently truncated.
- Upload the batches one at a time, in numbered filename order, and wait for
Accepted by server.:python3 upload.py ./reviewed-batches/BATCH.json --config ./supatrace-access.json - Open Traces in the workspace and select Refresh to inspect the run. To take it with you, see Export LLM traces as JSON.
Notes
- Traces can contain prompts, tool output and secrets. Review before upload.
- Do not mix old and new conversions under a reused run ID. Batches export in server acceptance order, so upload in order when sequence matters.
- Claude Code hooks Beta are a separate, opt-in setup. See the setup guide.
Based on
Last reviewed .