Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

read-codex-history

БесплатноЗапускает вложенные скриптыНе проверен

Reads, searches and exports local OpenAI Codex history without continuing work: session inventory, timelines, verbatim user input, indexed search, and rollout…

daymadeот daymade★ 1 556 звёзд на GitHub

Об этом скилле

Read Codex History

Read Codex evidence only. Do not continue the old task or change its project. If the user wants execution after the read is complete, pass the verified evidence to daymade-claude-code:continue-codex-work.

Find a complete thread ID first

For a pasted UUID prefix or an identity-only request, run this bounded lookup:

python3 <skill-dir>/scripts/find_codex_session.py <UUID-prefix>

Accept only exit 0 with status: unique and identity_verified: true. The command queries matching state-index rows, includes archived/subagent entries, and verifies the unique candidate with the exact rollout locator. It does not export unrelated inventory, read conversation bodies, or probe writer locks. On ambiguity, show the returned candidates and ask for a longer prefix; on unavailable evidence, retain unknown. Return the verified ID and title, then stop. Load the rest of this Skill only for an additional requested result. Read lookup and JSON contracts only for exit handling, programmatic consumption or inventory JSON parsing.

Codex history surfaces

Surface Authority Use
<codex-home>/history.jsonl What the user submitted, keyed by Session ID and internal epoch timestamp Exact recent user-input tables
state_*.sqlite Inventory metadata such as cwd, title, update time, and rollout path Fast listing and candidate discovery
sessions/**/rollout-*.jsonl and archived_sessions/** Full user/assistant/tool/compaction/fork event stream Exact-session evidence and keyword verification after indexed or physical preselection
<codex-home>/logs_*.sqlite (pick the latest by mtime) Runtime events: per-event ts, level, target, feedback_log_body, process_uuid (embeds the OS pid), optional thread_id Which live process is failing and how — error-shape bucketing and time distribution

Do not substitute one surface for another. A prompt-ledger row proves what was submitted, not what the Agent answered. A state DB path is only a candidate until the rollout's session_meta.id matches. A rollout can exist without a prompt-ledger row, and a /fork prompt can exist without a child rollout. A runtime-log thread is not a resumable session until state_*.sqlite confirms it (see below).

Runtime error log (logs_*.sqlite)

For "Codex is slow / keeps reconnecting / which of my sessions is erroring", read this surface before blaming the network or the service. Bucket by error shape and by hour: errors clustered in time windows mean episodic transport instability; a steady rate means a standing condition; one process_uuid failing where others are clean means a per-process cause (for example a stale in-memory token), not an outage.

-- error shapes in the last 24h
SELECT CASE WHEN feedback_log_body LIKE '%timed out%' THEN 'timeout'
            WHEN feedback_log_body LIKE '%could not be refreshed%' THEN 'token-refresh'
            WHEN feedback_log_body LIKE '%error sending request%' THEN 'send-failure'
            ELSE 'other' END AS shape, COUNT(*)
FROM logs WHERE ts >= strftime('%s','now','-24 hours') AND level IN ('ERROR','WARN')
GROUP BY shape ORDER BY 2 DESC;

-- the same buckets per hour: clustered windows or a steady rate?
SELECT strftime('%m-%d %H', ts, 'unixepoch', 'localtime') AS hr,
       SUM(feedback_log_body LIKE '%timed out%') AS timeouts,
       SUM(feedback_log_body LIKE '%could not be refreshed%') AS token_refresh
FROM logs WHERE ts >= strftime('%s','now','-72 hours') AND level IN ('ERROR','WARN')
GROUP BY hr ORDER BY hr;

-- which OS processes are failing, and since when
SELECT process_uuid, COUNT(*), datetime(MIN(ts),'unixepoch','localtime') first_seen
FROM logs WHERE feedback_log_body LIKE '%could not be refreshed%'
GROUP BY process_uuid ORDER BY 2 DESC;

Pitfalls measured 2026-10-03:

  • A thread_id found here is an app-server thread handle, not proof of a resumable rollout. Verify it exists in state_*.sqlite threads.id before handing out codex resume <id>; a logs-only id fails with "No saved session found with ID".
  • strftime('%s', '<local wall time>', 'localtime') double-converts and can push the boundary into the future, returning 0 rows that look like "no data". Write boundaries as UTC literals (local wall time minus your offset) instead.

Read references/storage_and_portability.md when inventory reports unsupported, missing or ambiguous storage, or when interpreting timestamps, writer locks or legacy Kimi storage. Read references/codex_rollout_format.md before interpreting fork snapshots, compaction, event streams, or end reasons.

Route by the requested result

User wants Use
Identify Codex work after a terminal disappears, including ToDesk/headless terminals Terminal-session recovery: bind host/cwd, q
Полный SKILL.md на GitHub

Установить read-codex-history в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/evals.jsonreferences/codex_rollout_format.mdreferences/legacy_multi_provider_inventory.mdreferences/session-lookup.mdreferences/storage_and_portability.mdreferences/terminal-session-recovery.mdreferences/user_input_reconciliation.mdscripts/_core/__init__.pyscripts/_core/claude.pyscripts/_core/codex.pyscripts/_core/homes.pyscripts/_core/kimi.pyscripts/_core/model.pyscripts/_core/native_output.pyscripts/_core/parse.pyscripts/_core/sources.pyscripts/_core/text.pyscripts/analyze_sessions.pyscripts/find_codex_session.pyscripts/list_codex_user_inputs.pyscripts/list_local_history.pyscripts/prompt_cursor.pyscripts/read_codex_session.pyscripts/reconcile_codex_inputs.py

FAQ

Что делает скилл read-codex-history?

Reads, searches and exports local OpenAI Codex history without continuing work: session inventory, timelines, verbatim user input, indexed search, and rollout identity/fork lineage. Use when the user asks what they told Codex, wants a Session ID, or evidence of what a run did. Not for Claude Code (use read-claude-code-history); with no platform named, start at local-conversation-history.

Как установить скилл read-codex-history?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл read-codex-history запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить read-codex-history с