Use when a Codex thread or local session is slow because prior turns contain heavy image, screenshot, or base64 payloads. Helps locate the session JSONL, bac...
Clean oversized Codex session logs by replacing embedded image/base64 payloads with small placeholders while keeping the surrounding conversation, tool calls, and text intact.
Use this when the user says a Codex chat/thread is heavy, slow, bloated, or contains pasted screenshots/images/base64 they want removed from history.
Workflow
Confirm the target thread/session.
Prefer a thread id if the user provides one.
If they provide a remembered phrase, locate the session with rg -l "<phrase>" ~/.codex/sessions ~/.codex/session_index.jsonl.
Do not edit the active file until you know which JSONL is the target.