If you use Claude Code daily, you’ve probably hit one of two walls:

  1. You know you solved a tricky bug three weeks ago, but you can’t find which session it happened in.
  2. Your sessions vanished from claude --resume after an update, even though the raw files are still sitting on disk.

Claude Code stores every conversation locally as raw .jsonl files under ~/.claude/projects/<project-hash>/. A busy afternoon can easily generate 50 MB+ of line-delimited JSON. There is no built-in full-text search across projects, and if sessions-index.json gets corrupted or out of sync, the built-in --resume picker simply hides your older sessions.

A dedicated history viewer turns those raw JSONL logs into a searchable knowledge base. Here is a complete comparison of the major tools available in 2026—what each one does well, where each falls short, and the hidden cold-session cost most comparisons miss.

Every Claude Code History Viewer in 2026 — At a Glance

Tool Type OS Support Search Multi-Agent Token / Cache Insights Agent Continuity (MCP / Hooks)
L2Cache Native macOS App macOS Full-text (FTS5) + Terminal + Clipboard + OCR Claude Code, Codex, Antigravity, Grok Cold-session guard & cache-rewrite warnings Built-in local MCP + Hooks
CCHV (jhlee0409) Desktop App (Electron) macOS, Windows, Linux Full-text Claude Code, Gemini CLI, Codex, Cline, Cursor, Aider, OpenCode Token usage & cost dashboard None (viewer only)
Claude History Viewer (agsoft) VS Code Extension macOS, Windows, Linux In-IDE search Claude Code Cost tracking per session/project File diff view in IDE
claude-code-viewer Local Web UI (PyPI) macOS, Windows, Linux Basic Claude Code Limited None
claude-history Rust CLI macOS, Linux Fast fuzzy search Claude Code None None
Built-in CLI (--resume, --continue, /history) Built-in CLI macOS, Windows, Linux Title scroll only Claude Code None Native resume

1. L2Cache — Best for macOS Developers Who Want Search + Cold-Session Protection + MCP

Platform: macOS (Native Swift/AppKit) · Website: l2cache.app

Most history viewers treat AI sessions as read-only archives: you open an app, read an old transcript, and copy-paste text back into a new terminal. L2Cache takes a different approach—it treats Claude Code sessions as part of your live developer memory alongside your terminal history, clipboard, and screenshots.

What stands out

  • Hooks + local FTS5 indexing: L2Cache installs lightweight hooks for Claude Code (and other coding agents) so sessions are indexed locally as you work—meaning your search index doesn't break if sessions-index.json gets out of sync.
  • Unified search across everything: Search past Claude Code prompts, error messages, terminal commands, copied code snippets, and even text inside screenshots (via local OCR) in one place.
  • Cold-session guard: Resuming an old 100k+ token session with claude --resume after the 5-minute prompt cache TTL expires forces a full cold cache rewrite, burning through your weekly quota fast. L2Cache detects when a session's cache has gone cold and warns (or optionally pauses) your first message so you can /clear and hand off cleanly.
  • Local MCP server for fresh sessions: Instead of manually browsing an old transcript and pasting it in, a fresh Claude Code session can query L2Cache's local MCP tools (get_session_summary, get_recovery_point, get_error_resolutions, get_decisions, search_agent_history) to pull only the context it needs.

Pros

  • Native macOS performance (no Electron overhead)
  • Protects your Claude Code weekly/5-hour limits from cold --resume rewrites
  • Bridges human browsing and agent-to-agent continuity via MCP
  • 100% local-first storage

Cons

  • macOS only (no Windows or Linux builds)
  • Built as a broader developer memory tool, not just a single-purpose JSONL viewer

Best for: macOS developers who use Claude Code daily and want fast cross-tool search, protection against cold-session token burn, and MCP-based session handoffs.

2. CCHV (jhlee0409) — Best Cross-Platform Multi-Agent Viewer & Token Dashboard

Platform: macOS, Windows, Linux (Electron)

If you want a dedicated, open-source standalone viewer that runs across platforms and focuses heavily on analytics, Claude Code History Viewer (CCHV) is the most complete traditional browser.

Pros

  • Broad multi-agent support: Indexes Claude Code, Gemini CLI, Codex CLI, Cline, Cursor, Aider, and OpenCode in one interface.
  • Token analytics dashboard: Clean breakdowns of token consumption and estimated costs across projects and sessions.
  • Headless server mode: Useful if you want to inspect logs from a remote dev box or shared environment.
  • Fully offline: Reads local directories with no telemetry.

Cons

  • Electron footprint is heavier than native or CLI tools.
  • Read-only: it helps you read past sessions, not hand off context to a new session or guard against cold cache rewrites.

Best for: Cross-platform developers (especially on Linux/Windows) or teams that want visual token dashboards across 7+ AI CLI tools.

3. Claude History Viewer (agsoft) — Best for VS Code-Centric Workflows

Platform: Anywhere VS Code runs

If you never leave VS Code and don't want another desktop window or terminal tab, the agsoft VS Code extension brings session browsing straight into the sidebar and command palette.

Pros

  • Zero context switching: Browse sessions right next to your codebase.
  • File diff view: Inspect what code changed during a past session alongside your current workspace files.
  • Per-session cost tracking: Quick visibility into what a task cost.

Cons

  • Locked to VS Code (not helpful for Neovim, Zed, Ghostty, or iTerm2-first workflows).
  • Claude Code only—no cross-agent indexing.

Best for: Developers who live inside VS Code and primarily want to inspect past code diffs from Claude Code sessions.

4. claude-code-viewer (PyPI) — Best Lightweight Python Web UI

Platform: macOS, Windows, Linux (Python 3.8+)

If you want something quick without installing a desktop app, claude-code-viewer (pip install claude-code-viewer) spins up a local web UI over your ~/.claude/projects/ folder in under a minute.

Pros

  • Very fast to spin up on Linux servers, WSL, or minimal environments.
  • Clean syntax-highlighted rendering grouped by project directory.

Cons

  • Basic search and limited analytics compared to desktop tools.
  • Claude Code only.

Best for: Python developers, Linux/WSL users, or remote environments where a lightweight local web server beats a GUI app.

5. claude-history (Rust CLI) — Best for Terminal-Only Fuzzy Search

Platform: macOS, Linux

If you live in the terminal and just want fzf-style speed across your .jsonl files, claude-history is a fast Rust CLI that indexes and searches conversations inline.

Pros

  • Blazing-fast fuzzy search across all sessions.
  • Zero GUI overhead; fits right into tmux/terminal workflows.

Cons

  • No visual diff view, no token/cache analytics, and no multi-agent support.

Best for: Terminal-first engineers who just need fast keyword/fuzzy lookup without leaving the shell.

6. Built-in Claude Code CLI (--resume, --continue, /history)

Before installing anything, Claude Code ships with three built-in commands:

  • claude --continue: Immediately resumes the most recent session in the current directory.
  • claude --resume: Opens an interactive picker of recent sessions.
  • /history: Lists messages in the current session.

The catch

  1. No cross-session full-text search: You can only scroll through session titles.
  2. Fragile index: If sessions-index.json breaks or desyncs after an update, older sessions disappear from --resume even though the .jsonl files are still on disk.
  3. The cold-session trap: Picking up a 3-hour-old session with --resume after the 5-minute prompt cache TTL expires forces Claude to re-read the entire 100k+ token history at full uncached input cost.

Best for: Resuming a session you closed less than 5 minutes ago.

How to Choose the Right Viewer

What's your primary setup? ├── macOS + want search, cold-session guard & MCP handoffs ──▶ L2Cache ├── Windows / Linux + want GUI & token dashboards ──▶ CCHV ├── Live inside VS Code + want file diffs ──▶ VS Code Extension (agsoft) ├── Remote / Python / WSL ──▶ claude-code-viewer (PyPI) └── Terminal-only + just need fast fuzzy grep ──▶ claude-history (Rust CLI) 

FAQ

Where does Claude Code store session history?

On macOS and Linux, Claude Code writes conversation logs as .jsonl files inside ~/.claude/projects/<project-hash>/. Each line is a JSON object representing a user message, assistant response, tool call, or usage metadata.

Why did my Claude Code sessions disappear after an update?

In most cases, your conversations aren't actually deleted—only sessions-index.json fell out of sync or was corrupted. Check ~/.claude/projects/ for the underlying .jsonl files, or use a viewer that indexes the raw .jsonl files directly (or captures via hooks).

Is it bad to use claude --resume on old sessions?

If the session has been idle longer than Claude's prompt cache TTL (typically 5 minutes), resuming a large session forces a cold cache rewrite of the entire conversation history. For older sessions, it's usually much cheaper and cleaner to start a fresh session and pull only the summary, decisions, or error resolutions you need (for example, via an MCP server like L2Cache's).