⬇️ Install Claude Code Trace Claude Code Trace is a Claude Code session log viewer and Jev-powered AI agent efficiency analyzer for local JSONL files stored in ~/.claude/projects/.
$ npx -y skills add delexw/claude-code-trace --agent claude-code
Repo: delexw/claude-code-trace
What's inside
Claude Code Trace is a Claude Code session log viewer and Jev-powered AI agent efficiency analyzer for local JSONL files stored in ~/.claude/projects/. It combines real-time Claude Code trace observability with structured behavioural analysis from Jev, TypeSafe AI's System One Model.
Browse, tail, and inspect Claude Code conversations in real time. Claude Code Trace renders Claude Code JSONL session files as readable conversations with expandable tool calls, token counts, timestamps, MCP tool call detection, and live log tailing. Its optional Jev integration scores agent progress, tool use, focus, exploration, recovery, and token efficiency using typed probabilistic decisions. It runs as a GUI app for macOS, Linux, and Windows, a Web app or a TUI.
Claude Code Trace turns a Claude Code agent trace into a privacy-reviewed, redacted analysis request for Jev. The resulting session efficiency dashboard helps identify repeated work, thrashing, excessive exploration, failed retries, effective recovery, useful subagent work, and inefficient token usage.
Integration credit: The Jev-powered Claude Code analysis workflow was designed and built in Claude Code Trace by delexw. Jev is developed by TypeSafe AI; this open-source project is independent and is not an official TypeSafe AI integration.
Use Claude Code Trace when you want to:
~/.claude/projects/Claude Code Trace is also used to support and build DovePaw Lite, a personal AI harness platform for orchestrating local agents.
Also check out Codex Trace — a session viewer for OpenAI Codex.
~/.claude/projects/Claude Code stores local session history as JSONL files. Those files are useful for debugging and reviewing AI coding sessions, but they are difficult to read directly. Claude Code Trace turns those JSONL logs into an interactive session viewer so you can find sessions by user message, inspect conversations, understand tool usage, and debug Claude Code workflows faster.
Unlike general observability platforms, Claude Code Trace focuses on local Claude Code session logs. It does not require sending traces to an external service.
Claude Code Trace is especially useful when building personal AI harnesses and local agent platforms. It helps inspect Claude Code sessions, understand tool usage, and debug the workflows that power projects like DovePaw Lite.
[!TIP] No clone. No build tools. No
xattr. Paste this into your terminal:curl -fsSL https://raw.githubusercontent.com/delexw/claude-code-trace/main/script/install-macos.sh | bashThis downloads the latest release and installs Claude Code Trace.app into
/Applications, ready to open from Spotlight.macOS blocks unsigned apps that were flagged as downloaded, and
curlnever sets that flag — so the app just opens, with no quarantine workaround. That is why macOS releases ship a.app.tar.gzand no.dmg. Apple Silicon only.
Pin a specific version, or install somewhere else, with:
curl -fsSL https://raw.githubusercontent.com/delexw/claude-code-trace/main/script/install-macos.sh \
| CCTRACE_VERSION=v0.15.1 CCTRACE_INSTALL_DIR=~/Applications bash
Grab the latest release from Releases:
| Platform | File |
|---|---|
| Linux | .deb, .rpm, .AppImage |
| Windows | .msi, .exe |
On macOS, use the one-line install above. Downloading the macOS build by hand is not supported — the app is unsigned, so anything a browser downloads is quarantined and refuses to open until you clear the flag yourself.
Use this option if you want to build Claude Code Trace locally on macOS, Linux, or Windows with Rust and Node.js installed.
git clone git@github.com:delexw/claude-code-trace.git
cd claude-code-trace
./script/install.sh # builds everything + installs to PATH
cctrace # desktop app (default)
cctrace --web # web mode (opens browser)
cctrace --tui # terminal UI
git clone git@github.com:delexw/claude-code-trace.git
cd claude-code-trace
npm install
npm run tauri dev # desktop app with hot reload
npm run dev:web # web mode (opens browser)
npm run dev:tui # TUI (starts backend + terminal UI)
Docker is supported for web mode only.
For an interactive deployment, use the redeploy script. It asks whether you want to configure or update the Jev API key, reads it without echoing, and stores it in a Docker-managed volume that is mounted read-only by the running container:
./script/redeploy.sh
Answer No to keep the existing Docker key unchanged or to run without Jev analysis.
For a manual deployment without the interactive prompt:
docker build -t claude-code-trace .
docker run --rm -p 1421:1421 \
-v "$HOME/.claude:/home/app/.claude:ro" \
claude-code-trace
# then open http://localhost:1421
Or use Docker Compose directly:
docker compose up --build
See docs/docker.md for runtime environment variables, volume layout, and troubleshooting.
xcode-select --install)libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev libssl-devcctrace # desktop app (default)
cctrace --web # web mode (opens browser at http://localhost:1420)
cctrace --tui # terminal UI (starts backend + TUI together)
Launch Claude Code Trace to open the session picker. It automatically discovers Claude Code sessions from ~/.claude/projects/.
Select a session to view the conversation. Click messages to expand tool calls, or open the detail view for full inspection.
JEV_API_KEY in the server environment; the HTTP API deliberately does not accept API-token save or clear requests. The TUI is an HTTP client too, so it reads the key the same way web mode does and cannot store one.a on a session row; , opens the same analytics settings.The default minimized mode sends extracted behavioural signals and selected excerpts. Full-transcript mode is available when more context is needed. Re-analysis replaces the previous result for that session, and API tokens are never written to the settings file.
In desktop mode, click Open in Browser in the toolbar to switch to browser mode. This opens http://localhost:1420 in your default browser and hides the desktop window.
If you installed the pre-built .app, .deb, or .msi, you can also launch the desktop app directly and pass --web to the binary:
# macOS
/Applications/Claude\ Code\ Trace.app/Contents/MacOS/claude-code-trace --web
The local HTTP API (port 11423) only answers accepted clients: every caller presents its own
signed credential, so the backend knows who is asking and any one client can be revoked without
affecting the rest. The web UI and the TUI are registered automatically (web-ui, tui); the
desktop app talks over IPC and needs nothing. Settings → Accepted clients lists them and lets you
FAQ
claude-code-trace is a Claude Code plugin with 1 hand-picked skill for development work, indexed on Flowy. Install it with the command on its page. It includes cut-release. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it