Skip to main content

Module codex

Module codex 

Source
Expand description

Parser for OpenAI Codex rollout logs (~/.codex/sessions/**/*.jsonl).

Codex records carry a type discriminator (session_meta, turn_context, event_msg, response_item). File operations are not first-class: Codex records them as legacy function_call pairs or current custom_tool_call pairs. This parser joins each call to its output by call_id. Legacy shell calls retain command-level analysis. A top-level custom exec is counted as one run command because its JavaScript source does not prove which nested tools actually ran. Direct custom patches are applied only when their paired output explicitly reports success.

Functionsยง

parse_codex_logs
Parse Codex session records from a slice of pre-typed logs.