Sync conversation history from .codex/sessions to .claude.json for context preservation
Note: This skill references .codex/sessions which may be outdated. Verify session storage paths match your Claude Code version before use.
This skill copies Claude Code conversation session files from .codex/sessions to the repository's .claude.json file for context preservation and backup.
When working across different environments (e.g., after WSL/Docker crashes), conversation history stored in .codex/sessions can be referenced in .claude.json to maintain context continuity.
# Sync conversations from last N days (default: 7)
./.claude/skills/conversation-sync/sync-conversations.sh --days 7
# Sync conversations from a specific project
./.claude/skills/conversation-sync/sync-conversations.sh --project claude-flow-novice
# Sync conversations from a specific date range
./.claude/skills/conversation-sync/sync-conversations.sh --from 2025-11-20 --to 2025-11-26
# Dry run (show what would be copied)
./.claude/skills/conversation-sync/sync-conversations.sh --dry-run
.codex/sessions for conversation JSONL files.claude.json with references to conversation files.claude.jsonThe skill updates .claude.json with this structure:
{
"conversations": [
{
"session_id": "rollout-2025-11-24T10-24-43-019ab71c-699f-7052-8ce1-892b6208ba94",
"date": "2025/11/24",
"file": "/mnt/c/Users/masha/.codex/sessions/2025/11/24/rollout-2025-11-24T10-24-43-019ab71c-699f-7052-8ce1-892b6208ba94.jsonl"
}
]
}
.claude.json/mnt/c/Users/...) and Linux paths with automatic normalization\) and forward slashes (/)/mnt/c/Users/{username}/.codex/sessions/YYYY/MM/DD/*.jsonl~/.codex/sessions/YYYY/MM/DD/*.jsonl/mnt/wsl/docker-desktop-bind-mounts/ (if applicable)jq - JSON processingbash 4.0+.codex/sessions directory