Skip to main content

Module codex

Module codex 

Source
Expand description

Typed schema for Codex rollout JSONL (~/.codex/sessions/.../rollout-*.jsonl).

Each line is an envelope {timestamp, type, payload}. The type selects the envelope kind; for response_item the inner payload.type selects the conversation item. Discriminants we don’t model land in Unknown variants so the audit can enumerate them; unmodeled fields land in extra maps.

Structs§

CodexLine
One line of a Codex rollout file.
EventMsg
A UI event echo. We only need its discriminant for the audit.
SessionMeta
Codex session_meta payload.
TurnContext
Codex turn_context payload (loosely modeled — many policy fields).

Enums§

CodexRecord
A Codex envelope.
ResponseItem
A canonical conversation item (response_item payload).