跳到正文
RadarAI· X:Ian Johnson(Latent Space 联创) (@enjalot)·· 2 小时前AI 评分38

Claude Code 默认 30 天删除会话记录,可用 cleanupPeriodDays 设置保留

AI 导读

Claude Code 默认会在 30 天后删除会话记录,用户需在 ~/.claude/settings.json 中添加 "cleanupPeriodDays": 36500 才能长期保留。Ian Johnson 称自己因此丢失了自 7 月以来研究 latent basemap 的会话转录,部分内容因同时存在于 Codex 中才得以留存。该提醒尤其针对打算用会话转录做微调的用户。

正文 · 原文

Ian Johnson 🔬🤖· @enjalot · X·2026-11-11 21:04· 50 分钟前AI 评分72

AI 导读

引用提示称 Claude Code 默认在 30 天后删除会话记录,建议在 ~/.claude/settings.json 中添加 "cleanupPeriodDays": 36500 以保留记录,尤其是打算用会话转录做微调的用户。作者 Ian Johnson 表示自己也因此中招,原本计划开源自 7 月以来研究 latent basemap 的会话转录,幸而其中一部分在 Codex 里仍有留存。

正文 · 原文

this bit me. was planning to open source my transcripts researching latent basemap since July but didn't realize this was happening 😭 well a bunch of it was in codex too so I still have those

引用Migel Tissera@migtissera

‼️ If you use Claude Code, please do the following right now. Especially if you're thinking of fine-tuning models with your session transcripts.

in ~/.claude/settings.json, add "cleanupPeriodDays": 36500.

The default deletes sessions after 30 days. I found this the hard way.

在 X 查看被引用的帖子

来源:Ian Johnson 🔬🤖 · x.com

来源:RadarAI · aihot.news