Save Session ID
Overview
Use this skill to keep a durable pointer to the current local Codex session. It records the session ID, transcript path, working directory, and save time so the user can recover the conversation later without remembering the ID.
End-Of-Session Workflow
Before the final response of any session that is ending, pausing, handing off, or preserving work:
- Run the saver from the current working directory:
python3 /home/tintas/.codex/skills/save-session-id/scripts/save_session_id.py --reason final --cwd "$PWD"
- If the task changed code or project understanding, run any relevant project memory update first, then run this saver last.
- If sandbox permissions block writes to
~/.codex, rerun the same command with approval/escalation instead of saving somewhere else. - Include the saved session ID in the final response when the user asked for session continuity or when it helps them resume.
Saved Files
The saver writes:
~/.codex/last-session.json: the latest saved session pointer.~/.codex/session-checkpoints.jsonl: append-only history of saved pointers.
Do not store full transcript contents in these files. The transcript path is enough for local recovery.
Recovery Commands
Show the latest saved pointer:
python3 /home/tintas/.codex/skills/save-session-id/scripts/save_session_id.py --show-last
Show recent saved pointers:
python3 /home/tintas/.codex/skills/save-session-id/scripts/save_session_id.py --history 10