Streams the main-transcript turns of a session, one at a time.
Yields user and assistant entries from the main JSONL file, in chronological
order, skipping subagent turns (isSidechain && agentId !== undefined).
Memory stays bounded — the consumer can break, filter, or accumulate at will.
Parameters
projectDir: string
Absolute path to the project directory under ~/.claude/projects/<slug>/
Streams the main-transcript turns of a session, one at a time.
Yields user and assistant entries from the main JSONL file, in chronological order, skipping subagent turns (
isSidechain && agentId !== undefined). Memory stays bounded — the consumer can break, filter, or accumulate at will.