delexw/claude-code-trace
Claude Code session log viewer for JSONL files in ~/.claude/projects. Browse conversations, tool calls, tokens, and live tail sessions on desktop, web, and TUI.
What it solves
Claude Code keeps a log of every session on your machine as raw JSONL files under ~/.claude/projects/. These files are hard to read and even harder to follow while a session is still running. Claude Code Trace turns those logs into a readable conversation view, lets you watch live sessions update as they happen, and can optionally score how efficiently an agent worked — all without sending anything off your machine unless you explicitly ask for an analysis.
How it works
A single Rust backend parses and indexes the session logs, watches open sessions for changes, and exposes a local HTTP API (port 11423) plus a server-sent events stream for live updates. Three front ends connect to that backend: a desktop app (Tauri), a web app, and a terminal UI (Textual). The desktop app talks to the backend over Tauri IPC; the web and terminal UIs use the HTTP API with per-client JWT tokens that the backend signs and checks itself. Session sources are plugins — Claude Code is built in, and optional plugins for Google Antigravity and OpenAI Codex can be enabled in Settings. For efficiency analysis, the app sends a redacted summary of a session to Jev (typesafe.ai) only after you review the exact payload and confirm; results are cached per session.
Who it’s for
Developers who use Claude Code (or Codex or Antigravity) and want to review past sessions, inspect tool calls and reasoning, follow a session that’s still running, or get a sense of how efficiently an agent worked. It’s also useful for teams that want to share or audit agent activity locally, and for anyone who prefers a desktop, web, or terminal interface.
Highlights
- Turns raw JSONL session logs into a readable conversation with expandable tool calls, thinking, tool results, sub-agents, token counts, and timestamps
- Live tailing: open sessions update in real time, and the picker shows which sessions are still running
- Session picker grouped by date and project, searchable by what you asked
- MCP tool calls get readable names (e.g., “MCP figma”)
- Optional efficiency analysis with redacted payload preview and explicit consent
- Source plugins: Claude Code always on; Antigravity and Codex can be enabled
- Three front ends — desktop (Tauri), web, and terminal UI — all reading from the same backend
- Local HTTP API with JWT auth, so you can script against your logs
- Runs on macOS, Linux, and Windows; installable via one-liner, download, or Docker
Related
- Project
- Project
- Project
- Project
- Project