Windows forensic artifactOpenAICodex
OpenAI Codex CLI (agentic coding CLI) session rollouts, prompt history, state databases, and configuration
Look for config.toml, AGENTS.md, hooks.json, installation_id, version.json, *.jsonl
in %UserProfile%\.codex\sessions, %UserProfile%\.codex\archived_sessions, %UserProfile%\.codex and 9 more folders.
- 19 paths
- Per-user data
- Version 1.0
- Eric Capuano
Paths on disk
19 paths
Notes
Codex stores all state under CODEX_HOME, which defaults to %USERPROFILE%\.codex\ (C:\Users\<user>\.codex\) on Windows.
If the CODEX_HOME environment variable is set (it may be a comma-separated list), check those directories instead.
Primary evidence of use is sessions\YYYY\MM\DD\rollout-<ISO timestamp>-<uuid>.jsonl. Each line has timestamp, type
(session_meta, response_item, event_msg, turn_context, compacted) and payload. session_meta records cwd, cli_version,
originator (codex_cli_rs, vscode, codex_desktop, etc), model, and git metadata. response_item function_call entries
contain the exact shell commands executed and function_call_output their results.
history.jsonl provides a quick cross-session timeline of prompts.
Project-level AGENTS.md files and .codex\ folders inside repositories are not collected because their locations are
arbitrary; the projects table in state_*.sqlite and the cwd values in session_meta identify which directories to examine.
Deliberately not collected: .codex\auth.json (API key / OAuth tokens), .codex\cache\ and .codex\plugins\ (large, reproducible),
.codex\tmp\ and .codex\computer-use\ (transient).
Layout verified against Codex CLI on macOS; the relative layout under CODEX_HOME is the same on Windows.
References
5 links
- github.com/openai/codex(opens in new tab)
- developers.openai.com/codex/config-reference%20-%20config.toml%20reference(opens in new tab)
- developers.openai.com/codex/cli/reference%20-%20CLI%20reference%20including%20resume/sessions(opens in new tab)
- github.com/openai/codex/discussions/3827%20-%20Rollout%20file%20naming(opens in new tab)
- ccusage.com/guide/codex/%20-%20Third-party%20parser%20documenting%20sessions/YYYY/MM/DD/rollout-*.jsonl%20layout(opens in new tab)
Related artifacts
Often collected in the same investigation
- ClaudeCodeClaude Code (Anthropic agentic coding CLI) session transcripts, prompt history, configuration, hooks, and IDE integration artifacts
- ClineCline (VS Code AI coding agent) task conversation histories, MCP settings, checkpoints, and global state
- CursorCursor AI editor agent chat history, composer data, local file history, MCP and hook configuration, and logs
- GeminiCLIGoogle Gemini CLI chat session logs, prompt history, shell history, checkpoints, and configuration
- GitHubCopilotGitHub Copilot CLI and Copilot Chat (VS Code) agent sessions, prompt history, configuration, and MCP settings
- OpenCodeOpenCode (open-source terminal coding agent) session database, logs, snapshots, and configuration
- RooCodeRoo Code (VS Code AI coding agent, archived May 2026) task conversation histories, MCP settings, custom modes, and checkpoints
- VisualStudioCodeVisual Studio Code artifacts