From codex-cli
Use when locating, summarizing, or debugging Codex session rollout JSONL logs by CODEX_THREAD_ID, cwd, query, issue key, project path, malformed or huge log symptoms, world-readable log concerns, or "what happened in this Codex thread" questions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codex-cli:codex-log-readerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to find the smallest useful slice of Codex logs before opening
Use this skill to find the smallest useful slice of Codex logs before opening raw JSONL. Session logs are useful evidence, but they can contain user prompts, tool I/O, environment fragments, URLs, and secrets.
From this skill directory, the plugin root is ../...
For deeper log locations, JSONL shape, manual jq fallbacks, and safety rules,
read ../../references/log-reader-safety.md.
Primary tool:
python3 ../../scripts/codex_log_reader.py --help
Decision tree:
If the user provides CODEX_THREAD_ID, locate exactly:
python3 ../../scripts/codex_log_reader.py find --thread-id <thread-id>
If the user gives a project path, issue key, app name, or vague "find that run", rank likely sessions:
python3 ../../scripts/codex_log_reader.py find --cwd /path/to/project --query "ISSUE-123" --since-days 14 --limit 10
Summarize the best candidate without raw output:
python3 ../../scripts/codex_log_reader.py brief /path/to/rollout.jsonl
Reconstruct what happened with compact views:
python3 ../../scripts/codex_log_reader.py timeline /path/to/rollout.jsonl --tail 80
python3 ../../scripts/codex_log_reader.py messages /path/to/rollout.jsonl --tail 40
python3 ../../scripts/codex_log_reader.py commands /path/to/rollout.jsonl --tool exec_command --tail 80
Search narrowly, then open only the needed line window:
python3 ../../scripts/codex_log_reader.py search "Traceback" /path/to/rollout.jsonl --limit 20
nl -ba /path/to/rollout.jsonl | sed -n '120,150p'
Only use raw nl, sed, or jq after the helper has identified a path and
line range.
Use doctor when the Codex UI cannot see a thread, resume behaves strangely, or
a log may be too large:
python3 ../../scripts/codex_log_reader.py doctor --since-days 30 --limit 50
python3 ../../scripts/codex_log_reader.py doctor /path/to/rollout.jsonl
It checks malformed JSONL lines, very large rollout files, archived placement, and loose Unix permissions. Treat findings as evidence for diagnosis, not as permission to delete, move, chmod, or edit logs without explicit approval.
.env values, or credential-bearing history.*-state.json files may contain full environment dumps; do not treat them as safe logs.The helper has local tests:
python3 -m unittest discover -s ../../tests -q
npx claudepluginhub xopoko/plug-n-skills --plugin codex-cliGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.