Open-source trace viewer and observability workspace for Claude Code.
Replay Claude Code .jsonl sessions, inspect agent flows and tool calls, spot token spikes, compare runs, and understand what actually happened.
Star on GitHub · Watch Demo · Quick Start · Use Cases · Feature Highlights · Screenshots · Who It's For
Watch the 90-second product demo:
coding-log-analyzer-github-demo.mp4
Claude Trace Replay is an open-source Claude Code trace viewer that turns raw .jsonl sessions into a replayable workspace for debugging, observability, and prompt iteration.
Most Claude Code traces are technically rich and visually painful to review.
Claude Trace Replay turns raw session logs into a visual replay and debugging workspace so you can:
- See what the agent actually did, in order
- Understand which tool calls consumed time, tokens, and attention
- Replay agent-to-tool handoffs instead of reading raw event blocks
- Compare two sessions to learn what changed between prompts, models, or workflows
- Review prompt quality and collaboration patterns after a run
If you use Claude Code seriously, this helps you move from "I captured a trace" to "I know what happened."
- Debug noisy agent runs: find the exact turn where the workflow slowed down, looped, or drifted off-task
- Inspect tool behavior: trace file reads, diffs, terminal commands, and tool results in execution order
- Review token usage: identify expensive turns and sudden spikes before they become routine
- Compare prompt or model changes: see why one Claude Code session performed better than another
- Share learnings with a team: turn raw traces into something people can review together
- Agent Flow Replay: watch the call graph animate step by step around the main agent
- Current Step Context: inspect what is happening right now, not just the final output
- Searchable Timeline: browse tool calls, thoughts, diffs, file reads, terminal commands, and results
- Token Analytics: identify expensive turns and usage spikes fast
- Session Compare: diff two runs across messages, tokens, tools, and models
- AI Retrospective: surface strengths, weaknesses, and next-step improvements
- Prompt Review: inspect prompt and collaboration quality after the fact
- Developers debugging noisy Claude Code sessions
- People reviewing long agent runs with many tools
- Teams trying to understand why one prompt or workflow worked better than another
- Anyone who wants to learn from real AI coding traces instead of guessing
| Session Overview | Token Usage |
|---|---|
![]() |
![]() |
| Session Timeline | AI Analysis |
|---|---|
![]() |
![]() |
| Conversation Flow | Agent Flow |
|---|---|
![]() |
![]() |
| Session Compare | Agent Flow Assistant Return |
|---|---|
![]() |
![]() |
Bring your own Claude Code .jsonl trace and open it locally in a few minutes.
- Node.js 18+
- npm
git clone https://github.com/harrylettering/claude-trace-replay.git
cd claude-trace-replay
npm install./start.shOpen http://localhost:3000.
npm run buildnpm run preview- Open the app locally.
- Load a Claude Code
.jsonltrace. - Jump between timeline, token, flow, compare, and analysis views.
- Find the exact step where the run slowed down, got noisy, or went off track.
Tip: if you plan to share the project, recording a short before/after comparison with a real trace usually explains the value faster than static screenshots alone.
| View | What You Learn |
|---|---|
| Session Overview | High-level stats for tokens, messages, models, duration, and tools |
| Session Timeline | Chronological actions, tool usage, diffs, and results |
| Agent Flow | Animated handoffs between user, main agent, assistant, and tools |
| Conversation Flow | Parent-child structure and message depth |
| Token Usage | Spikes, cost-heavy turns, and usage trends |
| AI Analysis | Retrospective insights and suggested improvements |
| Prompt Optimizer | Prompt quality review and collaboration guidance |
| Session Compare | What changed between two runs |
| Real-Time Log | Raw event stream and trace inspection |
Claude Code sessions can become long, tool-heavy, and hard to audit from raw trace data alone.
This project exists to make those sessions reviewable:
- for debugging
- for performance tuning
- for prompt iteration
- for agent workflow learning
- for sharing and comparing runs with others
Claude Trace Replay is built around Claude Code .jsonl session traces.
Typical entry types include:
userassistantsystem- tool-use and tool-result content blocks
- permission and metadata events
- file history snapshots
Common fields used by the parser include:
uuidparentUuidtimestamptypemessageisSidechainisMeta
- React 18
- TypeScript 5
- Vite 5
- Tailwind CSS 3
- Recharts
- Framer Motion
- Lucide React
- html2canvas
- Zustand
- XYFlow / React Flow
claude-trace-replay/
├── docs/
│ └── screenshots/ # README media and product visuals
├── src/
│ ├── components/ # Dashboards and visualization UI
│ ├── hooks/ # Playback and interaction hooks
│ ├── types/ # Domain types
│ ├── utils/ # Trace parsing, analysis, and helper logic
│ ├── App.tsx # Application shell
│ ├── main.tsx # Entry point
│ └── index.css # Global styling
├── package.json
└── README.md
npm run dev # Start the Vite development server
npm run build # Type-check and build for production
npm run preview # Preview the production build locally
npm run lint # Run ESLint- Add anonymized sample traces so first-time users can explore instantly
- Improve large-session performance and visualization density
- Add more flow layout modes for complex agent chains
- Add export presets for reports and retrospectives
Contributions are welcome.
Good contribution areas:
- parser improvements
- UI polish
- performance work for large traces
- new analysis panels
- sample datasets and reproducible bug cases
If this project helped you understand Claude Code sessions faster, a GitHub Star really helps other people find it.
MIT







