Ray's Knowledge Base
Unlock

Past Claude Code sessions of a second account are under ~/.claude-swap-backup, not ~/.claude/projects

PitfallVerified 23 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

A search of ~/.claude/projects//*.jsonl for a past discussion finds nothing, though the code from that discussion exists in the working tree. Sessions in ~/.claude/projects show only continued-in and attachment records for those hours.

Cause#

The user switches Claude accounts with cswap (claude-swap). Each other account keeps its own config home with its own transcripts.

Fix#

Search all profiles: grep -l -i "<words>" ~/.claude/projects/<project>/*.jsonl ~/.claude-swap-backup/sessions/*/projects/<project>/*.jsonl. Then pull the dialog with jq on .type=="user"/"assistant" text blocks. The other account also has its own memory folder at ~/.claude-swap-backup/sessions/-/projects//memory/.

Evidence#

2026-10-23, rvow: the relaxed-mode and daemon talks were in ~/.claude-swap-backup/sessions/2-rayandrew_uchicago.edu/projects/-Users-rayandrew-Code-ray-rvow/e8664f56*.jsonl (757 "relaxed" hits), and in no file under ~/.claude/projects.