Skip to content

Importing Existing History

If you’ve been using the Claude CLI before Ptah, your conversations aren’t stranded. Ptah auto-imports sessions from the standard Claude CLI storage location so you can pick up where you left off — full transcripts, metadata, costs, and all.

Auto-import in progress

~/.claude/projects/

This is the default project-scoped session folder used by the Claude CLI. Each sub-folder represents a project, and each file inside is a session transcript (JSONL).

On Windows, the equivalent path is:

C:\Users\<you>\.claude\projects\
  • First launch — Ptah scans ~/.claude/projects/ and shows a prompt listing everything it found.
  • Every app start — a quick incremental scan picks up new sessions written by the CLI while Ptah was closed.
  • On demandCommand Palette → Ptah: Re-scan Claude CLI sessions.

For each session, Ptah captures:

  • Full message transcript (user + assistant + tool calls)
  • Timestamps
  • Model used
  • Agent (if the CLI session was scoped to one)
  • Token counts and cost estimates
  • Working directory / project association

See Session metadata for the full field list.

Ptah matches CLI projects to its own workspaces by comparing absolute paths. If you opened D:\projects\my-app in the CLI, its sessions appear under the same workspace in Ptah.

If the match is ambiguous (e.g., a moved folder), Ptah shows a disambiguation prompt and lets you:

  • Link sessions to an existing workspace
  • Create a new Ptah workspace from the CLI path
  • Skip and import later

In the import dialog you can:

  • Limit to sessions newer than N days
  • Exclude archived / trashed CLI sessions
  • Pick specific projects only

Import filters

Imported sessions behave exactly like native Ptah sessions. Open one and click Continue to start a new turn. Ptah will:

  1. Pick the same model the CLI session used (you can change it)
  2. Load the full message history into context
  3. Resume under the same agent (or prompt you to pick one if the CLI session was ad-hoc)

Auto-import is one-way (CLI → Ptah). Changes you make in Ptah are not written back to the CLI transcript file. If you need both tools to see the same ongoing session, use CLI agent session resume instead — that preserves a shared session ID both tools can rehydrate.

  • Importing is fully local — nothing is uploaded.
  • You can disable auto-import in Settings → Agents → Auto-import.
  • To delete imported sessions, use the Sessions panel — this removes Ptah’s copy only and leaves the CLI transcript intact.