If you use Claude Code daily, you have probably hit one of two walls:
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.
| 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 |
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.
sessions-index.json.claude --resume after the 5-minute prompt cache TTL expires forces a full cold cache rewrite. L2Cache warns (or pauses the first message) when a session's cache is cold so you can /clear and hand off cleanly.get_session_summary, get_recovery_point, get_error_resolutions, get_decisions, search_agent_history) to pull only what it needs.Trade-offs: macOS only (native Swift/AppKit). Free download with a 15-day Pro trial; $9.99 one-time Pro unlock.
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.
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.
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.
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.
--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.
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)
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.
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.
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.
Search Claude Code sessions, terminal commands, clipboard & OCR screenshots locally—with cold-session guard and local MCP tools.
Download L2Cache for Mac