Skip to content

Latest commit

 

History

History
99 lines (72 loc) · 3.74 KB

File metadata and controls

99 lines (72 loc) · 3.74 KB

kaaro-sessions

A live observability surface for your AI coding agent sessions.

Reads transcripts from eight harnesses — Claude Code, Codex, Pi, Google Antigravity, Grok, opencode, GitHub Copilot, and Command Code — normalizes them into a common record vocabulary, and serves an interactive force-directed graph of projects, sessions, and files plus live Mission Control and DAW views, all from a local HTTP server with live hot-reload.

Screenshot 2026-04-28 at 11-19-17 Claude Code Sessions — kaaro-sessions

Requirements

  • Node.js ≥ 18
  • At least one supported harness installed. Claude Code sessions live in ~/.claude/projects/; Codex tasks live in $CODEX_HOME or ~/.codex. See docs/harnesses.md for the full list and docs/CODEX.md for Codex-specific behavior.

No npm install needed — zero external dependencies.

Quick start

npx kaaro-sessions

Or, from a clone of this repo:

node serve.mjs

Both open http://localhost:3333 automatically. The server watches for session changes and pushes live updates to the browser via SSE.

npx kaaro-sessions --port=3334   # alternate port
npx kaaro-sessions --no-open     # skip auto browser open
  • / — landing page: pick Graph, Mission Control, or DAW
  • /graph — the history view (force graph, swimlane, arc, matrix, 3D)
  • /now — Mission Control: per-harness live rollup, session cards, recent actions
  • /daw — Live Pulse DAW Builder: pure event stream + audio rule editor

Scripts

Command What it does
node serve.mjs Analyze + build + serve + watch (main entry point)
node serve.mjs --port=3334 Alternate port
node serve.mjs --no-open Skip auto browser open
node analyze.mjs Scan Claude Code by default → sessions-data.json
node analyze.mjs --all-harnesses Scan every supported local harness, including Codex
node build.mjs sessions-data.jsongraph.html + graph-data.json
node build.mjs --min-sessions=3 Hide files appearing in fewer than N sessions
node --test Run all unit tests (zero npm deps, <10s)

What you see

Graph nodes

  • Project nodes (ringed circles) — one per ~/.claude/projects/ directory
  • Session nodes (filled circles, sized by AI work tokens) — one per JSONL session file
  • File nodes (diamonds, sized by edits) — files touched across multiple sessions

Bottom chrome

  • Timeline strip — every session chronologically, scrub to filter by date
  • DAW Feed Widget — live scrolling feed of tool calls as they happen, with audio synthesis

Layouts (keyboard: 15)

  • Force graph, Swimlane/Gantt, Arc diagram, Matrix, 3D

Session detail panel (click any session node)

  • Token usage, tool call bar chart, branch history
  • Context Windows strip — proportional view of each context reset
  • Thread View — full conversation replay: every USER/ASST turn, tool calls with arguments, error indicators, turn durations, thinking flags

Live pulse

  • SSE stream pushes tool_call, tokens, words events as sessions update
  • Pulse ticker shows a scrolling live feed; pin it to keep history
  • Audio engine maps tool families to instruments (BPM-synced)

Harness Docs

Privacy

All data is read locally from your machine and served only to 127.0.0.1. Nothing is sent to any external service. The generated sessions-data.json, graph.html, and graph-data.json are gitignored — don't commit them.

License

AGPL-3.0-or-later