Nov 29, 2026

See Every Claude Code Session in a Local Dashboard

Claude Code Karma reads the JSONL files already sitting in ~/.claude/ and renders sessions, costs, and live activity — no cloud, no accounts, no telemetry.

#tutorial#claude-code#developer-tools#productivity

If you use Claude Code, a goldmine is already on your disk: every session, every tool call, every token, buried in JSONL files under ~/.claude/ you will never open. Claude Code Karma is a local-first, open-source dashboard that reads that data and turns it into a visual story — sessions, timelines, costs, and live activity, all on your machine. No cloud, no accounts, no telemetry.

Why This Skill Matters

The dashboard covers both Claude Code CLI and Claude Desktop (Claude Code mode) sessions — anything that writes to ~/.claude/ shows up automatically. Under the hood, ~/.claude/projects/ feeds a FastAPI backend (port 8020) that parses and serves the data, and a SvelteKit frontend (port 5180) visualizes it; metadata is indexed in a local SQLite database. Nothing leaves your machine.

One warning from the README belongs up front: Claude Code only keeps session data for about 30 days, and older JSONL files under ~/.claude/projects/ are automatically cleaned up. Since Karma reads directly from those files, deleted sessions will disappear from the dashboard too.

Installation

# Clone the repository
git clone https://github.com/JayantDevkar/claude-code-karma.git
cd claude-code-karma

# Start API (Terminal 1)
cd api
pip install -e ".[dev]" && pip install -r requirements.txt
uvicorn main:app --reload --port 8020

# Start Frontend (Terminal 2)
cd frontend
npm install && npm run dev

Open http://localhost:5180 to view the dashboard. The README is explicit that this only gets you the historical dashboard — Karma's core feature, live session tracking as sessions actually run, needs one more step: Tier 2 in SETUP.md, which installs the Claude Code hooks. Install through Tier 2 by default; the rest of SETUP.md's tiers are optional polish.

Two terminals every time gets old, so a desktop installer exists too: python3 scripts/install_karma_app.py puts a Karma app in /Applications on macOS (or a Desktop shortcut on Windows) that starts whichever servers are not already running and opens the dashboard. Add --dock to pin it to the macOS Dock, or --autostart to have the servers up at login — the README puts the idle cost at roughly 200–250 MB of memory and almost no CPU.

Real Workflow: Auditing a session after the fact

Open the dashboard and the Session Browser lists every session; search by title, prompt, or slug and filter by project. Live sessions sit at the top with real-time status badges — and a >_ button that raises the terminal window the live session is running in.

Click into any session for a tabbed breakdown, including:

  • Timeline — every prompt, tool call, thinking block, and response laid out chronologically, with an overview tab for message count, duration, model used, and which tools were called.
  • Files — every file operation in a sortable table: reads, writes, edits, with timestamps, actors, and the tool that made each change.
  • Subagents — agents spawned during the session, grouped by type, expandable to message counts, tool calls, and what they were asked to do.
  • Analytics — per-session cost breakdown, token usage, cache hit rates, tool distribution with a donut chart, and a ranked list of every tool used.

Live sessions report one of five states: LIVE (actively running), WAITING (waiting for user input), STOPPED (agent finished, session open), STALE (user idle 60+ seconds), and ENDED (session terminated).

Linking sessions to tickets

A separate skill ships in the repo for ticket work: type /link-ticket-to-session ABC-123 (or ask the agent in natural language) in any Claude Code session, and it uses your Linear, Atlassian, or GitHub MCP server to fetch the title. You can also paste a URL or key into the Tickets section on any session page, or enable an opt-in SessionStart hook that watches for keys like feat/LINEAR-123-foo in branch names. Karma stays read-only here — it stores the link and caches the title and status, but never writes back to your ticket provider. Linked tickets roll up in a /tickets index and on a per-project Tickets tab.

Tips

  • The Projects view groups workspaces by git repository and shows session count and last-active time per project card.
  • The Tools & MCP page covers built-ins like Read, Edit, and Bash plus any MCP integrations you have added, grouped by server with call counts — click into a tool for total calls, session count, and a main-vs-subagent split.
  • The Hooks page visualizes your hooks organized by lifecycle phase and shows which hooks can block execution.
  • Full-text search covers session titles, prompts, and slugs; the command palette opens with Ctrl+K / Cmd+K.
  • Stack, for the record: Python 3.10+ with FastAPI and Pydantic 2.x on the backend, SvelteKit 2 with Svelte 5 on the frontend, and a captain-hook library of type-safe Pydantic models for Claude Code's 10 hook types.

When Not to Use This

Karma is a window onto your Claude Code history, not a control panel — ticket linking aside, it does not write back to anything, and it only sees what Claude Code wrote to ~/.claude/ within its roughly 30-day retention window. If your sessions live on another machine or you need longer retention, the dashboard cannot recover what the files no longer contain.


See the leaderboard for more skills.