[FEATURE] Historical session file compression
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
I already have many gigabytes of Claude code .jsonl files. Sometimes I genuinely do come back to a project after a year and I want my old session to be resumable when I do, so I've got retention set at a super high number - 4 years.
At my current usage (and lets face it, usage is only increasing) that's projected to take up about 300GB by that time.
Proposed Solution
.jsonl is extremely compressible.
It'd be great if Claude Code could compress all session logs by default, or compress them when they reach a certain inactivity age, so that I can keep them for longer without needing a new disk.
Alternative Solutions
I guess supporting a remote archive store, like an S3, network share/scp or similar where sessions could be retrieved from if they're over a certain age would be an alternative.
Priority
Low - Nice to have
Feature Category
Performance and speed
Use Case Example
_No response_
Additional Context
_No response_