TechBroz · techbroz.com64 incidents on record · updated as they happen
← Hall of Shame

Rank #4 of 64·Data loss·13 Nov 2026·Claude Code (Anthropic), CLI 2.1.322-2.1.325 on macOS

Claude Code's cleanup deleted weeks of session transcripts it should have kept, a user says

A MacBook Air keyboard, for illustration; not the user's Mac (edited).
A MacBook Air keyboard, for illustration; not the user's Mac (edited). Photo: TheumasNL, CC BY-SA 4.0, via Wikimedia Commons; cropped, text overlaid.

As reported This one rests on public reports we couldn’t independently confirm. We’ll update it if the facts change.

“Thirty-day retention, roughly three-week memory.”

Incident reportData lossAs reportedA developer's Mac (~/.claude/projects)
Agent / toolClaude Code (Anthropic), CLI 2.1.322-2.1.325 on macOS
CompanyAnthropic
DamageEvery interactive session transcript gone, some only days old
Time to detectAbout a day; noticed after a laptop restart on 14 Nov
StatusAs reported: one user's GitHub issue, not independently confirmed; no public Anthropic reply when we checked
Chaos4.0 / 10
  • cleanupPeriodDays was never set, so the 30-day default should have applied
  • Every interactive transcript deleted, including sessions 1-3 weeks old
  • Claude Code's last-cleanup marker matches when the folders changed: 13 Nov, 13:37 UTC
  • Only transcript files went; tool results, subagent and file-history folders survived
  • Scripted claude -p transcripts survived back to 15 Oct
  • No Time Machine backup; several weeks of sessions can't be resumed
  • As reported: one user's account, not independently confirmed

Claude Code is supposed to keep your session transcripts for 30 days. One Mac user says a single cleanup pass quietly deleted weeks of them, and claude --resume now comes up empty.

What happened

The user had never set the retention setting, cleanupPeriodDays, anywhere: not in user, project, local or managed settings, and not in the environment. So the 30-day default should have applied. Instead, after a laptop restart on 14 November, every interactive transcript file in their Claude Code projects folder was gone, including sessions from the last one to three weeks. One session had been writing until the night before.

The damage

The evidence points at Claude Code's own cleanup. Its last-cleanup marker reads 13 November, 13:37 UTC, the exact moment the projects and file-history folders were last changed. Several project folders share identical timestamps to the second, which looks like one batch deletion. Only the transcript files went; each session's tool results, subagent and file-history folders survived. Transcripts from scripted claude -p runs survived too, back to 15 October. The user ruled out cleaner apps, hooks, cron and launchd jobs, and has no Time Machine backup. Several weeks of work can no longer be resumed.

How it was caught, and what happened next

The report lists versions 2.1.322 to 2.1.325 on macOS. The issue is open with a data-loss label, and when we checked there was no public reply from Anthropic.

Lesson for builders

If your agent's history matters, back it up yourself. A retention default is a promise, not a backup.

Fail card: Claude Code's cleanup deleted weeks of session transcripts it should have kept, a user says
The fail card

This story in one shareable card. Tap to open it full size.

Share on X All fail cards →

More fails

Get TechBroz Weekly free → All 64 fails