Skip to main content

Module transcript

Module transcript 

Source
Expand description

Transcript streamer — reads Claude Code JSONL transcripts and formats them for Nexus ingest.

Ported from letta-ai/claude-subconscious/scripts/transcript_utils.ts.

Structs§

IngestEntry
Formatted entry ready for Nexus ingest-hook-event.
ToolCall
ToolResult
TranscriptEntry
A parsed entry from a Claude Code JSONL transcript.

Functions§

build_ingest_payload
Build a JSON payload for nexus ingest-hook-event from transcript entries.
format_for_ingest
Format transcript entries for Nexus ingest. Produces a single concatenated string suitable for nexus ingest-hook-event.
read_transcript
Read a Claude Code JSONL transcript file and parse entries.
read_transcript_from
Read only entries strictly after start_index (exclusive) for incremental sync. Pass None to read all entries (never synced).