[Feature Request] Add "never expire" option for local project history retention
Bug Description
add a never expire option for files saved for history locally. how can i disable all the history for claude code projects at ~/.claude/projects/ being deleted every 30 days. i want them to be saved forever
⏺ claude-code-guide(Disable 30-day project history cleanup)
⎿ Done (3 tool uses · 11.9k tokens · 18s)
(ctrl+o to expand)
⏺ There's no official "disable" toggle — Claude Code's cleanupPeriodDays setting has a minimum of 1 and rejects 0. The practical workaround is setting it to a very high value in ~/.claude/settings.json:
{
"cleanupPeriodDays": 36500
}
That's ~100 years, effectively permanent. If you want me to apply this to your global settings now, say the word and I'll use the update-config skill. Alternatively, if you want true forever-retention,
periodically copy ~/.claude/projects/ to a separate archive directory outside Claude's management — Claude Code only cleans up its own directory.
Worth filing via /feedback if you want a real "never expire" option.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.126
- Feedback ID: 28d71de4-1662-4dd6-8207-f267111e7a37
Errors
[]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗