Skip to content

Session Management

import { Card, CardGrid } from ‘@astrojs/starlight/components’;

Every conversation you have with Ptah is a session — a persistent, on-disk record of messages, tool calls, agent handoffs, and metadata. Sessions never disappear when you close the app, never fight over context, and can be searched, analyzed, and resumed weeks later.

Sessions overview

  • Nothing is lost. Close your laptop mid-refactor; reopen it tomorrow; the chat is right where you left it.
  • Context stays isolated. A session for “add dark mode” doesn’t get polluted by your “debug payment webhook” chat.
  • Work is measurable. Token counts, costs, and quality scores roll up per session so you can see what’s actually happening.
  • History is yours. All transcripts live locally on disk. No cloud required.
<workspace-root>/.ptah/sessions/

Each session is a JSON file containing the full transcript plus a sidecar metadata record. Sessions are scoped to the workspace they were created in, so switching workspaces swaps the session list.

Create, switch, rename, and delete sessions. [Learn more →](/sessions/managing-sessions/) Browse, search, and filter past conversations. [Learn more →](/sessions/session-history/) Performance metrics, quality scores, and trend charts. [Learn more →](/sessions/analytics/) Tokens, dollars, and duration at a glance. [Learn more →](/sessions/cost-summary/) Restore sessions from `~/.claude/projects/`. [Learn more →](/sessions/auto-import/) Every field Ptah tracks per session. [Learn more →](/sessions/metadata/)