Hacker News new | ask | show | jobs
by albert_e 13 days ago
> The reasoning was in a transcript on my laptop. Claude Code deletes those after 30 days by default. Two of my projects lost their whole history that way.

Wait what? Claude Code (and Codex) transcripts are auto-deleted??

That's a treasure trove of information for all my projects and I had built some tooling and workflows tahat deal with extracting insights from them -- withut ever realizing I mightbe losing old chats. Thanks for this -- I may need to include an archival step for retention.

4 comments

I use https://usegitai.com/ and https://ctx.rs/ to preserve and search them.
> "cleanupPeriodDays": 99999

Throw that in ~/.claude/settings.json

Thanks. Updated.

Codex apparently does not do auto delete presently.

Need to watch.

Horrifying, isn't it?

Amazing to me how little these companies respect the historic value of the transcripts. Most of my work is captured in them now.

Yes but it's just a setting you can change I don't think you really need an archival step
Yes done this now. Thanks.

I will still try and include archival -- storage is cheap. A reinstall of Claude Code or buggy upgrade might still wipe history. I also ocassionally use multiple PCs -- so there is some small value in consolidating them all for analytics and insights.

(When I have a weekly quota unused and about to expire -- i task Opus with churning through these archives and surfacing learining, best practices, what's not working etc)