Skip to main content

Module transcript

Module transcript 

Source
Expand description

JSONL-based transcript persistence for sub-agent conversations.

Each sub-agent session writes a <task_id>.jsonl file of TranscriptEntry lines and a companion <task_id>.meta.json sidecar with TranscriptMeta.

Files are created with 0o600 permissions on Unix to prevent other users from reading conversation history.

The sweep_old_transcripts function prunes the oldest .jsonl files when a configurable maximum count is exceeded.

Structs§

TranscriptEntry
A single entry in a JSONL transcript file.
TranscriptMeta
Sidecar metadata for a transcript, written as <agent_id>.meta.json.
TranscriptReader
Reads and reconstructs message history from JSONL transcript files.
TranscriptWriter
Appends TranscriptEntry lines to a JSONL transcript file.

Functions§

sweep_old_transcripts
Delete the oldest .jsonl files in dir when the count exceeds max_files.
utc_now_pub
Returns the current UTC time as an ISO 8601 string ("YYYY-MM-DDTHH:MM:SSZ").