Claude Code session
Claude Context Visualizer
Visualize what's filling the context window of a Claude Code session
Install
git clone https://github.com/h4ni0/claude-context-visualizer.gitFrom the README
Claude Context Visualizer A small local web app that shows what's filling the context window of a Claude Code session — system prompt vs. messages vs. tool calls vs. tool results vs. attachments — so you can see what to trim. It reads the session transcripts Claude Code already writes to ~/.claude/projects//*.jsonl (read-only) and renders a per-session breakdown as a treemap, sunburst, or stacked bar, with a drill-down into the individual heaviest items. Requirements - Bun — used for both the API server and the web build. Setup Run Starts the API (port 5174) and the Vite dev server (port 5173) — open . The dev server proxies /api to the backend. To build the frontend for production: bun run build:web (outputs web/dist); run the API with bun run start. How it works - The headline total comes straight from the usage field of the latest assistant turn — ground truth from the API. - Messages, tool calls, tool results, and attachments are tokenized locally with js-tiktoken (cl100k_base) and calibrated toward Claude's BPE. Counts are approximate; proportions are accurate. - The system prompt + tool schemas can't be read from the transcript, so they're shown as the residual: realTotal − Σ(identified buckets). - If a session has been compacted, only content after the latest compact_boundary is counted. - Snapshots are cached under .cache/.json, keyed by the source file's mtime; each session has a Refresh button to recompute. Project layout - server/ — Bun HTTP API: reads/parses JSONL, tokenizes, computes the snapshot. - web/ — React + Vite frontend (ECharts for the visualizations). License GPL-3.0-or-later
Details
- Repository
- h4ni0/claude-context-visualizer
- Language
- TypeScript
- License
- GPL-3.0
- Last updated
- 5 June 2026
FAQ
What is Claude Context Visualizer?
Visualize what's filling the context window of a Claude Code session It is a session for Claude Code, from h4ni0/claude-context-visualizer on GitHub.
How do I install Claude Context Visualizer?
Clone h4ni0/claude-context-visualizer from GitHub and follow the setup steps in its README.
Is Claude Context Visualizer popular?
h4ni0/claude-context-visualizer has 28 GitHub stars and 3 forks. It was last updated on 5 June 2026.
More sessions & history
Claude Code Recap
30noluyorAbi/claude-code-recap
Browse every recent Claude Code session across all your projects and jump back into any of them. Shows project path, summary, git branch, model, turn count, and a ready-to-paste resume command. --open re-opens a whole working set in terminal tabs. Local files only: no network, no telemetry.
Eyes On Claude Code
27joe-re/eyes-on-claude-code
Claude Code session monitoring application.
Watchvideo
27charlesdove977/watchvideo
Local video analyzer skill for Claude Code: yt-dlp + ffmpeg + Whisper + vision. Transcript, hook breakdown, and topic research in a dated folder. No API key.
Claudepath
25Mahiler1909/claudepath
Move Claude Code projects without losing session history — CLI tool to update all path references after renaming or relocating a project directory
Dsh Oh My Claude
26lcestou/dsh-oh-my-claude
Claude Code for dsh (DeepSeek Harness): runs your logged-in Claude Code CLI as a model provider, with live models, session resume, approvals, rewind, memory and remote SSH workspaces
Grok Build Desktop
26JaydenCJ/grok-build-desktop
Grok Build Desktop — a native desktop client for the official Grok Build CLI. Claude-Desktop-style coding UI: non-blocking streaming, conversations, MCP + Skills hub, prompt library. Tauri 2 + React 19 + Rust.
Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.