Importing Existing History
Importing Existing History
Section titled “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.

Where Ptah looks
Section titled “Where Ptah looks”~/.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\When auto-import runs
Section titled “When auto-import runs”- 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 demand — Command Palette → Ptah: Re-scan Claude CLI sessions.
What gets imported
Section titled “What gets imported”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.
Mapping CLI projects to Ptah workspaces
Section titled “Mapping CLI projects to Ptah workspaces”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
Filtering what to import
Section titled “Filtering what to import”In the import dialog you can:
- Limit to sessions newer than N days
- Exclude archived / trashed CLI sessions
- Pick specific projects only

Continuing a CLI session in Ptah
Section titled “Continuing a CLI session in Ptah”Imported sessions behave exactly like native Ptah sessions. Open one and click Continue to start a new turn. Ptah will:
- Pick the same model the CLI session used (you can change it)
- Load the full message history into context
- Resume under the same agent (or prompt you to pick one if the CLI session was ad-hoc)
Two-way sync?
Section titled “Two-way sync?”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.
Privacy
Section titled “Privacy”- 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.