Dev Tools · 2h ago
Parsing Claude Code's undocumented JSONL log format
Claude Code stores every conversation as JSONL files with no versioning or stability guarantees. A developer shares patterns for building a parser that tolerates schema changes and preserves unknown data. The approach uses an explicit whitelist of known types and treats malformed lines as salvageable artifacts.
Meridian48 take
This is a practical survival guide for developers building tools on top of fast-moving AI CLI internals, but the lack of a stable schema is a red flag for production use.
Read the full reporting
Parsing Claude Code's JSONL: patterns for a schema that keeps moving →
DEV Community
claude-codejsonl-parsing