r/ClaudeCode • u/stichstichstich • 4h ago
Discussion claude code deletes your transcripts after 30 days, found out when i tried to check my own numbers
on oct 7 i changed my compaction to 200K. a week later i was paying like 7-26% less per prompt depending on what days i compared it to
this week i wanted to check it again and couldnt. claude code deletes transcripts older than 30 days by default so everything before oct 7 is just gone, nothing to compare with anymore
if you want to keep them longer put this in ~/.claude/settings.json
"cleanupPeriodDays": 90
they stay on your disk longer tho so pick whatever number youre ok with
ive been working on optimAIzr for like 3 months now pretty much nonstop, its a cost tool for claude code and i ship an update every week or two. because of this the new version saves the days before a change as numbers (counts and dollars, no prompts or code) so you can still compare after claude code deletes the logs
theres also a new optimaizr cases command that follows every change you make until it knows if it worked or not. it only calls it proven if cost per prompt is down 10%+ against every baseline. funny thing is my own 7% wouldnt even pass lol
free, open source, runs locally, no account. works with codex and opencode too and theres a vs code extension
npx optimaizr cases
https://github.com/blendbunjaku/optimaizr (alrdy at ~250stars)
View all comments
•
u/AutoModerator 4h ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.