Claude Code writes each session to a plaintext JSONL transcript under ~/.claude/projects, including tool calls and tool results. It deletes these files after cleanupPeriodDays, 30 by default. Copy the transcript, subagent folder and tool-results folder off the machine first, and treat the copy as sensitive because it may hold secrets.
Read in this order
- OfficialExplore the .claude directory (Claude Code docs)Maps transcript, file-history and debug paths, the cleanup period and the plaintext storage warning.