An alternate web-based viewer for logs generated by @mariozechner/claude-trace
Project description
Claude Trace Viewer
An alternate web-based viewer for trace logs generated by @mariozechner/claude-trace.
About
This tool provides a complementary viewing experience for trace logs created by @mariozechner/claude-trace. While the original tool creates the trace files during Claude Code conversations, this viewer offers an alternate way to explore and analyze those logs with features like sub-agent detection and timeline visualization and a UI inspired by the browser developer tools network tab for viewing details about individual requests.
What are claude-trace files?
Running claude-trace launches Claude Code and generates JSON logs during the conversations. These files contain detailed information about tool usage, timing, and the flow of operations during a Claude session.
By default, trace files are stored in .claude-trace directory where you launch claude-trace. Each trace file represents a single conversation or task execution, allowing you to analyze Claude's decision-making process and performance.
Prerequisites
First, install @mariozechner/claude-trace to generate trace files:
npm install -g @mariozechner/claude-trace
This will enable trace logging for your Claude Code conversations.
Installation
# Run directly with uvx (no installation needed)
uvx claude-trace-viewer
# Or install with pip/uv
pip install claude-trace-viewer
# or
uv add claude-trace-viewer
Usage
# View traces in current directory (has a `.claude-trace` folder)
claude-trace-viewer
# Specify a different directory
claude-trace-viewer --trace-dir /path/to/directory/that/contains/.claude-trace
# Use a different port, ex: 5000
claude-trace-viewer --port 5000
Click the link printed in the terminal to open the web interface in your browser, defaults to http://127.0.0.1:8080.
Features
- Choose from any of the available trace files in the specified directory
- Interactive timeline visualization
- Sub-agent detection and visualization
- Search and filter capabilities
- Export trace data
- Browser Developer Tools-like interface for detailed request inspection
Development
# Clone the repository
git clone https://github.com/bkrabach/claude-trace-viewer.git
cd claude-trace-viewer
# Install in development mode
pip install -e .
Troubleshooting
No trace files found
If the viewer shows no trace files, ensure that:
- You're pointing to the correct directory (default is
.claude-tracein the current working directory) - Claude has generated trace files during your conversations, go to
.claude-traceand verify that there are JSON files present - You have read permissions for the trace directory
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_trace_viewer-0.2.1.tar.gz.
File metadata
- Download URL: claude_trace_viewer-0.2.1.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49762604db4b65b04284d6c79afb64f6af2442857ea80073a7b520f714801fb0
|
|
| MD5 |
638879a8f24f626d035b97f278ea4f5b
|
|
| BLAKE2b-256 |
8160b916fdc9c355115618cf089630076678e6df9aba3eb64aa2546bb4cf13fd
|
Provenance
The following attestation bundles were made for claude_trace_viewer-0.2.1.tar.gz:
Publisher:
release.yml on bkrabach/claude-trace-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_trace_viewer-0.2.1.tar.gz -
Subject digest:
49762604db4b65b04284d6c79afb64f6af2442857ea80073a7b520f714801fb0 - Sigstore transparency entry: 510392986
- Sigstore integration time:
-
Permalink:
bkrabach/claude-trace-viewer@3f3cc085ed3a90531071cfe68c902553ab2ca188 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/bkrabach
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f3cc085ed3a90531071cfe68c902553ab2ca188 -
Trigger Event:
push
-
Statement type:
File details
Details for the file claude_trace_viewer-0.2.1-py3-none-any.whl.
File metadata
- Download URL: claude_trace_viewer-0.2.1-py3-none-any.whl
- Upload date:
- Size: 34.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07a88651852ae5e419781a5222989b1df590af57b1cc89f562959cf840a62a41
|
|
| MD5 |
159ec69b091ace697f529b2fc11602b6
|
|
| BLAKE2b-256 |
890c7eb557d6a2f458e4a71526e391ab86df3efa6db6b61e015130f0e889fe6e
|
Provenance
The following attestation bundles were made for claude_trace_viewer-0.2.1-py3-none-any.whl:
Publisher:
release.yml on bkrabach/claude-trace-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
claude_trace_viewer-0.2.1-py3-none-any.whl -
Subject digest:
07a88651852ae5e419781a5222989b1df590af57b1cc89f562959cf840a62a41 - Sigstore transparency entry: 510392988
- Sigstore integration time:
-
Permalink:
bkrabach/claude-trace-viewer@3f3cc085ed3a90531071cfe68c902553ab2ca188 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/bkrabach
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3f3cc085ed3a90531071cfe68c902553ab2ca188 -
Trigger Event:
push
-
Statement type: