← Back to Blog

Claude Code History Viewers Compared (2026): Every Tool Ranked + The Cold-Session Trap

December 5, 2026 · 8-min read

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

  1. You know you solved a tricky bug three weeks ago, but you cannot 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 older sessions.

TL;DR: On macOS, L2Cache is the only tool that pairs full-text session search (via hooks + SQLite FTS5) with a cold-session guard and a local MCP server so fresh sessions can pull past context without burning a cold cache rewrite. On Windows/Linux, CCHV (desktop) or agsoft's VS Code extension are the strongest cross-platform viewers.

Every Claude Code History Viewer in 2026 — Compared

Tool Type OS Support Search Multi-Agent Cold-Session / MCP
L2Cache Native macOS App macOS Full-text (FTS5) + Terminal + Clipboard + OCR Claude Code, Codex, Antigravity, Grok Cold-session guard + Local MCP + Hooks
CCHV (jhlee0409) Desktop App (Electron) macOS, Windows, Linux Full-text 7+ (Claude Code, Gemini CLI, Codex, Cline, Cursor, Aider, OpenCode) None (viewer + token dashboard)
Claude History Viewer (agsoft) VS Code Extension macOS, Windows, Linux In-IDE search Claude Code File diff view in IDE
claude-code-viewer Local Web UI (PyPI) macOS, Windows, Linux Basic Claude Code None
claude-history Rust CLI macOS, Linux Fast fuzzy search Claude Code None
Built-in CLI (--resume) Built-in CLI macOS, Windows, Linux Title scroll only Claude Code Native resume

1. L2Cache — Best for Mac Developers (Search + Hooks + Cold-Session Guard + MCP)

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 terminal. L2Cache treats Claude Code history as part of your live developer memory alongside your terminal commands, clipboard, and screenshots.

Trade-offs: macOS only (native Swift/AppKit). Free download with a 15-day Pro trial; $9.99 one-time Pro unlock.

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

If you are on Windows or Linux or want a dedicated open-source Electron viewer focused on analytics, Claude Code History Viewer (CCHV) indexes Claude Code, Gemini CLI, Codex CLI, Cline, Cursor, Aider, and OpenCode in one interface, with a token usage dashboard and headless server mode.

Trade-offs: Heavier Electron footprint; read-only archive without cold-cache protection or MCP handoffs. Price: Free, open source.

3. Claude History Viewer (agsoft) — Best Inside VS Code

Brings session browsing into the VS Code sidebar and command palette, with per-session cost tracking and file diff views so you can inspect what code changed alongside your current workspace.

Trade-offs: Locked to VS Code and Claude Code only. Price: Free.

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

Runs via pip install claude-code-viewer and spins up a local web UI with syntax-highlighted conversations grouped by project. Ideal for Linux servers, WSL, or Python-first environments.

Trade-offs: Basic search and limited analytics; Claude Code only. Price: Free.

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

A fast Rust CLI that gives you fzf-style fuzzy search across all local Claude Code .jsonl files without leaving tmux or your shell.

Trade-offs: No visual diff view, no token/cache analytics, and no multi-agent support. Price: Free.

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

Zero install and always available—great for picking up a session you closed two minutes ago. However, there is no cross-session search, sessions-index.json desyncs can hide older sessions, and resuming a stale session after the 5-minute cache TTL triggers a costly cold cache rewrite.

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?

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

Why did my Claude Code sessions disappear after an update?

Usually your conversations are still on disk—only sessions-index.json fell out of sync. Check ~/.claude/projects/ for the raw .jsonl files, or use a tool that indexes transcripts directly or captures via hooks.

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

If a heavy session has been idle past Claude's 5-minute prompt cache TTL, resuming it forces a cold cache rewrite of the entire history. Starting fresh and pulling just the summary, decisions, or error resolutions via MCP is far cheaper.

Try L2Cache free for 15 days

Search Claude Code sessions, terminal commands, clipboard & OCR screenshots locally—with cold-session guard and local MCP tools.

Download L2Cache for Mac