Engineering Guide

How to View, Format & Search Claude Code JSONL Transcripts on Mac

Published by Amvo · Updated for Claude Code on macOS

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.

Where Claude Code Stores Session Transcripts on macOS

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:

The Problem with Raw JSONL Inspection

Trying to audit past sessions with standard Unix tools like grep or cat breaks down quickly:

The Better Way: Native GUI Viewing with L2Cache

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:

  1. Instant Full-Text Search: Press your global hotkey (⌘K) to search any prompt, error trace, or diff across all your projects in under a millisecond.
  2. Rich Markdown & Diff Rendering: Tool executions are rendered as collapsible, syntax-highlighted cards. Diffs are color-coded just like GitHub pull requests.
  3. One-Click Terminal Resume: Click any past conversation to immediately resume in Ghostty, Warp, iTerm2, or Terminal.app.
  4. Cold-Resume Guard: Warns you if the session's prompt cache has expired before you run it, preventing you from burning 1.25× write tokens.
  5. Native Notifications: Alerts your Mac desktop when an ongoing Claude Code run finishes or pauses for approval.
Turn Raw JSONL into Searchable Developer Memory
Only $9.99 one-time purchase · 15-day free trial · macOS Native

Never dig through unreadable transcript files again. Full multi-agent memory for your Mac.

Download L2Cache on Mac App Store