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
claude-trace-viewer --port 5000

The viewer will automatically open in your default browser at http://localhost:5000

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/brkrabac/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.1.0.tar.gz (31.3 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.1.0-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file claude_trace_viewer-0.1.0.tar.gz.

File metadata

  • Download URL: claude_trace_viewer-0.1.0.tar.gz
  • Upload date:
  • Size: 31.3 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.1.0.tar.gz
Algorithm Hash digest
SHA256 1354a9be4bedfdc5f1ff51b9e510503b36d18d62d8cbbb4a106d1935005bb93c
MD5 81dda3c02cee70ded4f62cf8ccee65d5
BLAKE2b-256 948ff82c95e845a461344fe58336e2383dae306b53da2c1885570c39c1ac87db

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_trace_viewer-0.1.0.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_trace_viewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a13d72e845a5709062a8d251ae9210ca675a55af72653c2b60b52dcb23631aa3
MD5 f57776e1f2dfd477479988b69bcfce21
BLAKE2b-256 1f83ff3adfd15f873207e0a66cf9b5c67e9d78308e521a98e04885e8425b2f5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_trace_viewer-0.1.0-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