Skip to main content

Module parser

Module parser 

Source
Expand description

JSONL line parser for Claude Code transcripts.

Each line in the transcript is a JSON object with a type field indicating whether it’s a user or assistant message.

Functions§

extract_model_id
Extract model ID from a transcript JSONL file.
model_display_name
Convert a model ID to a short display name (e.g., “claude-opus-4-6” → “Opus 4.6”)
parse_jsonl_line
Parse a single JSONL line into TranscriptRecords.