{"version":"2.1.219","anchor":"post-compaction-file-restore-skips-memory-files","canonical_anchor":"post-compaction-file-restore-skips-memory-files","heading":"Post-compaction file restore skips memory files","tier":"notice","area":"Compaction","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.219\/e\/post-compaction-file-restore-skips-memory-files","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.219","markdown":"### Post-compaction file restore skips memory files\n\nAfter compaction, Claude stops wasting its re-read budget on memory files it already injects.\n\n**What**\n\nAfter compaction, the routine that re-reads recently touched files no longer spends its budget re-reading CLAUDE.md-family memory content that is injected anyway.\n\n**Details**\n\n- Builds a set of canonical memory-file paths for every scope in `[\"User\", \"Project\", \"Local\", \"Managed\", \"AutoMem\"]` and filters them out, alongside the agent's own memory file.\n- A new optional parameter also excludes non-truncated pinned memory-directory entries; that exclusion applies only when the caller opts in and the pinned-memory precondition holds.\n- Partial compaction (`compact_partial`) now also passes the message list so the plan-mode attachment is regenerated, and opts into the pinned-file exclusion.\n\n**Evidence**\n\n`tengu_post_compact_file_restore_success`, `AutoMem`\n\n- Area: Compaction\n- Names: `CLAUDE.md`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 0\/5"}