Anthropic's Claude Code is a remarkable CLI coding assistant, but its historical data storage is notoriously difficult to inspect. Every prompt, chain-of-thought block, tool call, and file diff is serialized as raw lines in a transcript.jsonl file.
If you've ever tried opening one of these files in VS Code or TextEdit, you've likely seen 80,000-character JSON lines filled with escaped quotes, nested object arrays, and base64 strings. Here is how Claude Code stores its sessions and how to view and search them cleanly.
Claude Code creates a hidden folder inside your Mac user directory. Each repository or workspace gets an MD5 or SHA hash directory:
~/.claude/projects/<project-folder-hash>/<session-uuid>/transcript.jsonl
Inside, each newline represents a distinct protocol event:
user_message: The prompt you typed.assistant_message: Claude's responses and reasoning blocks.tool_use: File reads, bash commands, grep executions, and test runs.tool_result: Terminal output, test results, or compilation errors.Trying to audit past sessions with standard Unix tools like grep or cat breaks down quickly:
\n strings, making syntax highlighting impossible in raw text viewers.L2Cache automatically monitors and indexes your ~/.claude/projects/ directory in the background using on-device SQLite. It transforms messy JSONL into a clean developer UI:
⌘K) to search any prompt, error trace, or diff across all your projects in under a millisecond.Never dig through unreadable transcript files again. Full multi-agent memory for your Mac.
Download L2Cache on Mac App Store