The complete on-disk format of each harness’s session transcripts: every file a session writes, every record type and field, and how to rebuild the conversation from them. Where sessions live and how to resume, export or delete them is on the Transcripts page. Examples use placeholder values.
At a glance
| Question | Claude Code2.1.310 |
|---|---|
| Specification | Location documented; record format is internal and changes between versions |
| Transcript file | ~/.claude/projects/<project-key>/<session-id>.jsonl |
| Storage | JSON Lines, one record per line, append-only and uncompressed. Lines can be several megabytes when they carry base64 images. The final line may be cut off while the session is still writing. |
| Record type field | type, then subtype for system records and attachment.type for attachment records. Message content blocks are typed by message.content[].type. |
| Size | 185 record types, 15 content blocks |
Records by purpose
Claude Code 2.1.310
Location documented; record format is internal and changes between versions. JSON Lines, one record per line, append-only and uncompressed. Lines can be several megabytes when they carry base64 images. The final line may be cut off while the session is still writing.
Files
~/.claude/projects/<project-key>/ | Per-project directory. <project-key> = absolute cwd with every non-alphanumeric char replaced by '-' (long names truncated + hash). Overridable by CLAUDE_CONFIG_DIR and CLAUDE_CODE_PROJECT_DIR_NAME (2.1.234). |
|---|---|
~/.claude/projects/<project-key>/<session-id>.jsonl | Main session transcript: append-only JSONL, one record per line, conversation + metadata records. |
~/.claude/projects/<project-key>/<session-id>/subagents/agent-<agent-id>.jsonl | Subagent (Agent tool, forked skill, workflow agent) transcript. Same record format; isSidechain:true, agentId set, sessionId = parent session. It can also hold extra nested directories between subagents/ and the file. |
~/.claude/projects/<project-key>/<session-id>/subagents/agent-<agent-id>.meta.json | Subagent launch metadata: agentType, description, toolUseId (Agent tool_use id in the parent), spawnDepth, requestShape, requestNonInteractive, and optional isBuiltIn, launchedWithDefaults, finished, stoppedByUser, isFork, model, name, spawnedWithWorktree, worktreePath, worktreeBranch, worktreeCleanlyRemoved. |
~/.claude/projects/<project-key>/<session-id>/subagents/agent-<agent-id>.forked-skill.json | Forked-skill scoping record {skillName, attributionName} for a subagent spawned by a context:fork skill. |
~/.claude/projects/<project-key>/<session-id>/subagents/agent-<agent-id>.forked-skill.marker.json | Marker {forkedSkill:true, skillName}. |
~/.claude/projects/<project-key>/<session-id>/tool-results/<id>.txt | Full output of large tool results (Bash/PowerShell output files, large MCP results) moved out of the transcript; the transcript keeps a <persisted-output> preview and toolUseResult.persistedOutputPath/persistedOutputSize. <id> is a 9-char task/output id or a toolu_ id. |
~/.claude/projects/<project-key>/<session-id>/remote-agents/remote-agent-<id>.meta.json | Metadata for remote (cloud) agents launched from the session. |
~/.claude/projects/<project-key>/<session-id>.ccr-tip.json | .precompact.json | .dir-sync.json | Project-level sibling files reserved per session by the storage layer (cloud-resume tip, pre-compaction copy, cloud session dir-sync record). |
~/.claude/projects/<project-key>/sessions-index.json | Legacy per-project session index {version, originalPath, entries[{sessionId, fullPath, fileMtime, firstPrompt, summary, messageCount, created, modified, gitBranch, projectPath, isSidechain}]}. No longer written by current versions. |
~/.claude/projects/<project-key>/memory/ | Auto-memory markdown files for the project (not per session). |
~/.claude/file-history/<session-id>/<16-hex>@v<n> | Checkpoint backups of edited files, named by path hash + version; referenced by file-history-snapshot/delta backupFileName. Used by /rewind. |
~/.claude/history.jsonl | Global prompt history (up-arrow / Ctrl+R): one line per submitted prompt {display, pastedContents{<id>:{id,type,content|contentHash}}, project, sessionId, timestamp(ms)}. Large pastes store contentHash referencing ~/.claude/paste-cache/<hash>.txt. |
~/.claude/paste-cache/<hash>.txt | Pasted text bodies referenced from history.jsonl pastedContents[].contentHash. |
~/.claude/sessions/<pid>.json | Live-process registry for running sessions {pid, sessionId, cwd, startedAt, version, entrypoint, kind, name, status, ...} (+ <pid>.<hex>.key). Not a transcript. |
~/.claude/session-env/<session-id>/ | Per-session environment scripts captured from SessionStart hooks (e.g. sessionstart-hook-<n>.sh). |
~/.claude/shell-snapshots/, ~/.claude/debug/, ~/.claude/todos|tasks/, ~/.claude/backups/ | Shell snapshots, debug logs and task state swept by cleanupPeriodDays; not part of the transcript format. |
Fields on every record
Record type is chosen by type, then subtype for system records and attachment.type for attachment records. Message content blocks are typed by message.content[].type..
| Field | Type | Meaning |
|---|---|---|
type | string | Record discriminator. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
uuid | string | Unique id of this transcript node (UUID v4). Target of parentUuid links. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
parentUuid | string|null | uuid of the preceding node in the conversation DAG; null for a chain root (first entry, compact boundary, subagent first entry). Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
logicalParentUuidoptional | string | On compact_boundary: the uuid of the last pre-compaction node, preserving logical continuity while parentUuid is null. Only on system/compact_boundary. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
isSidechain | boolean | true for entries belonging to a subagent (all lines in subagents/agent-*.jsonl); false in the main transcript. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
session_idoptional | string | Duplicate snake_case session id stamped on some records (Values include on assistant/user/attachment/stop_hook_summary). Same value as sessionId. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
timestamp | string | ISO-8601 UTC write time. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
version | string | Claude Code version string that wrote the entry (semver). Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
cwd | string | Working directory at the time the entry was written (private; absolute path). Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
gitBranchoptional | string | Git branch of cwd when written ('' or 'HEAD' outside a branch). Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
userType | string | Account class; 'external' for public users ('ant' is internal). Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
entrypointoptional | string | How Claude Code was launched (cli, or sdk/desktop/remote entrypoints).. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
slugoptional | string | Human-readable session slug (three-word style). Present on a subset of entries. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
agentIdoptional | string | Subagent id (17 hex chars) on entries written by/for a subagent; matches the agent-<agentId>.jsonl filename. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
isMetaoptional | boolean | true for system-injected entries not typed by the user (caveats, reminders, hook output, notices). Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
promptIdoptional | string | Id grouping all entries produced in response to one user prompt. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
requestIdoptional | string | Anthropic API request id ('req_...') of the response this assistant line came from. Applies to conversation records (user, assistant, system, attachment, legacy progress); metadata records carry only type + their own fields + usually sessionId. |
Records (185)
user
A user-role message: a typed prompt, a slash-command expansion, injected meta text, or (most often) one tool_result answering a tool_use.
Written on prompt submit; after every tool execution (one line per tool_result); for meta/caveat injections and compaction summaries.
| Field | Type | Meaning |
|---|---|---|
agentIdoptional | string | Subagent id (17 hex chars) on entries written by/for a subagent; matches the agent-<agentId>.jsonl filename. |
cwd | string | Working directory at the time the entry was written (private; absolute path). |
entrypoint | string | How Claude Code was launched (cli, or sdk/desktop/remote entrypoints). |
gitBranch | string | Git branch of cwd when written ('' or 'HEAD' outside a branch). |
imagePasteIdsoptional | array | Ids of pasted images referenced by the prompt (history pastedContents ids).since 2.1.302 |
imagePasteIds[]optional | number | Ids of pasted images referenced by the prompt (history pastedContents ids).since 2.1.302 |
interruptedMessageIdoptional | string | message.id of an assistant response that was interrupted by this user entry. |
isCompactSummaryoptional | boolean | true on the user entry that carries the compaction summary text. |
isMetaoptional | boolean | true for system-injected entries not typed by the user (caveats, reminders, hook output, notices). |
isSidechain | boolean | true for entries belonging to a subagent (all lines in subagents/agent-*.jsonl); false in the main transcript. |
isVisibleInTranscriptOnlyoptional | boolean | true when the entry is shown in the transcript view but not sent to the model as-is (compact summary). |
mcpMetaoptional | object | MCP tool-result metadata: {_meta?, structuredContent?} copied from the MCP CallToolResult. |
mcpMeta._metaoptional | object | — |
mcpMeta.structuredContentoptional | object | — |
message | object | Anthropic Messages API message object (role + content + for assistant: id/model/usage/stop fields). |
message.content | string|array | String (plain prompt or command output) or array of content blocks; see contentBlocks. |
message.role | string | Message role. Values include: user. |
originoptional | object | Provenance of a non-typed or queued prompt: {kind, name?, from?, body?, producer?, runId?, senderTaskId?, handback?, handbackReportText?}. |
origin.bodyoptional | string | — |
origin.fromoptional | string | — |
origin.handbackoptional | boolean | — |
origin.handbackReportTextoptional | string | —since 2.1.300 |
origin.kindoptional | string | Values include: human, peer, task-notification, coordinator. |
origin.nameoptional | string | —since 2.1.288 |
origin.produceroptional | string | Values include: session-task. |
origin.runIdoptional | string | —since 2.1.293 |
origin.senderTaskIdoptional | string | — |
parentUuid | string|null | uuid of the preceding node in the conversation DAG; null for a chain root (first entry, compact boundary, subagent first entry). |
permissionDecisionoptional | object | Permission decision for the tool call answered by this tool_result: {decision accept|reject, source, reasonType, reasonCode?, ruleSource?, grantScope?, classifierCategory?}.since 2.1.293 |
permissionDecision.classifierCategoryoptional | string | —since 2.1.309 |
permissionDecision.decisionoptional | string | Values include: accept, reject.since 2.1.293 |
permissionDecision.grantScopeoptional | string | Values include: once.since 2.1.307 |
permissionDecision.reasonCodeoptional | string | —since 2.1.307 |
permissionDecision.reasonTypeoptional | string | Values include: classifier, mode, other, rule, subcommandResults, safetyCheck.since 2.1.293 |
permissionDecision.ruleSourceoptional | string | Values include: localSettings.since 2.1.307 |
permissionDecision.sourceoptional | string | Values include: config, user_temporary, user_reject.since 2.1.293 |
permissionModeoptional | string | Permission mode in force when the prompt was submitted (default/acceptEdits/plan/auto/bypassPermissions...). Values include: auto. |
promptIdoptional | string | Id grouping all entries produced in response to one user prompt. |
promptSourceoptional | string | How the prompt arrived (typed, queued, system...). Values include: typed, system, queued. |
queueSkipAttachmentsoptional | boolean | Queued prompt delivered without re-running attachment collection. |
queueSkipSlashCommandsoptional | boolean | Queued prompt delivered without slash-command expansion.since 2.1.300 |
queueTranscriptOnlyoptional | boolean | Queued prompt recorded in the transcript only.since 2.1.296 |
repeatsCompactSummaryoptional | boolean | Entry repeats an earlier compact summary.since 2.1.296 |
sandboxedoptional | boolean | Whether the tool call ran under the OS sandbox.since 2.1.307 |
serverClassifierContextoptional | object | Auto-mode safety-classifier context sent with the request: {request, context:{git_state, live_cwd, platform}}. |
serverClassifierContext.contextoptional | object | — |
serverClassifierContext.context.git_stateoptional | object | — |
serverClassifierContext.context.live_cwdoptional | string | — |
serverClassifierContext.context.platformoptional | string | — |
serverClassifierContext.requestoptional | string | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
session_idoptional | string | Duplicate snake_case session id stamped on some records (Values include on assistant/user/attachment/stop_hook_summary). Same value as sessionId. |
slugoptional | string | Human-readable session slug (three-word style). Present on a subset of entries. |
sourceToolAssistantUUIDoptional | string | uuid of the assistant line containing the tool_use this tool_result answers. |
sourceToolUseIDoptional | string | tool_use id that caused this entry (e.g. skill/command expansion). |
summarizedTurnPromptUuidsoptional | array | Prompt uuids folded into a summarize-from-here (/rewind summarize) entry.since 2.1.305 |
summarizedTurnPromptUuids[]optional | string | Prompt uuids folded into a summarize-from-here (/rewind summarize) entry.since 2.1.305 |
timestamp | string | ISO-8601 UTC write time. |
toolDenialKindoptional | string | Why a tool call was denied (user-rejected, automode-blocked, permission-rule, automode-unavailable...). Values include: user-rejected, automode-blocked, permission-rule, automode-unavailable. |
toolEndsTurnoptional | boolean | The tool result ends the turn (e.g. handback).since 2.1.288 |
turnCompanionoptional | boolean | Entry accompanies a turn without being a turn itself. |
turnOriginoptional | string | Origin of the turn (human, peer, task_notification...). Values include: human, peer, task_notification. |
turnPositionoptional | object | {promptIndex, turnIndex} position of a human turn. |
turnPosition.promptIndexoptional | number | — |
turnPosition.turnIndexoptional | number | — |
userFeedbackoptional | string | Free-text feedback attached to a rejection.since 2.1.296 |
userType | string | Account class; 'external' for public users ('ant' is internal). Values include: external. |
uuid | string | Unique id of this transcript node (UUID v4). Target of parentUuid links. |
version | string | Claude Code version string that wrote the entry (semver). |
mcpCallNotReadOnlyoptional | enum(declared|no_hint) | 2.1.325 implementation supplement: Successful MCP tool result whose tool is not explicitly read-only: declared for readOnlyHint:false, no_hint for an absent hint. Omitted for non-MCP, read-only or error results. This is not an approval verdict. Verified in this build; introduction version not established. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"user","promptId":"33333333-3333-4333-8333-333333333333","message":{"role":"user","content":"Add a README section on setup."},"permissionMode":"default","promptSource":"typed","turnOrigin":"human"}Tool-result user lines carry message.content=[{type:tool_result,...}], plus toolUseResult and sourceToolAssistantUUID.
message.content is a plain string for typed prompts and command output and an array otherwise.
Fields omitted at depth >2 under mcpMeta.structuredContent are MCP-server-specific and pass through unchanged.
Other user fields that can appear include replacesSpan, forkedFrom {sessionId,messageUuid}, sessionKind, isVirtual, virtualInResumeRun, resumedFromIncompleteThinking (assistant).
Four-field source supplement at installed 2.1.325; other fields retain the historical full-survey boundary. Definitions are constructor-derived, not a publisher-exported JSON Schema.
assistant
One content block of a model response. A streamed response with N content blocks is written as N lines that share message.id and requestId.
Written as each content block of an API response completes (thinking, text, tool_use).
| Field | Type | Meaning |
|---|---|---|
advisorModeloptional | string | Advisor (server-side advisor tool) model id configured for this response. |
agentIdoptional | string | Subagent id (17 hex chars) on entries written by/for a subagent; matches the agent-<agentId>.jsonl filename. |
apiBlockIndexoptional | number | Index of this line's content block within the streamed API response (0-based). |
attributionAgentoptional | string | Agent type attribution for the response (for subagents). |
attributionMcpServeroptional | string | MCP server attribution for the response. |
attributionMcpTooloptional | string | MCP tool attribution. |
attributionPluginoptional | string | Plugin attribution.since 2.1.310 |
attributionSkilloptional | string | Skill attribution. |
cwd | string | Working directory at the time the entry was written (private; absolute path). |
effortoptional | string | Effort level of the request (low/medium/high/xhigh/max). Values include: medium. |
entrypoint | string | How Claude Code was launched (cli, or sdk/desktop/remote entrypoints). |
erroroptional | string | API error class on a synthetic error assistant message (server_error, authentication_failed, rate_limit...). Values include: server_error, authentication_failed. |
gitBranch | string | Git branch of cwd when written ('' or 'HEAD' outside a branch). |
isApiErrorMessageoptional | boolean | true on a synthetic assistant message that reports an API error. |
isSidechain | boolean | true for entries belonging to a subagent (all lines in subagents/agent-*.jsonl); false in the main transcript. |
message | object | Anthropic Messages API message object (role + content + for assistant: id/model/usage/stop fields). |
message.container | null | API container field (null). |
message.content | array | String (plain prompt or command output) or array of content blocks; see contentBlocks. |
message.context_management | null | API context-management response field (null when no edits applied). |
message.diagnostics | null|object | API diagnostics; cache_miss_reason {type, cache_missed_input_tokens} when the prompt cache missed. |
message.diagnostics.cache_miss_reasonoptional | object | — |
message.diagnostics.cache_miss_reason.cache_missed_input_tokensoptional | number | — |
message.diagnostics.cache_miss_reason.typeoptional | string | Record discriminator. Values include: tools_changed, previous_message_not_found, unavailable, messages_changed. |
message.id | string | API message id ('msg_...'). Shared by every line split from one streamed response. |
message.input_transformationsoptional | array | Client-side transformations applied to the request input, e.g. {type:thinking_dropped, reason:prefix_binding_mismatch, path}. |
message.input_transformations[]optional | object | — |
message.input_transformations[].pathoptional | string | — |
message.input_transformations[].reasonoptional | string | Values include: prefix_binding_mismatch. |
message.input_transformations[].typeoptional | string | Record discriminator. Values include: thinking_dropped. |
message.model | string | Model id that produced the response. Values include: claude-opus-5-5, claude-sonnet-5-5. |
message.role | string | Message role. Values include: assistant. |
message.stop_details | null | API stop details object or null. |
message.stop_reason | string|null | API stop reason (tool_use, end_turn, stop_sequence, max_tokens, refusal...). null in some subagent transcripts before 2.1.307 (placeholder bug). Values include: tool_use, end_turn, stop_sequence. |
message.stop_sequence | null|string | Matched stop sequence or null. |
message.type | string | Always 'message'. Values include: message. |
message.usage | object | Token usage for the whole API response (repeated identically on every split line). |
message.usage.cache_creation | object | — |
message.usage.cache_creation.ephemeral_1h_input_tokens | number | — |
message.usage.cache_creation.ephemeral_5m_input_tokens | number | — |
message.usage.cache_creation_input_tokens | number | — |
message.usage.cache_read_input_tokens | number | — |
message.usage.fallback_creditoptional | null | —since 2.1.285 |
message.usage.inference_geo | string|null | Values include: global, not_available. |
message.usage.input_tokens | number | — |
message.usage.iterationsoptional | array|null | — |
message.usage.iterations[]optional | object | — |
message.usage.output_tokens | number | — |
message.usage.output_tokens_detailsoptional | object|null | — |
message.usage.output_tokens_details.thinking_tokensoptional | number | — |
message.usage.server_tool_useoptional | object | — |
message.usage.server_tool_use.web_fetch_requestsoptional | number | — |
message.usage.server_tool_use.web_search_requestsoptional | number | — |
message.usage.service_tier | string|null | Values include: standard. |
message.usage.speedoptional | string|null | Values include: standard. |
parentUuid | string|null | uuid of the preceding node in the conversation DAG; null for a chain root (first entry, compact boundary, subagent first entry). |
perTurnEffortoptional | string | Effort level chosen for this turn. Values include: medium. |
requestIdoptional | string | Anthropic API request id ('req_...') of the response this assistant line came from. |
requestRefoptional | string | id of the api-request record that produced this response (since 2.1.300).since 2.1.300 |
requestedModeloptional | string | Model requested before any fallback/alias resolution.since 2.1.295 |
serverClassifierRequestoptional | string | Opaque classifier request reference on assistant lines. |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
session_idoptional | string | Duplicate snake_case session id stamped on some records (Values include on assistant/user/attachment/stop_hook_summary). Same value as sessionId. |
slugoptional | string | Human-readable session slug (three-word style). Present on a subset of entries. |
thinkingDisplayoptional | string | Thinking display mode ('updates' = thinking text summarised/omitted, signature kept). Values include: updates.since 2.1.296 |
thinkingDurationMsoptional | number | Wall time spent in thinking for this response.since 2.1.287 |
timestamp | string | ISO-8601 UTC write time. |
truncatedAfterOutputoptional | boolean | Response truncated after output was produced.since 2.1.302 |
userType | string | Account class; 'external' for public users ('ant' is internal). Values include: external. |
uuid | string | Unique id of this transcript node (UUID v4). Target of parentUuid links. |
version | string | Claude Code version string that wrote the entry (semver). |
wireIngestContextoptional | object | Map tool_use id -> {cwd} context captured when the tool input was ingested. |
wireIngestContext.<dynamic-key>optional | object | — |
wireIngestContext.<dynamic-key>.cwdoptional | string | Working directory at the time the entry was written (private; absolute path). |
wireToolInputsoptional | object | Map tool_use id -> the exact input object as sent on the wire, when it differs from message.content tool_use input (normalised/echoed inputs). |
madeByoptional | enum(model|input|other) | 2.1.325 implementation supplement: Message provenance, not an author identity. The model setter writes model; input replay marks input; imported/plugin-supplied messages can be other. Missing provenance has compatibility behavior. Verified in this build; introduction version not established. |
promptCacheRequestedoptional | enum(off|5m|1h) | 2.1.325 implementation supplement: Requested prompt-cache mode derived from caching/TTL selection, not evidence that tokens were cached. Verified in this build; introduction version not established. |
toolInputStreamMsoptional | integer >= 1 | 2.1.325 implementation supplement: Rounded elapsed monotonic milliseconds from the tool-input stream start; omitted when unavailable or for batched tool-use handling. Verified in this build; introduction version not established. |
{"parentUuid":"22222222-2222-4222-8222-222222222222","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"44444444-4444-4444-8444-444444444444","type":"assistant","requestId":"req_011Example","message":{"id":"msg_01Example","type":"message","role":"assistant","model":"claude-opus-5-5","content":[{"type":"text","text":"Done."}],"stop_reason":"end_turn","stop_sequence":null,"usage":{"input_tokens":10,"output_tokens":5,"cache_creation_input_tokens":0,"cache_read_input_tokens":1200}}}A streamed response is split across lines that share message.id. Every split line holds exactly one content block, the same requestId, identical usage and the same stop_reason.
wireToolInputs keys and tool inputs are tool-specific; only top-level shape recorded here.
Synthetic API-error assistant messages have isApiErrorMessage=true, error=<class>, and a non-msg_ message.id.
Four-field source supplement at installed 2.1.325; other fields retain the historical full-survey boundary. Definitions are constructor-derived, not a publisher-exported JSON Schema.
system / turn_duration
Marks the end of a turn with its wall time and message count.
Written when the main loop finishes a turn.
| Field | Type | Meaning |
|---|---|---|
durationMs | number | — |
messageCount | number | — |
pendingBackgroundAgentCountoptional | number | — |
subtype | string | System-record sub-discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"turn_duration","durationMs":42000,"messageCount":12,"isMeta":false}Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
system / stop_hook_summary
Summary of Stop/SubagentStop hooks run at the end of a turn.
Written after Stop hooks execute.
| Field | Type | Meaning |
|---|---|---|
hasOutput | boolean | — |
hookAdditionalContext | array | — |
hookCount | number | — |
hookErrors | array | — |
hookInfos | array | — |
hookInfos[]optional | object | — |
hookInfos[].commandoptional | string | — |
hookInfos[].durationMsoptional | number | — |
level | string | Values include: suggestion. |
preventedContinuation | boolean | — |
stopReason | string | — |
subtype | string | System-record sub-discriminator. |
toolUseID | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"stop_hook_summary","hookCount":1,"hookInfos":[{"command":"echo ok","durationMs":12}],"hookErrors":[],"preventedContinuation":false,"stopReason":"","hasOutput":false,"level":"suggestion","toolUseID":"55555555-5555-4555-8555-555555555555"}Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
system / away_summary
A recap ('while you were away') summarising recent work, shown when the user returns.
Written after idle periods / background completion.
| Field | Type | Meaning |
|---|---|---|
content | string | — |
subtype | string | System-record sub-discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"away_summary","content":"Example notice","isMeta":false,"level":"info"}Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
system / compact_boundary
Compaction marker: everything before it is replaced by the following isCompactSummary user entry for model context.
Written on /compact or auto-compact.
| Field | Type | Meaning |
|---|---|---|
compactMetadata | object | — |
compactMetadata.cumulativeDroppedTokens | number | — |
compactMetadata.durationMs | number | — |
compactMetadata.postTokens | number | — |
compactMetadata.preCompactArtifactReadVersionsoptional | array | —since 2.1.296 |
compactMetadata.preCompactDiscoveredToolsoptional | array | — |
compactMetadata.preTokens | number | — |
compactMetadata.preservedMessages | object | — |
compactMetadata.preservedMessages.allUuids | array | — |
compactMetadata.preservedMessages.anchorUuid | string | — |
compactMetadata.preservedMessages.uuids | array | — |
compactMetadata.preservedSegment | object | — |
compactMetadata.preservedSegment.anchorUuid | string | — |
compactMetadata.preservedSegment.headUuid | string | — |
compactMetadata.preservedSegment.tailUuid | string | — |
compactMetadata.trigger | string | Values include: auto, manual. |
content | string | — |
level | string | Values include: info. |
logicalParentUuid | string | On compact_boundary: the uuid of the last pre-compaction node, preserving logical continuity while parentUuid is null. |
subtype | string | System-record sub-discriminator. |
{"parentUuid":null,"isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"compact_boundary","logicalParentUuid":"99999999-9999-4999-8999-999999999999","content":"Conversation compacted","level":"info","compactMetadata":{"trigger":"auto","preTokens":180000,"postTokens":22000,"durationMs":30000}}Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
system / local_command
Output/record of a local slash command (e.g. /model, /cost).
Written when a local command runs.
| Field | Type | Meaning |
|---|---|---|
commandRunoptional | object | — |
commandRun.argsoptional | string | — |
commandRun.commandoptional | string | — |
content | string | — |
level | string | Values include: info. |
subtype | string | System-record sub-discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"local_command","content":"Example notice","isMeta":false,"level":"info"}Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
system / informational
Informational notice line shown in the transcript.
Written on notices (e.g. instruction file not loaded).
| Field | Type | Meaning |
|---|---|---|
content | string | — |
level | string | Values include: notice. |
subtype | string | System-record sub-discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"informational","content":"Example notice","isMeta":false,"level":"info"}Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
system / api_error
System transcript message subtype 'api_error'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"api_error","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / microcompact_boundary
System transcript message subtype 'microcompact_boundary'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"microcompact_boundary","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / permission_retry
System transcript message subtype 'permission_retry'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"permission_retry","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / memory_saved
System transcript message subtype 'memory_saved'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"memory_saved","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / agents_killed
System transcript message subtype 'agents_killed'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"agents_killed","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / thinking
System transcript message subtype 'thinking'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"thinking","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / file_snapshot
System transcript message subtype 'file_snapshot'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"file_snapshot","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / bridge_status
System transcript message subtype 'bridge_status'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"bridge_status","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / scheduled_task_fire
System transcript message subtype 'scheduled_task_fire'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"scheduled_task_fire","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / read_divider
System transcript message subtype 'read_divider'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"read_divider","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / model_fallback
System transcript message subtype 'model_fallback'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"model_fallback","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / model_consent_fallback
System transcript message subtype 'model_consent_fallback'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"model_consent_fallback","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / model_refusal_fallback
System transcript message subtype 'model_refusal_fallback'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"model_refusal_fallback","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / model_refusal_no_fallback
System transcript message subtype 'model_refusal_no_fallback'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"model_refusal_no_fallback","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / rewind_stand_in
System transcript message subtype 'rewind_stand_in'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"rewind_stand_in","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
system / cloud_session_status
System transcript message subtype 'cloud_session_status'.
Stored only system messages with persist:false are dropped by the persistence filter aE()
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"system","subtype":"cloud_session_status","content":"...","level":"info","isMeta":false}Field set not established beyond the common system envelope (content, level, isMeta, uuid, parentUuid...).
attachment / agent_listing_delta
Delta of available subagent types announced to the model.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.addedLines | array | — |
attachment.addedTypes | array | — |
attachment.builtInPluginTypesoptional | array | —since 2.1.304 |
attachment.builtInTypesoptional | array | —since 2.1.285 |
attachment.isInitial | boolean | — |
attachment.removedTypes | array | — |
attachment.showConcurrencyNote | boolean | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"agent_listing_delta"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / auto_mode
Auto-mode (classifier permission mode) reminder/configuration.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.autoModeConsentFlow | boolean | — |
attachment.bashFirst | boolean | — |
attachment.bashFirstSteer | string | — |
attachment.bypass | boolean | — |
attachment.finishExposedWorkoptional | boolean | —since 2.1.307 |
attachment.steerOnly | boolean | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"auto_mode"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / command_permissions
Tools allowed by a slash command (allowedTools).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.allowedTools | array | — |
attachment.type | string | Record discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"command_permissions"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / compact_file_reference
Reference to a file that was read before compaction (re-read hint).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.displayPath | string | — |
attachment.filename | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.296 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"compact_file_reference"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / credential_org
Organization id of the credential in use.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.organizationUuid | string | — |
attachment.type | string | Record discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"credential_org"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / date
Today's date injected into context.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.date | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"date"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / deferred_tools_delta
Delta of deferred (search-loaded) tools, MCP failures and surfaced definitions.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.addedLines | array | — |
attachment.addedNames | array | — |
attachment.failedMcpServersoptional | array | — |
attachment.failedMcpServers[]optional | object | — |
attachment.pendingMcpServersoptional | array | — |
attachment.readdedNames | array | — |
attachment.removedNames | array | — |
attachment.surfacedDefinitionsoptional | array | — |
attachment.surfacedDefinitions[]optional | object | — |
attachment.surfacedNamesoptional | array | — |
attachment.type | string | Record discriminator. |
attachment.wireHiddenNames | array | — |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"deferred_tools_delta"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / deferred_tools_record
Record of deferred tool definitions loaded and verbatim tool-input copies.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.entries | array | — |
attachment.entries[]optional | object | — |
attachment.nameOnlyAnnouncementsoptional | array | — |
attachment.toolInputCopiesoptional | array | — |
attachment.toolInputCopies[]optional | object | — |
attachment.type | string | Record discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"deferred_tools_record"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / edited_text_file
Notice that a file the model read was edited externally, with a snippet.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.filename | string | — |
attachment.snippet | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"edited_text_file"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / environment
Environment snapshot (platform, shell, OS, working dir, git/worktree flags) and changes.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.changesoptional | array | — |
attachment.changes[]optional | object | — |
attachment.snapshot | object | — |
attachment.snapshot.additionalWorkingDirectories | array | — |
attachment.snapshot.isGitRepo | boolean | — |
attachment.snapshot.isWorktree | boolean | — |
attachment.snapshot.osVersion | string | — |
attachment.snapshot.platform | string | — |
attachment.snapshot.scratchpadDirectoryoptional | string | — |
attachment.snapshot.shell | string | — |
attachment.snapshot.workingDirectory | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"environment"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / file
@-mentioned file content attached to a prompt.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.content | object | — |
attachment.content.file | object | — |
attachment.content.type | string | Record discriminator. Values include: text. |
attachment.displayPath | string | — |
attachment.filename | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.296 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"file"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / hook_additional_context
additionalContext returned by a hook (e.g. SessionStart).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.content | array | — |
attachment.hookEvent | string | Values include: SessionStart. |
attachment.hookName | string | Values include: SessionStart. |
attachment.toolUseID | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_additional_context"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / hook_success
A hook ran successfully; command, exit code, stdout/stderr, duration.
Written collected before a model request (or by the triggering event) and persisted as its own line.
Stored only dropped when content, stdout and stderr are all empty
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.command | string | — |
attachment.content | string | — |
attachment.durationMs | number | — |
attachment.exitCode | number | — |
attachment.hookEvent | string | Values include: SessionStart. |
attachment.hookName | string | Values include: SessionStart:startup, SessionStart:clear, SessionStart:compact, SessionStart:resume. |
attachment.stderr | string | — |
attachment.stdout | string | — |
attachment.toolUseID | string | — |
attachment.type | string | Record discriminator. |
renderedoptional | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_success"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / instructions
CLAUDE.md / memory instruction files loaded (path, type User|Project|AutoMem, content).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.changedoptional | boolean | — |
attachment.files | array | — |
attachment.files[]optional | object | — |
attachment.reasonoptional | string | Values include: compaction, session_start. |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"instructions"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / invoked_skills
Skills invoked so far (re-attached after compaction).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.skills | array | — |
attachment.skills[]optional | object | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.296 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"invoked_skills"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / mcp_instructions_delta
Delta of MCP server instructions blocks.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.addedBlocks | array | — |
attachment.addedNames | array | — |
attachment.removedNames | array | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"mcp_instructions_delta"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / model
Model identity (modelId, marketingName, knowledgeCutoff).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.identity | object | — |
attachment.identity.knowledgeCutoff | string | — |
attachment.identity.marketingName | string | — |
attachment.identity.modelId | string | — |
attachment.text | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"model"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / nested_memory
Nested CLAUDE.md discovered under a directory touched by a tool.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.content | object | — |
attachment.content.content | string | — |
attachment.content.contentDiffersFromDisk | boolean | — |
attachment.content.path | string | — |
attachment.content.type | string | Record discriminator. Values include: Project. |
attachment.displayPath | string | — |
attachment.path | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRole | string | — |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"nested_memory"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / prompt_snapshot
Snapshot of the system prompt sections and tool list in force.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.cliPrefixoptional | string | — |
attachment.contextRendering | string | — |
attachment.echoWireToolInputs | boolean | — |
attachment.inlineToolsoptional | boolean | — |
attachment.keptRemindersoptional | boolean | — |
attachment.reminderFold | boolean | — |
attachment.systemPrompt | array | — |
attachment.systemTurnsoptional | boolean | — |
attachment.toolChangeHeaderoptional | boolean | — |
attachment.toolsoptional | array | — |
attachment.tools[]optional | object | — |
attachment.type | string | Record discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"prompt_snapshot"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / queued_command
A queued prompt or task notification delivered mid-turn.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.commandModeoptional | string | Values include: task-notification, prompt. |
attachment.delivery_idoptional | string | —since 2.1.287 |
attachment.humanTurnoptional | boolean | — |
attachment.isMetaoptional | boolean | true for system-injected entries not typed by the user (caveats, reminders, hook output, notices). |
attachment.originoptional | object | Provenance of a non-typed or queued prompt: {kind, name?, from?, body?, producer?, runId?, senderTaskId?, handback?, handbackReportText?}. |
attachment.origin.bodyoptional | string | — |
attachment.origin.fromoptional | string | — |
attachment.origin.handbackoptional | boolean | — |
attachment.origin.handbackReportTextoptional | string | —since 2.1.300 |
attachment.origin.kindoptional | string | Values include: task-notification, human, peer, coordinator. |
attachment.origin.nameoptional | string | —since 2.1.288 |
attachment.origin.produceroptional | string | Values include: session-task. |
attachment.origin.senderTaskIdoptional | string | — |
attachment.prompt | string | — |
attachment.reminderIdoptional | string | —since 2.1.288 |
attachment.runIdoptional | string | —since 2.1.293 |
attachment.source_uuid | string | — |
attachment.timestampoptional | string | ISO-8601 UTC write time. |
attachment.type | string | Record discriminator. |
attachment.usageoptional | object | — |
attachment.usage.durationMsoptional | number | — |
attachment.usage.toolUsesoptional | number | — |
attachment.usage.totalTokensoptional | number | — |
rendered | array | — |
renderedInHumanTurnoptional | array | — |
renderedInHumanTurn[]optional | object | — |
renderedInHumanTurn[].contentoptional | string | — |
renderedRoleoptional | string | —since 2.1.287 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"queued_command"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / read_truncation_notice
Notice that a Read result was truncated.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.banner | string | — |
attachment.toolUseID | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.295 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"read_truncation_notice"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / session_context
Session context (user email, git status) injected at start.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.context | object | — |
attachment.context.gitStatusoptional | string | — |
attachment.context.userEmail | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"session_context"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / silent_turn_reminder
Reminder injected after several silent tool-only turns.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.text | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"silent_turn_reminder"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / skill_listing
Listing of available skills (names, digests).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.content | string | — |
attachment.digestsoptional | array | —since 2.1.304 |
attachment.isInitial | boolean | — |
attachment.names | array | — |
attachment.skillCount | number | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"skill_listing"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / task_status
Status of a background task/monitor.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.deltaSummary | null | — |
attachment.description | string | — |
attachment.outputFilePath | string | — |
attachment.shell | object | — |
attachment.shell.command | string | — |
attachment.shell.kind | string | Values include: monitor. |
attachment.shell.toolUseId | string | — |
attachment.status | string | Values include: running. |
attachment.taskId | string | — |
attachment.taskType | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRole | string | — |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"task_status"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / thinking_drop
Diagnostic: thinking blocks dropped from the request due to prefix mismatch.
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.blockHashes | array | — |
attachment.clientChange | object | — |
attachment.clientChange.baseline | string | — |
attachment.clientChange.callNumber | number | — |
attachment.clientChange.firstChangedMessageIndex | number | — |
attachment.clientChange.kinds | string | — |
attachment.firstReportForThreadInProcess | boolean | — |
attachment.model | string | — |
attachment.newlyDropped | object | — |
attachment.newlyDropped.blockCount | number | — |
attachment.newlyDropped.first | object | — |
attachment.newlyDropped.last | object | — |
attachment.newlyDropped.reason | string | Values include: prefix_mismatch. |
attachment.newlyDropped.reasonCounts | object | — |
attachment.newlyDropped.turnCount | number | — |
attachment.querySource | string | — |
attachment.requestId | string | Anthropic API request id ('req_...') of the response this assistant line came from. |
attachment.thinkingBlocksSent | number | — |
attachment.thinkingTurnsSent | number | — |
attachment.type | string | Record discriminator. |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"thinking_drop"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / total_tokens_reminder
Context-budget reminder (tokens left).
Written collected before a model request (or by the triggering event) and persisted as its own line.
| Field | Type | Meaning |
|---|---|---|
attachment | object | — |
attachment.text | string | — |
attachment.type | string | Record discriminator. |
rendered | array | — |
renderedRoleoptional | string | —since 2.1.285 |
rendered[]optional | object | — |
rendered[].contentoptional | string | — |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"total_tokens_reminder"}}rendered[] holds the text actually sent to the model; renderedRole is its role.
Also carries the conversation envelope (see top-level envelope): uuid, parentUuid, isSidechain, sessionId, timestamp, version, cwd, gitBranch, userType, entrypoint, slug?, agentId? (subagent files), session_id? (some lines).
attachment / account_memory_recall
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"account_memory_recall"}}attachment / advisor_stripped
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"advisor_stripped"}}attachment / advisor_tool
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"advisor_tool"}}attachment / agent_mention
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"agent_mention"}}attachment / already_read_file
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"already_read_file"}}attachment / artifact_opening_prefetch
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"artifact_opening_prefetch"}}attachment / async_hook_response
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"async_hook_response"}}attachment / async_hook_response_batch
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"async_hook_response_batch"}}attachment / at_mention_reference
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"at_mention_reference"}}attachment / attention_budget
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"attention_budget"}}attachment / auto_mode_exit
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"auto_mode_exit"}}attachment / bash_output_audience_note
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"bash_output_audience_note"}}attachment / batching_reminder
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"batching_reminder"}}attachment / batching_reminder_sent
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"batching_reminder_sent"}}attachment / budget_usd
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"budget_usd"}}attachment / context_efficiency
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"context_efficiency"}}attachment / context_sections
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"context_sections"}}attachment / coordinator_context
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"coordinator_context"}}attachment / cowork_memory_context
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"cowork_memory_context"}}attachment / critical_system_reminder
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"critical_system_reminder"}}attachment / date_change
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"date_change"}}attachment / diagnostics
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"diagnostics"}}attachment / directory
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"directory"}}attachment / dir_sync_notice
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"dir_sync_notice"}}attachment / dynamic_skill
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"dynamic_skill"}}attachment / edited_image_file
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"edited_image_file"}}attachment / elapsed_time_reminder
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"elapsed_time_reminder"}}attachment / fork_briefing
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"fork_briefing"}}attachment / goal_status
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"goal_status"}}attachment / goals
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"goals"}}attachment / hook_blocking_error
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_blocking_error"}}attachment / hook_cancelled
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_cancelled"}}attachment / hook_deferred_tool
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_deferred_tool"}}attachment / hook_error_during_execution
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_error_during_execution"}}attachment / hook_non_blocking_error
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_non_blocking_error"}}attachment / hook_permission_decision
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_permission_decision"}}attachment / hook_plugin_listing
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_plugin_listing"}}attachment / hook_stopped_continuation
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_stopped_continuation"}}attachment / hook_system_message
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"hook_system_message"}}attachment / inlined_image_paths
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"inlined_image_paths"}}attachment / language
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"language"}}attachment / max_turns_reached
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"max_turns_reached"}}attachment / mcp_dropped_tools_delta
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"mcp_dropped_tools_delta"}}attachment / mcp_resource
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"mcp_resource"}}attachment / memory_update
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"memory_update"}}attachment / opened_file_in_ide
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"opened_file_in_ide"}}attachment / output_limit_note
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"output_limit_note"}}attachment / output_style
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"output_style"}}attachment / output_style_instructions
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"output_style_instructions"}}attachment / output_token_usage
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"output_token_usage"}}attachment / pdf_reference
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"pdf_reference"}}attachment / peer_mention
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"peer_mention"}}attachment / plan_file_reference
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"plan_file_reference"}}attachment / plan_mode
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"plan_mode"}}attachment / plan_mode_exit
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"plan_mode_exit"}}attachment / plan_mode_reentry
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"plan_mode_reentry"}}attachment / poll_events
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"poll_events"}}attachment / prefix_delta
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"prefix_delta"}}attachment / proactivity
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"proactivity"}}attachment / project_doc_reads
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"project_doc_reads"}}attachment / projects_thread_ask
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"projects_thread_ask"}}attachment / prompt_render_point
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"prompt_render_point"}}attachment / relevant_memories
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"relevant_memories"}}attachment / remote_session_change
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"remote_session_change"}}attachment / sandbox_instructions
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"sandbox_instructions"}}attachment / secondary_reminder
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"secondary_reminder"}}attachment / secondary_reminder_sent
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"secondary_reminder_sent"}}attachment / selected_lines_in_diff
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"selected_lines_in_diff"}}attachment / selected_lines_in_ide
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"selected_lines_in_ide"}}attachment / session_cron_carry
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"session_cron_carry"}}attachment / session_settings
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"session_settings"}}attachment / skill_mention
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"skill_mention"}}attachment / structured_output
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"structured_output"}}attachment / task_reminder
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"task_reminder"}}attachment / team_context
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"team_context"}}attachment / teammate_mailbox
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"teammate_mailbox"}}attachment / teammate_shutdown_batch
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"teammate_shutdown_batch"}}attachment / thinking_stripped
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"thinking_stripped"}}attachment / thread_state
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"thread_state"}}attachment / todo_reminder
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"todo_reminder"}}attachment / token_usage
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"token_usage"}}attachment / tool_host_result_lines
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"tool_host_result_lines"}}attachment / tool_hosts_correction
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"tool_hosts_correction"}}attachment / tool_hosts_notice
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"tool_hosts_notice"}}attachment / tool_search_usage_reminder
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"tool_search_usage_reminder"}}attachment / ultra_effort_enter
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"ultra_effort_enter"}}attachment / ultra_effort_exit
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"ultra_effort_exit"}}attachment / ultrathink_effort
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"ultrathink_effort"}}attachment / unknown_command_fallback
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"unknown_command_fallback"}}attachment / withheld_memory
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"withheld_memory"}}attachment / workflow_keyword_request
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"workflow_keyword_request"}}attachment / workflow_size_guideline_change
Its fields are not established for this version.
Stored only subject to persistence filter aE(); some types are rendered-only or ant-only
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"attachment","attachment":{"type":"workflow_size_guideline_change"}}progressuntil not written by 2.1.310 (exact removal version not established)
Legacy streaming progress line for a running tool/hook/agent (data.type bash_progress, mcp_progress, agent_progress, hook_progress, tool_heartbeat, ...).
Written historically written while tools ran. In 2.1.310 the persistence filter aE() returns false for every progress entry, so new files do not contain them.
Stored never-on-disk (2.1.310: filtered at write); legacy files may contain them
| Field | Type | Meaning |
|---|---|---|
data | object | Progress payload discriminated by data.type. |
toolUseIDoptional | string | tool_use id the progress belongs to. |
parentToolUseIDoptional | string | Parent tool_use id (for nested agent progress). |
{"parentUuid":"11111111-1111-4111-8111-111111111111","isSidechain":false,"userType":"external","cwd":"/workspace/project","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","version":"2.1.310","gitBranch":"main","entrypoint":"cli","timestamp":"2026-10-20T10:00:00.000Z","uuid":"22222222-2222-4222-8222-222222222222","type":"progress","toolUseID":"toolu_01Example","parentToolUseID":"toolu_01Example","data":{"type":"bash_progress","output":"...","elapsedTimeSeconds":3}}Loader still reads legacy progress lines: it records their parentUuid and re-parents any child whose parentUuid points at a progress uuid onto the progress line's own parent (progress lines are skipped, not kept in the chain).
Known data.type values: bash_progress, powershell_progress, mcp_progress, tool_heartbeat, agent_api_retry, artifact_publish_retry, agent_progress, hook_progress, skill_progress, search_results_received, workflow_agent, workflow_log.
ai-title
AI-generated session title.
Written when a title is generated; re-appended to the file tail repeatedly (see gotchas).
| Field | Type | Meaning |
|---|---|---|
aiTitle | string | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
{"type":"ai-title","aiTitle":"Setup docs update","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}No timestamp/version/uuid. Repeated many times per file. Last one wins.
last-prompt
Leaf pointer: which node is the current conversation tip (leafUuid) and the last prompt text.
Written after each turn and on rewind; re-appended to the tail.
| Field | Type | Meaning |
|---|---|---|
explicitoptional | boolean | — |
lastPromptoptional | string | — |
leafUuid | string | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
{"type":"last-prompt","lastPrompt":"Add a README section","leafUuid":"44444444-4444-4444-8444-444444444444","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}explicit:true marks a user-chosen leaf (e.g. /rewind); rewound:true marks a rewind; leafUuid:null + explicit:true withdraws the leaf (fresh start after /clear-style reset).
mode
Session mode (normal / other UI modes). Last wins.
Written re-appended with session metadata.
| Field | Type | Meaning |
|---|---|---|
mode | string | Values include: normal. |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
{"type":"mode","mode":"normal","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}permission-mode
Current permission mode. Last wins.
Written when the mode changes; re-appended with metadata.
| Field | Type | Meaning |
|---|---|---|
permissionMode | string | Permission mode in force when the prompt was submitted (default/acceptEdits/plan/auto/bypassPermissions...). Values include: auto. |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
{"type":"permission-mode","permissionMode":"default","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}atis-latch
Opaque printable-ASCII latch value for the session (internal feature latch).
Written re-appended with metadata.
| Field | Type | Meaning |
|---|---|---|
atis | string | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
{"type":"atis-latch","atis":"x1","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}Loader accepts only /^[\x21-\x7e]*$/ values.
cost-state
Cumulative session cost and per-model token totals; restores /cost on resume.
Written periodically and on exit.
| Field | Type | Meaning |
|---|---|---|
sessionId | string | Session id. |
totalCostUSD | number | Estimated cumulative USD cost. |
totalAPIDuration | number | ms spent in API calls incl. retries. |
totalAPIDurationWithoutRetries | number | ms in API calls excluding retries. |
totalToolDuration | number | ms spent executing tools. |
totalLinesAdded | number | Lines added by edits. |
totalLinesRemoved | number | Lines removed. |
totalDuration | number | Session wall ms. |
startTime | number | Epoch ms of session start. |
modelUsage.<model> | object | {inputTokens, outputTokens, thinkingTokens?, cacheReadInputTokens, cacheCreationInputTokens, webSearchRequests, costUSD} per model id. |
hasUnknownModelCostoptional | boolean | A model without a price table was used. |
modelCallCostUSDoptional | number | Nonnegative finite amount <= 1e9 when retained; invalid input normalizes to undefined under the actual runtime validator (2.1.325 supplement). |
{"type":"cost-state","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","totalCostUSD":1.23,"totalAPIDuration":60000,"totalAPIDurationWithoutRetries":59000,"totalToolDuration":20000,"totalLinesAdded":10,"totalLinesRemoved":2,"totalDuration":300000,"startTime":1760000000000,"modelUsage":{"claude-opus-5-5":{"inputTokens":100,"outputTokens":50,"thinkingTokens":10,"cacheReadInputTokens":9000,"cacheCreationInputTokens":500,"webSearchRequests":0,"costUSD":1.23}},"hasUnknownModelCost":false}modelUsage is keyed by model id (dynamic keys). Zod-validated on load (Wnn): numbers nonnegative/finite; totalCostUSD <= 1e9.
2.1.325 actual runtime validator recovered and evaluated in isolation: totalCostUSD <= 1e9, other numeric totals <= 1e15, all nonnegative finite. Four aggregate model token buckets each cap at 1e15. Unknown object keys are stripped; invalid optional modelCallCostUSD is dropped. The structural JSON Schema carries normalization/refinement extensions.
pr-link
Links the session to a pull request.
Written when Claude Code detects/creates a PR for the session.
| Field | Type | Meaning |
|---|---|---|
prNumber | number | — |
prRepository | string | — |
prUrl | string | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
timestamp | string | ISO-8601 UTC write time. |
{"type":"pr-link","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","prNumber":42,"prUrl":"https://github.com/example/repo/pull/42","prRepository":"example/repo","timestamp":"2026-10-20T10:00:00.000Z"}queue-operation
Prompt-queue journal: a prompt was enqueued, dequeued or removed while Claude was busy.
Written on queue changes.
| Field | Type | Meaning |
|---|---|---|
commandUuidoptional | string | — |
contentoptional | string | — |
deliveryIdoptional | string | — |
operation | string | Values include: enqueue, dequeue, remove. |
reasonoptional | string | Values include: absorbed_mid_turn, delivered_to_agent. |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
timestamp | string | ISO-8601 UTC write time. |
{"type":"queue-operation","operation":"enqueue","timestamp":"2026-10-20T10:00:00.000Z","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","content":"also update the tests"}operation ∈ enqueue|dequeue|remove; Claude Code also passes popAll/clear-style ops through the same writer. content is the queued prompt text.
file-history-snapshot
Checkpoint of tracked files for /rewind, keyed to a user message.
Written at each user prompt (initial) and when tracked files change (isSnapshotUpdate:true).
| Field | Type | Meaning |
|---|---|---|
isSnapshotUpdate | boolean | — |
messageId | string | — |
snapshot | object | — |
snapshot.messageId | string | — |
snapshot.timestamp | string | ISO-8601 UTC write time. |
snapshot.trackedFileBackups | object | — |
snapshot.trackedFileBackups.<dynamic-key> | object | — |
{"type":"file-history-snapshot","messageId":"22222222-2222-4222-8222-222222222222","snapshot":{"messageId":"22222222-2222-4222-8222-222222222222","trackedFileBackups":{"src/app.ts":{"backupFileName":"0123456789abcdef@v2","version":2,"backupTime":"2026-10-20T10:00:00.000Z","realParentDir":"/workspace/project/src"}},"timestamp":"2026-10-20T10:00:00.000Z"},"isSnapshotUpdate":false}trackedFileBackups keys are file paths (dynamic). backupFileName null means the file did not exist at that version.
backupFileName names a file in ~/.claude/file-history/<sessionId>/ (names match /^[0-9a-f]{16}@v\d+$/). Names can also be a 48-hex suffix.
file-history-delta
Incremental file-history backup for one tracked path, attached to an existing snapshot (smaller than re-writing the snapshot).
Written when a tracked file is backed up after the snapshot was written.
| Field | Type | Meaning |
|---|---|---|
backup | object | — |
backup.backupFileName | null|string | — |
backup.backupTime | string | — |
backup.realParentDir | string | — |
backup.version | number | Claude Code version string that wrote the entry (semver). |
messageId | string | — |
snapshotMessageId | string | — |
timestamp | string | ISO-8601 UTC write time. |
trackingPath | string | — |
{"type":"file-history-delta","messageId":"22222222-2222-4222-8222-222222222222","snapshotMessageId":"22222222-2222-4222-8222-222222222222","trackingPath":"src/app.ts","backup":{"backupFileName":"0123456789abcdef@v3","version":3,"backupTime":"2026-10-20T10:00:00.000Z","realParentDir":"/workspace/project/src"},"timestamp":"2026-10-20T10:00:00.000Z"}Loader groups deltas by messageId and applies them on top of the snapshot with the same messageId. Probably introduced with 2.1.208 file-history pruning (not established).
api-requestsince 2.1.300
Request-replay record: parameters of one API request, with messages expressed as content-addressed blob hashes (base + keep + tail).
Written before each main-thread or subagent API call (since 2.1.300).
| Field | Type | Meaning |
|---|---|---|
agentIdoptional | string | Subagent id (17 hex chars) on entries written by/for a subagent; matches the agent-<agentId>.jsonl filename. |
baseoptional | string | — |
cacheControl | array | — |
cacheControl[]optional | object | — |
cacheControl[].pathoptional | array | — |
cacheControl[].valueoptional | object | — |
id | string | — |
keep | number | — |
params | object | — |
params.betas | array | — |
params.context_management | object | — |
params.context_management.edits | array | — |
params.max_tokens | number | — |
params.model | string | Values include: claude-opus-5-5, claude-sonnet-5-5. |
params.output_config | object | — |
params.output_config.effort | string | Effort level of the request (low/medium/high/xhigh/max). Values include: medium. |
params.safeguardsoptional | array | — |
params.safeguards[]optional | object | — |
params.thinking | object | — |
params.thinking.display | string | Values include: updates. |
params.thinking.type | string | Record discriminator. Values include: adaptive. |
querySource | string | Values include: repl_main_thread, agent:builtin:general-purpose, agent:builtin:Explore, agent:custom, agent:custom:<plugin-agent>. |
requestDigest | string | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
shapeHash | string | — |
tail | array | — |
tail[]optional | string | — |
timestamp | string | ISO-8601 UTC write time. |
version | string | Claude Code version string that wrote the entry (semver). |
{"type":"api-request","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","id":"r_example1","timestamp":"2026-10-20T10:00:00.000Z","version":1,"querySource":"repl_main_thread","shapeHash":"ab12","params":{"model":"claude-opus-5-5","max_tokens":64000,"thinking":{"type":"adaptive"}},"base":"r_example0","keep":12,"tail":["cd34","ef56"],"cacheControl":[],"requestDigest":"9a8b"}messages = (messages of api-request base)[0:keep] + tail; each hash resolves to an api-request-blob.message in the same file. base usually points at an earlier api-request.
shapeHash resolves to an api-request-shape record (system + tools). version here is the replay-format version (number), NOT the Claude Code version.
Optional: agentId (subagent requests are routed to the subagent file), withheld (param names withheld because they came from CLAUDE_CODE_EXTRA_BODY), cut + cutRequestDigest (when memory-cut messages were substituted).
params.safeguards[].classifier_context (full auto-mode classifier context) appears only 2.1.300–2.1.303; 2.1.304 changelog: classifier context no longer stored with every request.
api-request-blobsince 2.1.300
Content-addressed copy of one request message (system/user/assistant) referenced by api-request.tail hashes.
Written written once per new hash, before the api-request that references it.
| Field | Type | Meaning |
|---|---|---|
agentIdoptional | string | Subagent id (17 hex chars) on entries written by/for a subagent; matches the agent-<agentId>.jsonl filename. |
hash | string | — |
message | object | Anthropic Messages API message object (role + content + for assistant: id/model/usage/stop fields). |
message.content | array|string | String (plain prompt or command output) or array of content blocks; see contentBlocks. |
message.output_configoptional | object | — |
message.output_config.effortoptional | string | Effort level of the request (low/medium/high/xhigh/max). |
message.role | string | Message role. Values include: system, assistant, user. |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
{"type":"api-request-blob","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","hash":"cd34","message":{"role":"user","content":[{"type":"text","text":"Hello"}]}}message.role includes "system" (system blocks and tool_addition blocks), which is not an Anthropic API role: these are replay-internal.
api-request-shapesince 2.1.300
Content-addressed request shape: the system prompt blocks and tool definitions of a request.
Written once per distinct shapeHash per file.
| Field | Type | Meaning |
|---|---|---|
agentIdoptional | string | Subagent id (17 hex chars) on entries written by/for a subagent; matches the agent-<agentId>.jsonl filename. |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
shape | object | — |
shape.system | array | — |
shape.system[]optional | object | — |
shape.tools | array | — |
shape.tools[]optional | object | — |
shapeHash | string | — |
timestamp | string | ISO-8601 UTC write time. |
version | string | Claude Code version string that wrote the entry (semver). |
{"type":"api-request-shape","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","shapeHash":"ab12","timestamp":"2026-10-20T10:00:00.000Z","version":1,"shape":{"system":[{"type":"text","text":"You are ..."}],"tools":[{"name":"Read","description":"...","input_schema":{"type":"object"}}]}}Shapes larger than the cap are not recorded (oversize shapes are remembered and their requests skipped).
fork-context-ref
In a forked subagent transcript: points at the parent conversation prefix the fork inherited instead of copying it.
Written at fork-subagent start.
| Field | Type | Meaning |
|---|---|---|
agentId | string | Subagent id (17 hex chars) on entries written by/for a subagent; matches the agent-<agentId>.jsonl filename. |
contextLength | number | — |
parentLastUuid | string | — |
parentSessionId | string | — |
{"type":"fork-context-ref","agentId":"a0123456789abcdef","parentSessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","parentLastUuid":"44444444-4444-4444-8444-444444444444","contextLength":120}Values include only in subagent files. parentSessionId is the containing session.
frame-link
Count/link of artifacts (frames) published from the session.
Written when an artifact is published; re-appended with metadata.
| Field | Type | Meaning |
|---|---|---|
artifactCount | number | — |
frameUrloptional | string | — |
pathoptional | string | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
timestamp | string | ISO-8601 UTC write time. |
titleoptional | string | — |
{"type":"frame-link","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","artifactCount":1,"timestamp":"2026-10-20T10:00:00.000Z"}artifact-comment-monitor
State of armed artifact comment watchers, keyed by artifact id.
Written when watchers change.
| Field | Type | Meaning |
|---|---|---|
artifacts | object | — |
artifacts.<dynamic-key> | object | — |
artifacts.<dynamic-key>.state | string | — |
artifacts.<dynamic-key>.title | string | — |
artifacts.<dynamic-key>.writtenAtMs | number | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
v | number | — |
{"type":"artifact-comment-monitor","v":1,"sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","artifacts":{"art_1":{"state":"armed","title":"Example","writtenAtMs":1760000000000}}}artifact-autoreact-ledger
Ledger of artifact comment threads already reacted to, per artifact.
Written when the auto-react ledger changes.
| Field | Type | Meaning |
|---|---|---|
accountUuid | string | — |
artifacts | object | — |
artifacts.<dynamic-key> | object | — |
artifacts.<dynamic-key>.everBaselined | boolean | — |
artifacts.<dynamic-key>.everHadThreads | boolean | — |
artifacts.<dynamic-key>.savedAt | number | — |
artifacts.<dynamic-key>.stampHighWater | string | — |
artifacts.<dynamic-key>.threads | array | — |
artifacts.<dynamic-key>.turnTimestamps | array | — |
sessionId | string | Session UUID. Equals the transcript filename stem in main files; in subagent files it is the PARENT session id. |
v | number | — |
{"type":"artifact-autoreact-ledger","v":1,"sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","accountUuid":"00000000-0000-4000-8000-000000000000","artifacts":{}}summary
Legacy conversation summary keyed to a leaf (pre-compact_boundary era). Loader still maps leafUuid -> summary.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
summary | string | Summary text. |
leafUuid | string | Leaf node the summary describes. |
{"type":"summary","summary":"Setup docs work","leafUuid":"44444444-4444-4444-8444-444444444444"}custom-title
User-set session title (/rename, --name, hook sessionTitle). Takes precedence over ai-title.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
customTitle | string | Title; empty string clears. |
sessionId | string | — |
{"type":"custom-title","customTitle":"Docs work","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}tag
Session tag.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
tag | string | — |
sessionId | string | — |
{"type":"tag","tag":"docs","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}agent-name
Name of the session when run as a named agent/teammate.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
agentName | string | — |
sessionId | string | — |
{"type":"agent-name","agentName":"reviewer","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}agent-color
Display color for a named agent.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
agentColor | string | — |
sessionId | string | — |
{"type":"agent-color","agentColor":"blue","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}agent-setting
Agent definition/setting the session runs under (--agent).
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
agentSetting | string | — |
sessionId | string | — |
{"type":"agent-setting","agentSetting":"reviewer","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}relocated
The session transcript was relocated to another cwd/project directory (/cd).
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
relocatedCwd | string | New working directory. |
sessionId | string | — |
{"type":"relocated","relocatedCwd":"/workspace/other","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}ended-by-model
The model ended the session (end-session tool).
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
sessionId | string | — |
timestamp | string | — |
{"type":"ended-by-model","timestamp":"2026-10-20T10:00:00.000Z","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}continued-in
Forward pointer: this session continues in another session id.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
sessionId | string | — |
continuedInSessionId | string | Successor session id. |
timestamp | string | — |
{"type":"continued-in","timestamp":"2026-10-20T10:00:00.000Z","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","continuedInSessionId":"bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb"}worktree-state
Git worktree the session runs in (EnterWorktree/--worktree).
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
worktreeSession | object|null | Worktree session descriptor (path/branch...); shape not established. |
sessionId | string | — |
{"type":"worktree-state","worktreeSession":{"worktreePath":"/workspace/project/.claude/worktrees/x","worktreeBranch":"x"},"sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}isolation-latch
Which side of an isolation boundary the session is latched to.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
side | string | — |
sessionId | string | — |
{"type":"isolation-latch","side":"local","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}dev-mods
Folder of development mods loaded for the session (validated to belong to the session).
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
folder | string | — |
sessionId | string | — |
{"type":"dev-mods","folder":"/workspace/.claude/mods/dev","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}memory-mode
Memory on/off stamp positioned after a message uuid.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
mode | enum(on,off) | — |
afterUuid | string|null | Node after which the mode applies. |
timestamp | string | — |
reasonoptional | enum(paused,account_off,account_read_only,session_shape,server_off) | — |
accountoptional | string | — |
accountChoiceoptional | enum(on,read_only,off) | — |
sessionId | string | — |
{"type":"memory-mode","mode":"off","afterUuid":null,"timestamp":"2026-10-20T10:00:00.000Z","reason":"paused","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa"}bridge-session
Remote Control / bridge binding of the local session to a remote session id.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
bridgeSessionId | string | Remote session id ('' clears). |
lastSequenceNum | number | — |
declaredDialogKindsoptional | array | — |
sessionGroupingIdoptional | string | — |
noHistoryBackfilloptional | boolean | — |
ownerAccountUuidoptional | string | — |
ownerOrganizationUuidoptional | string | — |
sessionId | string | — |
{"type":"bridge-session","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","bridgeSessionId":"session_example","lastSequenceNum":0}history-suppression
Marks the session as suppressed from prompt history / listing.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
cause | string | e.g. 'migration', 'fork_inherit'. |
vetoedAgainstAccountUuidoptional | string | — |
ts | string | ISO time. |
sessionId | string | — |
{"type":"history-suppression","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","cause":"fork_inherit","ts":"2026-10-20T10:00:00.000Z"}attribution-snapshot
Code-attribution snapshot keyed to a message (which lines Claude authored). Only the latest is kept on load.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
messageId | string | — |
(other)optional | object | Attribution payload; shape not established. |
{"type":"attribution-snapshot","messageId":"22222222-2222-4222-8222-222222222222"}content-replacement
Records tool-result contents replaced in context (e.g. large results persisted to tool-results/ or cleared), so resume rebuilds the same request.
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
sessionId | string | — |
agentIdoptional | string | Routes replacement to a subagent. |
replacements | array | Replacement descriptors; shape not established. |
{"type":"content-replacement","sessionId":"aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa","replacements":[{}]}observer-ref
Reference record for an observer agent (spread of an observer descriptor plus timestamp).
Stored only only when the feature is used
| Field | Type | Meaning |
|---|---|---|
timestamp | string | — |
(observer fields)optional | object | Spread from caller; shape not established. |
{"type":"observer-ref","timestamp":"2026-10-20T10:00:00.000Z"}session-owner
Loader retains a nonempty string accountUuid and optional string organizationUuid. The writer spreads the owner descriptor; other fields are open.
| Field | Type | Meaning |
|---|---|---|
sessionId | string | Owning session. |
accountUuid | string | Nonempty account identity used by the loader. |
organizationUuidoptional | string | Organization identity when supplied. |
2.1.325 installed-source supplement. See evidence/claude-transcript-source-2.1.325.json for byte anchors and writer/reader boundaries; introduction version not established.
tools-used
The writer records normalized tool names. The loader filters out non-string and empty tool names. A uuid is optional on an internal mirror path.
| Field | Type | Meaning |
|---|---|---|
sessionId | string | Owning session. |
tools | string[] | Normalized nonempty tool names; loader filters malformed members. |
uuidoptional | string | Optional internal-mirror identity. |
2.1.325 installed-source supplement. See evidence/claude-transcript-source-2.1.325.json for byte anchors and writer/reader boundaries; introduction version not established.
data-flow-records
Feature/policy gated. Agent-scoped rows route to the agent transcript. A snapshot replaces prior accumulated records; otherwise the loader merges by identity. Malformed entries mark evidence incomplete rather than proving no activity.
| Field | Type | Meaning |
|---|---|---|
sessionId | string | Owning session. |
v | 1 | Current writer version. |
agentIdoptional | string | Agent scope when present. |
records | DataFlowRecord[] | Tool/event identities with optional source, server and touched-resource metadata. Invalid members are dropped and mark evidence incomplete. |
snapshotoptional | true | Replaces retained records for this scope; absent means merge. |
2.1.325 installed-source supplement. See evidence/claude-transcript-source-2.1.325.json for byte anchors and writer/reader boundaries; introduction version not established.
data-flow-incomplete
Current writer emits v:1. The loader sets the incomplete flag immediately for this discriminator; it does not validate v before doing so.
| Field | Type | Meaning |
|---|---|---|
sessionId | string | Owning session. |
v | 1 | Current writer version; reader recognizes incompleteness before validating version. |
agentIdoptional | string | Agent scope when present. |
2.1.325 installed-source supplement. See evidence/claude-transcript-source-2.1.325.json for byte anchors and writer/reader boundaries; introduction version not established.
derived-from
Feature/policy gated. Invalid lineage entries are omitted and loss marks the retained data-flow evidence incomplete. Lineage is deduplicated by type/id/via.
| Field | Type | Meaning |
|---|---|---|
sessionId | string | Owning session. |
v | 1 | Current writer version. |
sessions | {type:claude_code_session|unknown,id:string|null,via:string}[] | Deduplicated lineage. unknown requires null id; concrete session requires bounded nonempty identity. via uses the inspected finite origin enum. |
2.1.325 installed-source supplement. See evidence/claude-transcript-source-2.1.325.json for byte anchors and writer/reader boundaries; introduction version not established.
resume-head-vouch
Checksum used by the resume-head reader. The writer only appends if the target still exists and satisfies its target constraint; it is not a conversation message.
| Field | Type | Meaning |
|---|---|---|
sessionId | string | Owning session. |
sum | string | Resume-head checksum; not a message identity. |
2.1.325 installed-source supplement. See evidence/claude-transcript-source-2.1.325.json for byte anchors and writer/reader boundaries; introduction version not established.
Content blocks (15)
text
Plain text block (assistant reply text, or user text).
Written assistant/user message.content[]
| Field | Type | Meaning |
|---|---|---|
text | string | — |
{"type":"text","text":"Done."}Also appears as a user content block and inside tool_result.content.
thinking
Extended-thinking block with signature.
Written assistant message.content[] (own line)
| Field | Type | Meaning |
|---|---|---|
signature | string | — |
thinking | string | — |
{"type":"thinking","thinking":"","signature":"EqQBCkgIBx..."}thinking text is usually empty (thinkingDisplay 'updates' / omitted display); signature always present.
redacted_thinking
Redacted thinking block (encrypted data).
Written assistant message.content[]
Stored conditional
{"type":"redacted_thinking","data":"EmwKAhgB..."}tool_use
Client tool invocation.
Written assistant message.content[] (own line)
| Field | Type | Meaning |
|---|---|---|
calleroptional | object | — |
caller.typeoptional | string | Record discriminator. Values include: direct. |
id | string | — |
input | object | — |
name | string | — |
{"type":"tool_use","id":"toolu_01Example","name":"Read","input":{"file_path":"/workspace/project/README.md"},"caller":{"type":"direct"}}caller {type:'direct'} Values include on all but one; MCP tools are named mcp__<server>__<tool>.
server_tool_use
Server-side tool invocation (web search/fetch, advisor).
Written assistant message.content[]
Stored conditional
{"type":"server_tool_use","id":"srvtoolu_01","name":"web_search","input":{"query":"x"}}web_search_tool_result
Server web-search result block.
Written assistant message.content[]
Stored conditional
{"type":"web_search_tool_result","tool_use_id":"srvtoolu_01","content":[]}advisor_tool_result
Result of the server-side advisor tool.
Written assistant message.content[]
Stored conditional
{"type":"advisor_tool_result","tool_use_id":"srvtoolu_02","content":{}}mcp_tool_use
API-side MCP connector tool use block.
Written assistant message.content[]
Stored conditional
{"type":"mcp_tool_use","id":"mcptoolu_01","name":"x","server_name":"y","input":{}}tool_result
Result for one tool_use, sent as user content.
Written user message.content[]
| Field | Type | Meaning |
|---|---|---|
content | string|array | — |
content[]optional | object | — |
content[].sourceoptional | object | — |
content[].textoptional | string | — |
content[].tool_nameoptional | string | — |
content[].typeoptional | string | Record discriminator. |
is_erroroptional | boolean | — |
tool_use_id | string | — |
{"type":"tool_result","tool_use_id":"toolu_01Example","content":"file contents...","is_error":false}content is a string or an array of text/image/tool_reference blocks.
Large outputs: content contains a <persisted-output> wrapper pointing at the tool-results/ sidecar.
Cleared results become '[Old tool result content cleared]' (microcompaction).
image
Base64 image (pasted by user or returned in a tool_result).
Written user message.content[] or tool_result.content[]
| Field | Type | Meaning |
|---|---|---|
source | object | — |
source.data | string | — |
source.media_type | string | — |
source.type | string | Record discriminator. Values include: base64. |
{"type":"image","source":{"type":"base64","media_type":"image/png","data":"iVBORw0KGgo..."}}585 images were inside tool_result.content.
document
PDF/document block.
Written user content / tool_result content
Stored conditional
{"type":"document","source":{"type":"base64","media_type":"application/pdf","data":"JVBERi0..."}}2.1.299: @-mentioned PDF bytes are no longer kept in the session transcript.
search_result
Search-result content block.
Written tool_result content
Stored conditional
{"type":"search_result","source":"https://example.com","title":"x","content":[]}tool_reference
Reference to a deferred tool definition returned by ToolSearch.
Written tool_result.content[]
| Field | Type | Meaning |
|---|---|---|
tool_name | string | — |
{"type":"tool_reference","tool_name":"WebFetch"}system: text
System-prompt text block, stored inside api-request-blob/api-request-shape (role "system").
Written api-request-blob.message.content[] / api-request-shape.shape.system[]
| Field | Type | Meaning |
|---|---|---|
text | string | — |
{"type":"text","text":"You are ..."}Only in request-replay records (since 2.1.300); not part of conversation messages.
system: tool_addition
Tool definition added mid-conversation, stored in request-replay blobs.
Written api-request-blob.message.content[] (role system)
| Field | Type | Meaning |
|---|---|---|
tool | object | — |
tool.definition | object | — |
tool.definition.description | string | — |
tool.definition.eager_input_streaming | boolean | — |
tool.definition.input_schema | object | — |
tool.definition.name | string | — |
tool.type | string | Record discriminator. Values include: tool_definition. |
{"type":"tool_addition","tool":{"type":"tool_definition","definition":{"name":"WebFetch"}}}Rebuilding the conversation
- Bash file-change diffs
- Narrow supplement: local Claude 2.1.311 records and embedded 2.1.312 implementation establish optional toolUseResult.bashEditDiff = {files:[{filePath,hunks:[{oldStart,oldLines,newStart,newLines,lines}],created?,deleted?}],moreFiles,changedFiles?,unavailable?,skipped?,shared?}. Join via the same user message tool_result.tool_use_id to assistant tool_use.id. These bounded working-tree changes can include concurrent writers; missing diff is not proof of no edit. Internal rendering/PostToolUse data, not model-facing text. Full format audit stays pinned to 2.1.310. See docs/research/claude-bash-edit-diffs.md and evidence/claude-bash-edit-diffs-2026-10-28.json.
- ordering
- File order is append order and is NOT conversation order. Lines are appended as they are produced; metadata records are re-appended near the tail; branches from rewinds interleave. Reconstruct conversation order only via parentUuid.
- message parent links
- Conversation records (user/assistant/system/attachment) form a tree via uuid -> parentUuid. Each main file starts with an attachment root (parentUuid null). Every other node's parentUuid resolved to an earlier line in the same file. Metadata records have no uuid and are outside the tree.
- message parent links
- A streamed assistant response becomes N lines (one content block each) sharing message.id and requestId; each line's parentUuid is the previous line of the same response. Merge consecutive same-message.id assistant lines to recover the API message; usage is repeated, count it once.
- tool call ↔ result
- tool_result.tool_use_id = tool_use.id. The user line carrying the result has parentUuid = uuid of the assistant line holding that tool_use and sourceToolAssistantUUID = same uuid. With parallel tool calls the assistant lines chain A1->A2 while result R1 hangs off A1: the assistant line therefore has two children. This is not a user branch.
- tool call ↔ result
- toolUseResult on the same user line is the tool's structured result (shape per tool name, string on error). Image base64 in toolUseResult may be blanked ("") when identical to the image in message.content (media dedup, Ie()/Epn() refill on read).
- turns
- A human turn starts at a user line with promptSource typed/queued (origin.kind human) and ends with system/turn_duration (durationMs, messageCount). promptId groups the prompt and all its descendants. system/stop_hook_summary follows when Stop hooks run.
- subagents
- Parent assistant tool_use (Agent/Task, or Skill fork) id == subagents/agent-<id>.meta.json toolUseId. The Agent toolUseResult has agentId and outputFile. Subagent file: every conversation line has isSidechain:true, agentId = filename id, sessionId = parent session id; first line parentUuid null. Forked subagents start with a fork-context-ref pointing at parentSessionId + parentLastUuid + contextLength instead of copying the prefix. Subagent api-request/blob/shape/content-replacement records are routed to the subagent file (route-by-agent).
- compaction
- system/compact_boundary has parentUuid:null (new chain root) and logicalParentUuid = last pre-compaction node. The next user line has isCompactSummary:true + isVisibleInTranscriptOnly:true and holds the summary. compactMetadata.preservedSegment {headUuid, anchorUuid, tailUuid} and preservedMessages.uuids name kept messages (52/52 resolved). On load, 'transcript' and 'boundary-cleared' records before the last boundary are dropped; 'last-wins'/'accumulate' metadata survive.
- compaction
- Microcompaction replaces old tool_result content with '[Old tool result content cleared]' or a <persisted-output> preview; content-replacement records log those substitutions so resume reproduces the same request.
- branches/rewind
- Rewind/edit appends new nodes whose parentUuid points back into the tree; abandoned branches stay in the file. The active leaf is the leafUuid of the last last-prompt record (explicit:true for user-chosen leaf, rewound:true after /rewind); a last-prompt with leafUuid:null + explicit:true withdraws the leaf. Without a usable last-prompt the loader picks the newest-timestamp non-sidechain message. Walk parentUuid from the leaf to the root, merging same-message.id assistant siblings and re-attaching parallel tool results.
- forks
- /branch (fork) writes a NEW <new-session-id>.jsonl: copies the selected path with original uuids, linearised parentUuid, new sessionId, isSidechain:false and forkedFrom {sessionId, messageUuid}; carries content-replacement, relocated, memory-mode, atis-latch and history-suppression(cause fork_inherit) forward.
- resume
- --resume/--continue reopen and keep appending to the same <session-id>.jsonl (hook_success attachments with hookName SessionStart:resume appear). A continued-in record can point to a successor session.
- sidecar references
- file-history-snapshot.snapshot.trackedFileBackups[path].backupFileName -> ~/.claude/file-history/<sessionId>/<name>; file-history-delta.messageId/snapshotMessageId -> user uuid; toolUseResult.persistedOutputPath -> <session-id>/tool-results/<id>.txt; api-request.shapeHash -> api-request-shape; api-request.tail[] -> api-request-blob.hash; api-request.base -> earlier api-request.id; assistant.requestRef -> api-request.id.
Token usage
assistant.message.usage.input_tokens- Uncached input tokens of the API response. Repeated on every line of a split response — dedupe by message.id.
assistant.message.usage.cache_creation_input_tokens / cache_creation.ephemeral_5m_input_tokens / ephemeral_1h_input_tokens- Prompt-cache write tokens, total and by TTL.
assistant.message.usage.cache_read_input_tokens- Prompt-cache read tokens.
assistant.message.usage.output_tokens / output_tokens_details.thinking_tokens- Output tokens and the thinking share.
assistant.message.usage.iterations[]- Per-iteration usage when the server ran multiple sampling iterations (e.g. server tools/advisor).
assistant.message.usage.server_tool_use.web_search_requests / web_fetch_requests- Server tool call counts.
assistant.message.usage.service_tier / speed / inference_geo / fallback_credit- Tier and routing metadata.
cost-state.totalCostUSD, modelUsage.<model>.costUSD- Client-estimated cumulative cost (last record wins).
attachment/queued_command.attachment.usage {totalTokens, toolUses, durationMs}- Usage summary of a finished background task/subagent delivered as a notification.
system/compact_boundary.compactMetadata.preTokens / postTokens / cumulativeDroppedTokens- Context size before/after compaction.
Versions
Every conversation record carries version (Claude Code semver of the writer); metadata records do not. There is no file-level header or schema version. Known boundaries: api-request / api-request-blob / api-request-shape records and assistant.requestRef appear from 2.1.300 (changelog 2.1.300: 'record each API request's system prompt, tools and parameters'); params.safeguards[].classifier_context stored only 2.1.300–2.1.303 (changelog 2.1.304); subagent placeholder usage/null stop_reason fixed 2.1.307; renderedRole on attachments from 2.1.285; requestedModel from 2.1.295; permissionDecision from 2.1.293; sandboxed from 2.1.307; thinkingDisplay from 2.1.296; file-history pruning 2.1.208 (changelog).
Parsing pitfalls
- Assistant usage is duplicated on every split line of one response; summing per line over-counts tokens 2x on average.
- parentUuid chains are not linear: parallel tool calls make the assistant line a parent of both the next assistant block and its own tool_result. Following only the last child loses results.
- Metadata (ai-title, last-prompt, mode, permission-mode, atis-latch, custom-title, tag, pr-link, ...) is re-appended to the tail repeatedly so tail-window readers find it; expect thousands of duplicates and take the last.
- Metadata records have no uuid, version or (mostly) timestamp; do not require the conversation envelope on every line.
- In subagent files sessionId is the parent session id, not the file stem; use agentId / filename.
- api-request.version is a replay-format number, not the Claude Code version string; api-request-blob.message.role can be "system".
- message.content can be a string or an array; user tool_result content can be a string or an array of text/image/tool_reference.
- Thinking blocks often have empty text with a valid signature (display mode updates); do not treat as corruption.
- Subagent transcripts before 2.1.307 recorded placeholder usage and null stop_reason for streamed responses.
- Progress records are not written by current builds but may exist in older files; their uuids can be parents of real messages, so re-parent through them rather than dropping the child.
- compact_boundary has parentUuid null: walking from the leaf stops there; use logicalParentUuid to stitch pre-compaction history.
- A torn last line is possible after a crash (2.1.300 fix); tolerate an unparsable final line.
- The session directory <session-id>/ may exist without the .jsonl being the only data: tool-results and subagents hold content referenced from the transcript.
- cwd, gitBranch, slug, prompts, file paths and tool inputs are private user data embedded in nearly every line.
- Claude Code strips envelope fields (cwd, gitBranch, version, userType, entrypoint, promptId, +requestId on assistant) for some storage paths and re-fill them from context on read (A3s/H8n); remote/storage-backed transcripts may lack them.
- 2.1.311 publisher notes fix -p/SDK transcript ordering and retained retracted messages. CLI json/stream-json escaping changes preserve parsed values; this is not proof of a changed on-disk JSONL schema. The full format audit remains pinned to 2.1.310.
- Documentation checked 2026-11-15 against latest 2.1.325 / stable 2.1.311 release metadata. Detailed internal shapes remain the historical 2.1.310 survey (high-level observedVersion 2.1.299); readable implementation JavaScript has now been located in the installed native executable; the 2.1.325 source supplement traces selected fields and storage policies. The four-field implementation supplement is not a complete 2.1.325 schema or controlled runtime verification.
- Current docs additionally list orphaned/superseded JSONL and mcp-tasks/ sidecars. They are outside the older detailed field survey.
- CLAUDE_CODE_TRANSCRIPT_LOCAL_GC means the current non-interactive transcript need not be an indefinitely growing append-only log. Keep file replacement/truncation handling in consumers.
- 2026-11-15 aggregate-only existing-record survey found 1,769 version-matched 2.1.325 records across five files. Ten record/subtype families and top-level/message field types were retained without content. Unversioned metadata in these mixed files is counted separately and cannot be attributed to 2.1.325. This supplements the 2.1.310 full survey; it is not a controlled writer/resume probe or an exhaustive current schema.
- Installed 2.1.325 source correction: the native executable embeds readable JavaScript alongside bytecode/string tables. Static extraction recovered transcript constructors, write routing and GC policy tables plus four field definitions. See docs/research/evidence/claude-transcript-source-2.1.325.json and its partial JSON Schema. Keep the older full catalogue version pin; these are explicitly current source supplements.
- 2.1.325 source separates write routing (n6a), load reduction (q6o), and local GC retention (I5o). A registered type, a saved record and a restored field are different evidence. Six additional metadata families and the isolated cost-state validator are now covered; this does not repin the entire historical catalogue.
Sources
Claude Code
- Claude Code sessions, Documentation, checked 2026-10-15
- claude-code 2.1.310 (bundle examined); local transcripts written by 2.1.281–2.1.310 local transcript shape survey, live observation, checked 2026-10-26
- Documentation: github.com/anthropics/claude-code/blob/main/CHANGELOG.md, Documentation, checked 2026-10-26
- claude-code docs: docs/en/claude-directory, Documentation, checked 2026-10-15
- Claude Code 2.1.311 publisher changelog, Documentation, checked 2026-10-28
- Transcript audit: claude-sessions, Documentation, checked 2026-11-15
- Transcript audit: claude-directory, Documentation, checked 2026-11-15
- Claude Code 2.1.325 existing local record shapes; aggregate-only survey, live observation, checked 2026-11-15
- Claude Code 2.1.325 installed embedded JavaScript: transcript constructors and policy tables, live observation, checked 2026-11-15