Skip to main content

Module codex

Module codex 

Source
Expand description

Codex CLI lifecycle telemetry reader.

Parses Codex session JSONL emitting event_msg / token_count payloads and extracts the lifecycle kernel: latest prompt-token count, model name, and the natively reported context window.

Functionsยง

current
Probe the active Codex session log for the configured thread id. Returns Ok(None) when no thread id is configured or the session log has no token_count events yet.
parse_session_log
Parse a Codex session log byte slice. Public for tests and for callers that read the file themselves.