Agent Sessions app icon

Agent Sessions

• macOS • Open Source •

Local History Guide / Codex

Codex Local History: Search Codex CLI, Desktop, and VS Code Sessions on macOS

Codex sessions are often the record of how a task actually happened: the prompt, plan, tool call, patch output, command error, image input, or final reasoning boundary. Agent Sessions makes that local Codex history searchable across Codex CLI, Codex Desktop, and Codex VS Code surfaces.

Agent Sessions reads local Codex rollout files. It does not upload Codex transcripts or turn them into hosted project memory.

Download Agent Sessions 3.9.3 View on GitHub Product page
Agent Sessions showing Codex and Claude local history rows with a readable transcript preview.
Primary storage~/.codex/sessions or $CODEX_HOME/sessions
FormatsDate-sharded rollout-*.jsonl session logs.
SurfacesCodex CLI, Codex Desktop, and Codex VS Code sessions in one Codex corpus.

Where Codex Stores Local Data

Codex session logs use JSONL rollout files. The default root is:

~/.codex/sessions

If CODEX_HOME is set, Agent Sessions follows:

$CODEX_HOME/sessions

Codex stores sessions in date-sharded folders:

YYYY/MM/DD/rollout-*.jsonl

Agent Sessions also scans archived Codex session folders when they exist, so restored or archived Codex Desktop sessions can remain visible.

What Agent Sessions Does

What This Does Not Do

Related Guides

Sources