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§
- Transcript
Entry - A single entry in a JSONL transcript file.
- Transcript
Meta - Sidecar metadata for a transcript, written as
<agent_id>.meta.json. - Transcript
Reader - Reads and reconstructs message history from JSONL transcript files.
- Transcript
Writer - Appends
TranscriptEntrylines to a JSONL transcript file.
Functions§
- sweep_
old_ transcripts - Delete the oldest
.jsonlfiles indirwhen the count exceedsmax_files. - utc_
now_ pub - Returns the current UTC time as an ISO 8601 string (
"YYYY-MM-DDTHH:MM:SSZ").