Inspect Claude Code sessions with lnav A developer has created a format file that enables lnav, a log file viewer, to parse and query Claude Code session transcripts stored locally, making them searchable via SQLite. The tool allows users to analyze conversation turns, tool failures, cache economics, and slow tool calls, with support for recursive indexing of subagent transcripts using the -r flag. Inspect Claude Code sessions with lnav Tip: LLM-generated article For the most part, this article was LLM generated, especially the snippets and examples. I’m not sure if anyone will find this interesting but… You can teach lnav https://lnav.org/ about Claude Code session stored on your machines and then have it properly parse them and make them queryable. Here’s the format file: Drop that in ~/.config/lnav/formats/claude-code/format.json and open a session: Replace