Agent Sessions
Local history guides
Where each agent keeps its sessions, what Agent Sessions reads, and where the boundaries are. One guide per source, with the real paths, the record shape, and the point at which reading the files by hand stops paying.
-
Codex local history
How CLI, Desktop, and VS Code rollout history is read from
~/.codex/sessions, and whereCODEX_HOMEmoves it. -
OpenCode SQLite
Where OpenCode stores session data in
opencode.db, how to browse old runs locally, and the legacy JSON layout it falls back to. -
Claude Code JSONL
What Claude Code writes to local transcripts under
~/.claude/projects, the Desktop roots, and where the boundary is. -
Cursor Agent
How Cursor Agent transcripts are read from Cursor's local storage, and why that is not the same as full Cursor IDE chat history.
-
Hermes state.db
How Hermes sessions in
~/.hermes/state.dbbecome searchable history, with the legacy JSON fallback. -
OpenClaw history
How OpenClaw JSONL sessions are discovered, searched, and kept separate from trajectory traces.
-
GitHub Copilot CLI
Where Copilot writes
events.jsonl, the event envelope, and why its own SQLite store is not the transcript. -
Antigravity CLI
Two stores under
~/.gemini, and the sibling file that holds the untruncated text.
The formats behind these paths are compared side by side in Session-Bench, and walked through in Where AI coding agents store your session history.