Reads and parses one Claude Code session into its aggregate metadata.
Streams the main JSONL file and computes counters and last-wins fields
(tokens, gitBranch, primaryModel, etc.) without retaining the per-turn
entries. Memory usage stays constant regardless of the file size.
Reads and parses one Claude Code session into its aggregate metadata.
Streams the main JSONL file and computes counters and last-wins fields (tokens, gitBranch, primaryModel, etc.) without retaining the per-turn entries. Memory usage stays constant regardless of the file size.
Pair with readSessionTurns when you need the message stream.