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★ 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_idfound here is an app-server thread handle, not proof of a resumable rollout. Verify it exists instate_*.sqlitethreads.idbefore handing outcodex 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 |
Установить read-codex-history в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic