codex-history-manager
/install codex-history-manager
Codex History Manager
Use 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.sqlitefor thread metadata~/.codex/sessions/.../rollout-*.jsonland~/.codex/archived_sessions/...for event logs
The bundled CLI is the source of truth for reading and mutating that state:
./codex-history-manager ...
Default workflow
- For discovery, start with
search. - For context, use
show-threadorhandoff. - For exports, use
export-thread. - For cross-workspace reuse, prefer
clone-threadovermove-thread. - For writes, run a dry run first, then rerun with
--apply. - For history body rewrites, always do
plan-dangerous-edit, show the warning and change list to the user, get explicit approval in chat, then runapply-dangerous-edit.
Core commands
- Search threads:
./codex-history-manager search --query "payments" - Read one thread:
./codex-history-manager show-thread --id \x3Cthread-id> - Export transcript:
./codex-history-manager export-thread --id \x3Cthread-id> --format markdown --output /tmp/thread.md - Create a handoff note:
./codex-history-manager handoff --id \x3Cthread-id> --output /tmp/handoff.md - Plan a dangerous history content rewrite:
./codex-history-manager plan-dangerous-edit --id \x3Cthread-id> --find "old" --replace "new" --output /tmp/edit-plan.json - Clone a thread into another workspace:
./codex-history-manager clone-thread --id \x3Cthread-id> --to-cwd /abs/path --dry-run - Move all threads in one workspace:
./codex-history-manager move-workspace --cwd /abs/src --to-cwd /abs/dst --dry-run - Clone all threads in one workspace:
./codex-history-manager clone-workspace --cwd /abs/src --to-cwd /abs/dst --dry-run - Move a thread to another workspace:
./codex-history-manager move-thread --id \x3Cthread-id> --to-cwd /abs/path --dry-run - Rebind provider metadata:
./codex-history-manager change-provider --id \x3Cthread-id> --provider openai1 --dry-run - Rebind provider metadata for one workspace:
./codex-history-manager change-provider-workspace --cwd /abs/path --provider openai1 --dry-run - Rebind provider metadata for all local threads:
./codex-history-manager change-provider-all --provider openai1 --dry-run
Safety rules
- Never perform a write first. Use the default dry run or pass
--dry-run. - Only use
--applyafter reviewing the plan. - Prefer cloning over moving unless the user explicitly wants to change ownership.
- Do not hand edit
state_5.sqliteor rollout files if the CLI can do the job. - If the user asks to modify message content, stop and confirm. You must first produce a dangerous edit plan, present the warning and change list in the conversation, and wait for explicit user approval before running
apply-dangerous-edit.
Read these references only when needed:
- Command details: references/commands.md
- Write safety and backups: references/safety.md
- Storage model: references/storage.md
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install codex-history-manager - After installation, invoke the skill by name or use
/codex-history-manager - Provide required inputs per the skill's parameter spec and get structured output
What is codex-history-manager?
Search, read, export, hand off, clone, move, or rebind local Codex history stored under ~/.codex. Use when the user wants to inspect past Codex sessions, bri... It is an AI Agent Skill for Claude Code / OpenClaw, with 75 downloads so far.
How do I install codex-history-manager?
Run "/install codex-history-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is codex-history-manager free?
Yes, codex-history-manager is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does codex-history-manager support?
codex-history-manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created codex-history-manager?
It is built and maintained by Severin Zhong (@severinzhong); the current version is v1.0.0.