[FEATURE] automatic compression of session logs (~/.claude/projects/*.jsonl) to save disk space
Open 💬 2 comments Opened May 4, 2026 by ljharb
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
My session logs are quite large - beginning to fill up my travel laptop - and I don't want to purge them. Can they perhaps be stored compressed, and have claude decompress on-the-fly?
(instead/additionally, perhaps a periodic process to automatically convert session logs into more compact memory?)
Proposed Solution
I'd like claude to:
- store jsonl files as compressed files, so they take up less log space (sharding them would likely help with this as well)
- periodically rewrite session logs as memory, so it can take up less space.
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗