memory(B-0006): compress MEMORY.md from 514 to 207 lines#1706
Merged
Conversation
…der 200 lines per B-0006
…low entries to INDEX-POST-LINE-200.md Per B-0006 (P1): MEMORY.md capped at ~200 lines because Claude Code truncates past that point (the first ~200 lines / 25KB load at session start per CLAUDE.md fast-path). Entries beyond line 200 were the ones Claude Code never saw anyway. Approach: keep the first 200 lines (header + most-important/most-recent entries per existing sort order) + footer. Move lines 201-507 (307 overflow entries) to memory/INDEX-POST-LINE-200.md with a header explaining the sub-index. All underlying topic files preserved in memory/ — no memory files deleted. Existing sub-index memory/INDEX-PRE-2026-04-23.md covers the pre-2026-04-23 corpus. This new sub-index covers the overflow from the main index compression. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…4→207 lines per B-0006)
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c40800a1d0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR attempts to bring memory/MEMORY.md back under the ~200-line wake-time limit by moving the overflow portion of the index into a new overflow index file.
Changes:
- Removes the post-line-200 index entries from
memory/MEMORY.md. - Adds
memory/INDEX-POST-LINE-200.mdto retain the moved entries and their one-line hooks.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| memory/MEMORY.md | Truncates the shared memory index by removing overflow entries after ~line 200. |
| memory/INDEX-POST-LINE-200.md | New overflow index containing the moved entries from MEMORY.md. |
Comments suppressed due to low confidence (1)
memory/MEMORY.md:207
- P0:
memory/MEMORY.mdis still 208 lines long, butmemory/README.mdstates Claude Code truncates after 200 lines. Everything below line 200 (including this pre-2026 pointer block) risks not being loaded at wake-time. Please reduce the index to <=200 lines (or move essential pointers above line 200).
**Pre-2026-04-23 corpus** (kernel-vocabulary genesis,
operational-resonance instances, Aurora ferries 9-19, etc.):
see [`memory/INDEX-PRE-2026-04-23.md`](INDEX-PRE-2026-04-23.md)
for full index. All underlying topic files preserved under
`memory/`.
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.
Summary
memory/MEMORY.mdto newmemory/INDEX-POST-LINE-200.mdmemory/; only the INDEX entry movesTest plan
wc -l memory/MEMORY.mdshows ~207 linesmemory/INDEX-POST-LINE-200.mdcontains the moved entries with header explaining the sub-indexmemory/directory🤖 Generated with Claude Code