Local History Guide / Cursor Agent

Cursor Agents Window and CLI History on macOS

Sessions from Cursor's Agents Window and Agent CLI can contain the prompt, tool call, command output, or file path that explains a change. Agent Sessions makes that local Cursor Agent history searchable beside Codex, Claude, OpenCode, Hermes, OpenClaw, Gemini, Copilot, and Pi.

Agent Sessions supports chats created in Cursor's Agents Window and by Cursor Agent CLI. It does not decode IDE sidepane chats that exist only as message blobs in Cursor's database.

Download Agent Sessions View on GitHub Product page
Agent Sessions showing Cursor Agent sessions filtered in the local history browser.
Primary storage~/.cursor/projects/.../agent-transcripts
Metadata storage~/.cursor/chats/.../store.db
SurfaceCursor Agents Window and Agent CLI sessions.

Where Cursor Agent Stores Local Data

Cursor Agent writes JSONL transcripts under Cursor's local data directory:

~/.cursor/projects/<project>/agent-transcripts/<session-id>/<session-id>.jsonl

Cursor also stores per-session chat metadata in SQLite databases:

~/.cursor/chats/<workspace-hash>/<session-id>/store.db

Agent Sessions uses the JSONL transcript as the primary source for readable events and uses store.db metadata for names, model hints, timestamps, and workspace context when available.

What Agent Sessions Does

Cursor Agent support has been verified against Cursor 3.5.38 using the app-bundled CLI at /Applications/Cursor.app/Contents/Resources/app/bin/cursor.

What This Does Not Do

Related Guides

Sources