Beware, Claude Code deletes >30 day old transcripts. Anthropic won't fix it

27 pointsposted 5 hours ago
by ojura

35 Comments

ralferoo

4 hours ago

"Why this is more than an inconvenience. For paying users who treat their sessions as intellectual property — design reasoning, prompt history, hard-won context — this is silent, unconsented destruction of user-owned data. The transcripts are the user's record of their own thinking and work; deleting them by default, silently, with no recovery, inverts the expected ownership relationship. A 30-day default that quietly discards months of accumulated reasoning is a poor default for that audience, however reasonable it is for disk hygiene in the general case."

Those users would be wise to back those files up if they consider them valuable intellectual property. If they're important enough that you'd miss them after a disk failure, then they should have been being backed up already.

gruez

3 hours ago

>if they consider them valuable intellectual property [...]

It's hard to take any of what's written seriously, given that it's all AI generated. Did the user actually lose "valuable intellectual property", or did they tell claude to write as dire of a justification as possible?

preciousoo

4 hours ago

Isn’t “Anthropic won’t fix it” a little sensational for barely month old issue with little activity(two upvotes, one of which is me), in backlog of 5k+? Agree that it’s a real issue that need fixing however

ojura

2 hours ago

There's around a dozen issues about this, the oldest one is from a bit under a year ago (though the author marked it closed... prematurely I'd say):

https://github.com/anthropics/claude-code/issues/4172

or this one from December, still open:

https://github.com/anthropics/claude-code/issues/9258

Some more fun facts about this:

- it is silent, not announced anywhere, and calls rm on your data

- setting the days to zero doesn't disable it, it immediately rm's ALL your chats

- even setting it to _something_ big doesn't prevent data loss if you launch Claude Code in some modalities (certain subagents, etc) that don't load this config key but perform deletion anyway (with the 30 day default)

john01dav

4 hours ago

They claim that they can automate development, so their backlog should really be ~0. /hj

orphea

4 hours ago

  Isn’t “Anthropic won’t fix it” a little sensational 
It's editorializing and against HN guidelines either way.

8note

4 hours ago

"fix it" here is reverting their bad change

preciousoo

4 hours ago

I just noticed that it’s a config option. Weird that it’s so short though, I can understand why it may be needed for users who spawn hundreds of sessions a day

Evidlo

4 hours ago

There are several third party tools which can assist with transparently aggregating and archiving sessions across projects

Ccrider is the one I use: https://github.com/neilberkman/ccrider

Session backups live outside of ~.claude so are not deleted and can be resumed.

user

4 hours ago

[deleted]

pigeonwarz

4 hours ago

The best mitigation I've found against this is training Claude to collate what it does within the project dir, specifically a CLAUDE.md vision file and .claude/changelog that documents the changes it makes. The biggest pain point though is remembering to force it to do that between sessions (man is that contextual memory unreliable sometimes).

Schiendelman

4 hours ago

Oh yeah - it commonly doesn't update my BACKLOG.md after shipping something. It tends to catch itself on the next set of work, but sometimes I have it clean up based on recent commits.

Recursing

3 hours ago

This is clearly shown in the settings/config (or at least was last time I looked), if people are surprised by this I recommend asking claude code what settings you can tweak

taspeotis

4 hours ago

I thought this was a feature that they tidied up your data

Deukhoofd

4 hours ago

So it's a config setting you can change? What would you expect them to fix, that sounds like a feature?

ojura

2 hours ago

Some CLI startup paths don't load the config, use the 30 day default. Boom, your chats are gone.

Imagine taking a leave, come back in 30 days, boom. Your transcripts are rm'd, silently, without any notification or confirmations.

Bonus: setting it to 0 days rms everything immediately

rahimnathwani

3 hours ago

There's nothing in claude code onboarding that tells you about this config setting. So most people don't discover it until it's bitten them.

echoangle

3 hours ago

Well they want the default to change. But yeah, it’s not really a bug.

prirun

3 hours ago

It says that raising the config setting still causes things to be inappropriately deleted.

luxuryballs

an hour ago

Probably a better practice to devise your own record/docs history to rely on rather than depending on Anthropic.

user

5 hours ago

[deleted]

bpodgursky

4 hours ago

It's on your computer you can literally just make a crontab to copy them somewhere else.

gruez

3 hours ago

Or tell claude to do it /s

ctxc

an hour ago

/s not needed, it's the easiest path

midnitewarrior

4 hours ago

idk if it's broken.

I think it's more like, "We don't want our harness to need to be able to interpret every version of our conversation format indefinitely."

8note

4 hours ago

i think more of a "we need to delete thinking traces off of customers devices, so our customers cant use them"

which makes anthropic on the whole a lot less trustworthy to have access to any machine

mwigdahl

4 hours ago

Except that those customers can access the traces for 30 days, and freely copy them at any point during that period? It's a usability issue at worst, not some anti-customer conspiracy.

bbg2401

2 hours ago

It's both a usability issue and an anti-customer choice.

mwigdahl

3 hours ago

"Evil Anthropic implements rolling log files."

Film at 11.

astrodust

4 hours ago

That Claude can't retain and reference these in the future, SQLite could do this trivially, is wild.