Show HN: Compactdiff – see what compaction dropped from an agent session

5 pointsposted 9 hours ago
by mileskoldin

1 Comments

olejorgenb

4 hours ago

> 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...