Skip to content

Transcript Entry Types

All entry types stored in session JSONL transcripts.

TypePurposePersisted on resumeNotes
TranscriptMessageUser or assistant message in conversationYesRole: user or assistant
SummaryMessageConversation summary after compactionNoCompressed history; full details in transcript
TaskSummaryMessageTask execution result and statusYesLinks to task framework; survives via transcript
TypePurposePersisted on resumeNotes
CustomTitleMessageUser-set session titleYesAlways wins over AI-generated title
AiTitleMessageAI-generated title from first promptNoDropped on resume; replaced by user custom if exists
TagMessageUser-added tags (e.g., “important”, “archived”)YesMultiple allowed per session
AgentNameMessageSubagent custom nameYesUsed in UI agent list
AgentColorMessageSubagent UI color preferenceYesHex color for agent badge
AgentSettingMessageSubagent configuration stateYesPersists agent-level settings
TypePurposePersisted on resumeNotes
FileHistorySnapshotMessageContent of a file at a specific turnYesSnapshots for /rewind and file archaeology
AttributionSnapshotMessageSource attribution for tool resultsYesTracks which tool created which output
ContentReplacementEntryUpdated file content (e.g., post-edit)YesStable prompt cache key
PersistedWorktreeSessionWorktree session stateYesUsed for /branch and multi-worktree scenarios
TypePurposePersisted on resumeNotes
LastPromptMessageLast user prompt before shutdownNoTransient; used for UI recovery only
ModeEntryPermission/compaction mode stateYesTracks active mode changes during session
WorktreeStateEntryCurrent worktree/branch contextYesEnables multi-worktree session tracking
TypePurposePersisted on resumeNotes
PRLinkMessageGitHub PR created/linked in sessionYesLinks session to PR context
QueueOperationMessageTask queue mutation (add/remove/complete)YesTask framework operations
SpeculationAcceptMessageAccepted speculative execution resultYesOptimistic execution tracking
TypePurposePersisted on resumeNotes
ContextCollapseCommitEntryCommit after context collapse operationYesRecords context simplification events
ContextCollapseSnapshotEntrySnapshot before context collapseYesBackup for context recovery
  • 17+ total types defined in types/logs.ts
  • Persisted on resume: 13 types (conversation, metadata, files, state, queue, compaction)
  • Dropped on resume: 4 types (AI title, summary, last prompt, misc transient)

All entries are JSON objects with these common fields:

{
"type": "<EntryType>",
"timestamp": "2026-04-17T14:00:00Z",
"id": "<uuid>"
}

Type-specific fields vary. Example TranscriptMessage:

{
"type": "TranscriptMessage",
"role": "user",
"content": "...",
"timestamp": "2026-04-17T14:00:00Z",
"id": "msg-abc123"
}

← Back to Sessions/README.md