docs(claude): update memory-hygiene rules for the split index#373
Open
xmap wants to merge 1 commit into
Open
Conversation
The auto-memory index grew past the always-loaded budget (~112KB; only the
first ~24KB loads), so the Active shelf was silently dropped every session.
The index is now split: MEMORY.md (auto-loaded) carries only User + Feedback +
Durable; the work-ledger shelves moved to on-demand siblings MEMORY_ACTIVE.md
and MEMORY_REFERENCE.md.
These rules governed a single-file index ("move to ## Reference in the same
edit") and would now send future sessions to a section that no longer exists.
Update them to route by shelf: new in-flight pointers to MEMORY_ACTIVE.md,
SUPERSEDED / 30d-shipped demotions from MEMORY_ACTIVE.md to MEMORY_REFERENCE.md,
durable/user/feedback to MEMORY.md, and keep MEMORY.md under ~17KB so it never
truncates on load.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Updates the Memory hygiene section of
CLAUDE.mdto match the now-split auto-memory index.Why
The auto-memory index had grown to ~112 KB while only the first ~24 KB auto-loads each session, so the entire Active shelf (the most current work) was silently dropped from context. The index is now split:
User+Feedback+Durableshelves only, plus pointers.The existing rules assumed one file ("move its index entry to
## Referencein the same edit") and would route future sessions to a section that no longer exists. The updated rules:MEMORY.md; in-flight ->MEMORY_ACTIVE.md),MEMORY_ACTIVE.mdtoMEMORY_REFERENCE.md,MEMORY.mdunder ~17 KB so it never truncates on load.Docs-only; no code paths touched. (The memory files themselves live under
~/.claudeand are not part of the repo.)🤖 Generated with Claude Code