← ClaudeAtlas

codex-session-historylisted

List and inspect local Codex session history by reading `~/.codex/session_index.jsonl`, `~/.codex/sessions/`, and `~/.codex/archived_sessions/`. Default to unarchived sessions in `~/.codex/sessions/`. Use when users ask what Codex sessions exist, want each session's id or title, need to know which project or workspace a session belongs to, or want to filter sessions by project name, session id, active versus archived status, or a local time window such as "today from 11:00 to 12:00".
Sube-py/awesome-skills · ★ 2 · Data & Documents · score 66
Install: claude install-skill Sube-py/awesome-skills
# Codex Session History ## Overview Use this skill to enumerate local Codex sessions and map each session to its id, title, project, and workspace path. Prefer the bundled script so the output stays consistent and works even when `session_index.jsonl` is incomplete. ## Workflow 1. Run the script to collect unarchived sessions by default. 2. Use `session_meta.payload.id` as the canonical session id. 3. Use `session_meta.payload.cwd` as the workspace anchor. 4. Derive the project from the Git root when possible; otherwise fall back to `cwd`. 5. Use `session_index.jsonl` only as enrichment for `thread_name` and `updated_at`. 6. Convert stored UTC timestamps into local time before display and time-window filtering. 7. If no `thread_name` is available, fall back to the first user message summary. ## Commands List recent sessions: ```bash python3 scripts/list_codex_sessions.py ``` List active and archived sessions together: ```bash python3 scripts/list_codex_sessions.py --source all ``` List more rows: ```bash python3 scripts/list_codex_sessions.py --limit 50 ``` Filter by project: ```bash python3 scripts/list_codex_sessions.py --project PlayGround ``` Filter by a local time window on today's date: ```bash python3 scripts/list_codex_sessions.py --from 11:00 --to 12:00 ``` Filter by a local time window on a specific date: ```bash python3 scripts/list_codex_sessions.py --date 2026-03-19 --from 11:00 --to 12:00 ``` Inspect one session id: ```bash python3 scripts/lis