Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Magic-Man-usv0.1.0MIT
FastAPI dashboard + MCP tools over cc-session-core: cost/usage views, context-window replay, ledger, and live session tracking.
Connected while the plugin is enabled; Claude calls their tools.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Explores Claude Code and Codex session transcripts, plus Claude.ai exports, as context-token timelines, cost ledgers, and project breakdowns. The FastAPI dashboard, CLI tools, and MCP server are built on cc-session-core, which auto-detects both transcript providers behind one typed session model.
By default the explorer discovers Claude sessions under ~/.claude/projects and active plus
archived Codex rollouts under ~/.codex/{sessions,archived_sessions}. Setting
CC_SESSION_EXPLORER_HOME_DIR consistently rebases all three roots.
src/cc_session_explorer/ The Python package
api/ /timeline lens: context-token replay routes
usage/ /api lens: cost + token usage rollups
ingest/ Live transcript ingest (watchfiles -> SQLite)
history/ Historical ledger store + refresh CLI
viz/ Self-contained HTML reports (Sankey, cost ledger)
mcp/ Stdio MCP server over the same capabilities
static/ Built single-file SPA (output of frontend/app)
frontend/
ui/ @cc-session/dashboard-ui — the design-system components
app/ @cc-session/dashboard-app — the dashboard SPA (bundles ui from source)
systemd/ Linux user services for the dashboard and the live watcher
launchd/ macOS LaunchAgents for the dashboard and the live watcher
tests/
Persistent stores live under ~/.cc-session-explorer (transcripts.db, ledger.db) — the
legacy data home, kept so existing installs and the systemd watcher carry over
(see src/cc_session_explorer/paths.py).
uv tool install cc-session-explorer
From a checkout:
uv sync --all-groups
| Command | What it does |
|---|---|
cc-session-explorer | FastAPI dashboard: SPA at /, cost lens at /api/*, context lens at /timeline/*, on 127.0.0.1:9821 |
cc-session-watch | Live watcher; ingests Claude and active/archived Codex transcripts into SQLite |
cc-session-history | Refreshes the historical usage ledger |
cc-session-sankey | Per-session token-flow Sankey as a self-contained HTML page |
cc-session-ledger | Directory-wide cost ledger as a self-contained HTML page |
cc-session-explorer-mcp | Stdio MCP server exposing the explorer's capabilities as tools |
Configuration comes from CC_SESSION_EXPLORER_* env vars (or a .env):
CC_SESSION_EXPLORER_HOME_DIR (defaults to your home directory) and
CC_SESSION_EXPLORER_EXPORT_PATH (a Claude.ai account export zip, only needed
for the export timeline).
Every session opens with an interactive context trace at the top of the dashboard. The line shows reconstructed active-context growth over time, with markers for compactions, subagent activity, context loads, errors, and other lifecycle events. Hovering inspects the nearest event; selecting a point loads an inclusive 30-minute activity window spanning 15 minutes before and after it, including prompts, responses, tool calls and results, hooks, context loads, compactions, and subagent events.
Trace measurements are labeled exact, estimated, or inferred. Exact compaction
metadata is used when a provider records it; text contributions use the shared token
estimator; inferred boundaries are shown when the transcript exposes a compaction summary
without exact before/after counts. The graph models active context, so it intentionally
does not mix in billed usage or prompt-cache token totals.
| Route | What it returns |
|---|---|
GET /timeline/session/{session_id}/trace | The complete provider-normalized context trace |
GET /timeline/session/{session_id}/trace-window?center=…&minutes=30 | Activity around a selected timestamp |
Register cc-session-explorer-mcp in a Claude Code .mcp.json:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: dependencies: Invalid input: expected array, received object
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Plugins from other owners that cover similar ground