Claude Trace
If you've used Claude Code for more than a few hours, you've probably wondered: how much did that session cost? how close did I get to the context limit? which tools did Claude lean on? Claude Trace answers all three at a glance, without leaving your editor. It reads the transcripts Claude Code already writes to your machine. No hooks. No daemon. No data leaves your computer. Screenshot
The dashboard has a sidebar of sessions on the left, summary cards and charts in the middle, and a virtualized event timeline at the bottom. Highlights
Install
That's it. No configuration, no hooks to install, no API keys. Open the dashboardPress You can also run Claude Trace: Open Dashboard from the command palette, or click the The first time you open it, you'll see every Claude Code session that's already on your machine, sorted by recency. Click one to dive into the details. How it worksClaude Code stores a full transcript for every session under Claude Trace watches that directory with Cost numbers are computed locally from the token counts already in the transcript, using public Anthropic pricing. The context percentage is auto detected: if any turn in the session reports more than 200K input tokens, the dashboard assumes a 1M context window (the variant Claude Code uses on Max and Team plans). Nothing is sent off your machine. The dashboard is a webview reading local files. PrivacyAll data stays on your machine. The extension never makes a network request. To wipe the data Claude Code wrote (independently of this extension):
Features at a glanceSession list. Every session you've ever run with Claude Code, sorted by last activity. Each entry shows the session title (the AI generated topic name), the project folder it ran in, tool count, duration, and cost. Summary cards. Six tiles for the selected session: duration, tool calls, cost, context %, total tokens (with an input/output breakdown), and lines added/removed. Context usage chart. Area chart over time. A red dashed line marks the 80% threshold so you can see when a session is getting tight. Cost chart. Cumulative cost over time. Useful for spotting which part of a long session cost the most. Tool distribution. Donut chart showing which tools the model used and how often. Event timeline. Filterable, virtualized, expandable. Click any event to see the inputs the model passed and the result it received back. Live updates. When you have Claude Code running in one window and the dashboard open in another, the active session updates in place. The cards refresh their values, the charts redraw, and new events stream into the timeline. No flicker, no scroll jump, no focus loss in the search box. UsageThe dashboard is read only. You drive Claude Code from its own terminal or IDE integration. Open the dashboard whenever you want to inspect a session. Two common workflows:
SettingsThere aren't any. The extension activates on startup and reads from the default Claude Code location. If you've moved your Requirements
Uninstall
For contributors
Press The codebase is split into three layers:
The webview is its own TypeScript bundle under LicenseMIT. See LICENSE. |
