Skip to main content

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-trace in the current working directory)
  • Claude has generated trace files during your conversations, go to .claude-trace and verify that there are JSON files present
  • You have read permissions for the trace directory

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_trace_viewer-0.2.1.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_trace_viewer-0.2.1-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

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

Hashes for claude_trace_viewer-0.2.1.tar.gz
Algorithm Hash digest
SHA256 49762604db4b65b04284d6c79afb64f6af2442857ea80073a7b520f714801fb0
MD5 638879a8f24f626d035b97f278ea4f5b
BLAKE2b-256 8160b916fdc9c355115618cf089630076678e6df9aba3eb64aa2546bb4cf13fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_trace_viewer-0.2.1.tar.gz:

Publisher: release.yml on bkrabach/claude-trace-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_trace_viewer-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_trace_viewer-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 07a88651852ae5e419781a5222989b1df590af57b1cc89f562959cf840a62a41
MD5 159ec69b091ace697f529b2fc11602b6
BLAKE2b-256 890c7eb557d6a2f458e4a71526e391ab86df3efa6db6b61e015130f0e889fe6e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page