Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Claude Insights

Claude Insights

Real-time dashboard for Claude Code sessions

Monitor what Claude is doing across all your projects — live status, token usage, session context, reasoning history, and git changes.

Version Python License PyPI

by Leandro Siciliano · InfoWhere


Claude Insights dashboard Live session — WORKING state, all panels visible

Claude Insights is a lightweight web dashboard that connects to Claude Code via hooks. It shows live status, token usage, session context, reasoning blocks, and uncommitted git changes — across all your projects simultaneously. Everything runs locally. No data leaves your machine.


Installation

Homebrew (macOS)

brew tap infowhere-ai/claude-insights
brew install claude-insights

pipx (macOS / Linux)

pipx install claude-insights

After installing, see Quick Start below to activate the hooks.


Quick Start

  1. Activate hooks — sets up the hook script at ~/.claude/hooks/monitor-hook.sh and registers it for 5 Claude Code events in ~/.claude/settings.json:

    claude-insights install
    

    Existing hooks are never removed or modified.

  2. Restart Claude Code — required for the hooks to take effect in open sessions.

  3. Start the dashboard:

    claude-insights start
    

    Opens at http://localhost:4000


How It Works

Claude Code fires hooks at key moments — before and after each tool call, on notifications, on stop. Each hook writes a small JSON file to .claude/status.json inside the current project. Claude Insights watches those files and streams updates to the browser via Server-Sent Events.

Claude Code  →  hook fires  →  .claude/status.json  →  Claude Insights (SSE)  →  browser

Features

Area What you see
Live status Current state: working, waiting, compacting, idle — with the exact tool name
Reasoning Claude's internal thinking live as it arrives; full history browsable
Session context Context window breakdown: fixed rules, conversation, tool results — with token costs
Token usage Input, output, cache reads — per session and 5-hour renewal window
Commands Every tool call with path, duration, and success/failure
To commit Uncommitted git changes; click any file for a side-by-side diff viewer
Multi-project Monitors all projects under a root folder — auto-discovered
Session history Browse past sessions; replay events and reasoning blocks
Reasoning panel — live thinking stream

Live reasoning stream — Claude's internal thinking as it arrives

Session context — token breakdown

Context window breakdown by category with token costs

Git panel — uncommitted files

Uncommitted files — click any file to open the side-by-side diff viewer

5-hour token renewal window

5-hour token renewal window tracker


Requirements

Claude Code version: claude-insights requires Claude Code 1.0 or later (hooks support). The PreCompact hook (compacting state indicator) requires 1.5+ and is optional — the dashboard works without it. Update with npm install -g @anthropic-ai/claude-code@latest.


Configuration

Variable Default Description
PORT 4000 (CLI) / 19001 (run.sh, docker) HTTP port for the dashboard
HOST 127.0.0.1 Bind address
PROJECTS_ROOT required for pip/pipx/binary installs; auto-detected only from a source checkout Root folder containing your project directories
POLL_INTERVAL 0.5 State-file polling interval (seconds)
DISCOVERY_INTERVAL 60.0 Project discovery interval (seconds)
JSONL_ACTIVE_SECONDS 30.0 Activity window for session JSONL files
CLAUDE_HOME ~/.claude Claude Code directory
CLAUDE_PROJECTS_DIR ~/.claude/projects Where session JSONL files live
CLAUDE_INSIGHTS_DB ~/.claude/claude-insights.db SQLite database path
CORS_ORIGIN_REGEX localhost/127.0.0.1 Allowed CORS origins regex

See .env.example for the full list.

PORT=8080 PROJECTS_ROOT=~/code claude-insights start

Any directory under PROJECTS_ROOT that contains a .claude/ folder is monitored automatically.


Uninstall

claude-insights uninstall

Removes the hook script and deregisters hooks from ~/.claude/settings.json. Your other Claude Code hooks and settings are preserved.


Development

For running from source:

git clone https://github.com/infowhere-ai/claude-insights.git
cd claude-insights
./install.sh        # sets up hooks
./run.sh start      # starts the server (source install — default port: 19001)

Stack: Python 3.10+ · FastAPI · SSE · Vanilla JS (no build step)


License

MIT — © 2026 Leandro Siciliano

Metadata

Release files for claude-insights 1.0.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for claude-insights 1.0.0b2
File Interpreter ABI Platform
claude_insights-1.0.0b2-py3-none-any.whl Python 3 none any Details

Release files / claude_insights-1.0.0b2-py3-none-any.whl

Download URL claude_insights-1.0.0b2-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
efdb345c191b1b50b54a257f991c82286cda0b57ed2e5e6480a46d14619e4b60
BLAKE2b-256 checksum
How to use checksums
99def254964c64cb3f21455039036ab67e7a6c491a35beca6127c3c6b0ac13cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page