What
After 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.
Details
- 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. - 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.
- Partial compaction (
compact_partial) now also passes the message list so the plan-mode attachment is regenerated, and opts into the pinned-file exclusion.
Evidence
tengu_post_compact_file_restore_success, AutoMem
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleCLAUDE.md