skills/codex-session-history/SKILL.md
Search Codex local session history stored in SQLite and session_index.jsonl. Use this skill when the user wants to list, search, filter, or inspect locally saved Codex sessions by session id, provider, time range, preview text, thread name, or archived status.
npx skillsauth add acking-you/myclaude-skills codex-session-historyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use the bundled CLI to inspect local Codex session history. The script reads:
state_*.sqlite for persisted thread metadatasession_index.jsonl for the latest user-facing thread namesThe script auto-discovers the newest state database under CODEX_SQLITE_HOME, the configured sqlite_home, or ~/.codex.
Run:
python3 scripts/codex_session_history.py --limit 30
The default cards view shows:
session_idcodex resume <session_id> commandSearch by preview, title, id, provider, cwd, or thread name:
python3 scripts/codex_session_history.py --query "resume provider"
Show the newest sessions in a compact table:
python3 scripts/codex_session_history.py --view table --limit 50
Filter by provider:
python3 scripts/codex_session_history.py --provider openai --provider staticflow
Filter by time:
python3 scripts/codex_session_history.py --since 7d
python3 scripts/codex_session_history.py --sort-by created --since 2026-03-01 --until 2026-03-10
Include archived-only sessions:
python3 scripts/codex_session_history.py --archived only
Emit JSON for piping or ad hoc analysis:
python3 scripts/codex_session_history.py --view json --limit 200
--since and --until accept:
2026-03-23T15:30:002026-03-2330m, 12h, 7d, 2wtoday, yesterday, nowpreview is the stored first user message, not a generated conversation summary.thread_name comes from session_index.jsonl and may be missing.codex resume <session_id>.--db /path/to/state_5.sqlite or --codex-home /path/to/.codex.development
Write precise technical implementation docs (developer or user) with clear structure, accurate flows, render-safe Mermaid diagrams, and audience-appropriate detail; avoid boilerplate; include a meaningful Code Index for developer docs.
documentation
Generate technical design documents with proper structure, diagrams, and implementation details. Default language is English unless user requests Chinese.
development
Write code-driven technical blog posts with data-flow narrative, rich Mermaid visuals, and citation-backed claims. Covers source code deep dives, architecture analysis, and doc-driven comparisons.
development
Structured web research with multi-source validation. Output reports with complete citation links. Focus on key results, verify information quality.