Skip to content

Session History

The Session History panel is the long-term memory of your Ptah workspace. Every session ever created — active, closed, or archived — is here, searchable and filterable.

History panel

  • Click the History icon in the sidebar
  • Keyboard: Ctrl/Cmd + H
  • Command Palette: Ptah: Open Session History

Each row shows:

  • Title (auto-generated or your rename)
  • Agent used for the session
  • Model (e.g., claude-opus-4-7)
  • Last activity timestamp
  • Message count
  • Total cost (if available)
  • Status badge — active / archived / imported

Click any row to open the session in a new tab. Middle-click opens it in a background tab.

The search box supports:

  • Plain text — matches message content and title
  • Field queriesagent:backend-developer, model:claude-opus-4-7, has:error
  • Datebefore:2026-01-01, after:2026-03-01
  • Quoted phrases"payment webhook"

Combine freely: agent:frontend-developer "dark mode" after:2026-03-15

Search runs against a local index. Typical latency is under 50ms on 1,000 sessions.

The filter sidebar offers quick toggles:

FilterOptions
StatusActive, Archived, Imported, All
AgentAny built-in or custom agent name
ModelAny model used in this workspace
Date rangeToday, Week, Month, Custom
Has errorsOn / Off
Cost rangeSlider

Filters stack with the search query.

Select multiple sessions (shift-click or ctrl/cmd-click) to:

  • Archive / unarchive
  • Delete
  • Export
  • Tag

Select one or more sessions → Export. You can export to:

  • Markdown — human-readable transcript
  • JSON — full structured data (round-trip safe)
  • Clipboard — markdown of the current selection only
{
"id": "sess_01h8z...",
"title": "Add dark mode toggle",
"agent": "frontend-developer",
"model": "claude-opus-4-7",
"messages": [ ... ],
"metadata": { ... }
}

Add free-form tags to any session for custom grouping:

  • Right-click → Add tag…
  • Filter by tag in the sidebar
  • Tags are local to the workspace
ShortcutAction
EnterOpen selected session
SpacePreview in side panel
DeleteDelete selected (with confirmation)
/Focus search box
EscClear search / close panel

Ptah loads history in chunks of 50 rows with virtual scrolling. A workspace with 10,000+ sessions still opens instantly. The underlying index lives at:

<workspace-root>/.ptah/sessions/index.json

If the index gets out of sync (rare, but possible after a force-quit), run Command Palette → Ptah: Rebuild Session Index.