Install
openclaw skills install @severinzhong/codex-history-managerSearch, read, export, hand off, clone, move, or rebind local Codex history stored under ~/.codex. Use when the user wants to inspect past Codex sessions, bring a thread into another workspace, export transcripts, generate handoff notes, or change a thread's workspace/provider metadata.
openclaw skills install @severinzhong/codex-history-managerUse codex-history-manager when the task is about local Codex history, not general ChatGPT or web chat history.
Codex stores local history in two places:
~/.codex/state_5.sqlite for thread metadata~/.codex/sessions/.../rollout-*.jsonl and ~/.codex/archived_sessions/... for event logsThe bundled CLI is the source of truth for reading and mutating that state:
./codex-history-manager ...search.show-thread or handoff.export-thread.clone-thread over move-thread.--apply.plan-dangerous-edit, show the warning and change list to the user, get explicit approval in chat, then run apply-dangerous-edit../codex-history-manager search --query "payments"./codex-history-manager show-thread --id <thread-id>./codex-history-manager export-thread --id <thread-id> --format markdown --output /tmp/thread.md./codex-history-manager handoff --id <thread-id> --output /tmp/handoff.md./codex-history-manager plan-dangerous-edit --id <thread-id> --find "old" --replace "new" --output /tmp/edit-plan.json./codex-history-manager clone-thread --id <thread-id> --to-cwd /abs/path --dry-run./codex-history-manager move-workspace --cwd /abs/src --to-cwd /abs/dst --dry-run./codex-history-manager clone-workspace --cwd /abs/src --to-cwd /abs/dst --dry-run./codex-history-manager move-thread --id <thread-id> --to-cwd /abs/path --dry-run./codex-history-manager change-provider --id <thread-id> --provider openai1 --dry-run./codex-history-manager change-provider-workspace --cwd /abs/path --provider openai1 --dry-run./codex-history-manager change-provider-all --provider openai1 --dry-run--dry-run.--apply after reviewing the plan.state_5.sqlite or rollout files if the CLI can do the job.apply-dangerous-edit.Read these references only when needed: