Skip to content

memory(B-0006): compress MEMORY.md from 514 to 207 lines#1706

Merged
AceHack merged 4 commits intomainfrom
claim/task-memory-md-compression
May 6, 2026
Merged

memory(B-0006): compress MEMORY.md from 514 to 207 lines#1706
AceHack merged 4 commits intomainfrom
claim/task-memory-md-compression

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 6, 2026

Summary

  • Moves 307 overflow entries from memory/MEMORY.md to new memory/INDEX-POST-LINE-200.md
  • MEMORY.md goes from 514 lines to 207 lines, under the ~200-line cap per B-0006
  • No memory files deleted — all topic files preserved in memory/; only the INDEX entry moves
  • Entries beyond line 200 were never loaded by Claude Code anyway (harness truncates at ~200 lines / 25KB)

Test plan

  • wc -l memory/MEMORY.md shows ~207 lines
  • All memory-file links in MEMORY.md resolve to existing files
  • memory/INDEX-POST-LINE-200.md contains the moved entries with header explaining the sub-index
  • No memory files deleted from memory/ directory

🤖 Generated with Claude Code

AceHack and others added 3 commits May 6, 2026 10:30
…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>
Copilot AI review requested due to automatic review settings May 6, 2026 14:33
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread memory/MEMORY.md
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md to 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.md is still 208 lines long, but memory/README.md states 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/`.

Comment thread memory/MEMORY.md
Comment thread memory/INDEX-POST-LINE-200.md
@AceHack AceHack enabled auto-merge (squash) May 6, 2026 14:43
Copilot AI review requested due to automatic review settings May 6, 2026 14:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread memory/MEMORY.md
Comment thread memory/INDEX-POST-LINE-200.md
@AceHack AceHack merged commit b0faaf3 into main May 6, 2026
29 checks passed
@AceHack AceHack deleted the claim/task-memory-md-compression branch May 6, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants