Agent Sessions app icon

Agent Sessions

• macOS • Open Source •

Local History Guide / OpenCode

OpenCode SQLite History: Browse Old OpenCode Runs on macOS

OpenCode sessions become useful project history quickly. A run may contain a failed command, model explanation, file path, or decision that explains why code changed. Agent Sessions reads the local OpenCode history layer and makes it searchable without uploading transcripts.

OpenCode support means local CLI/OpenCode history from the files OpenCode writes on disk. Agent Sessions opens that data read-only.

Download Agent Sessions 3.9.3 View on GitHub Product page
Agent Sessions showing OpenCode sessions filtered in the local history browser.
Primary storage~/.local/share/opencode/opencode.db
Legacy storage~/.local/share/opencode/storage/session
FormatsSQLite sessions, message rows, part rows, and legacy JSON session files.

Where OpenCode Stores Local Data

Current OpenCode history is SQLite-backed:

~/.local/share/opencode/opencode.db

Agent Sessions also keeps a fallback for older per-file JSON storage:

~/.local/share/opencode/storage/session

The SQLite backend is preferred when opencode.db exists and contains the expected session tables. Agent Sessions reads session metadata plus message and part rows, then renders old runs as searchable timelines.

What Agent Sessions Does

What This Does Not Do

Related Guides

Sources