Join the discussion
Write your take first — we'll ask for email only when you're ready to publish.
- Hacker News
- > Claude Code and Codex persist sessions as JSONL, and compaction rewrites those files in place. There is no version history, so when a session gets compacted you cannot tell what was dropped — which matters if the agent silently lost the constraint you gave it forty turns ago.
I'm quite sure this is wrong ("rewrites those files in place") for Claude Code at least...
by olejorgenb