Indexed transcript references in compaction summaries for surgical context recovery (CLAUDE-CODE #26771)
Summary
The article analyzes a data-loss issue in Claude Code's auto-compaction where user-provided content is lost from the compacted summary even while the full transcript remains on disk. It proposes a lightweight solution: annotate compacted text with transcript line-range references so targeted data can be recovered on demand. It also discusses Phase 2 cross-session indexing and links to related issues and proposals.