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 notoken_countevents yet. - parse_
session_ log - Parse a Codex session log byte slice. Public for tests and for callers that read the file themselves.