Skip to content

Densify and version memory summaries#23148

Merged
jif-oai merged 1 commit into
mainfrom
jif/denser-memories
May 18, 2026
Merged

Densify and version memory summaries#23148
jif-oai merged 1 commit into
mainfrom
jif/denser-memories

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 17, 2026

Why

memory_summary.md is injected into every session, so its value depends on staying compact, navigational, and easy to regenerate when the expected shape changes. The previous consolidation prompt encouraged a broad actionable inventory and allowed older summary structures to be patched in place, which makes it easier for stale or overly verbose summaries to keep accumulating.

This change makes the summary format explicitly versioned and biases Phase 2 memory consolidation toward denser prompt-loaded context.

What changed

  • Require memory_summary.md to begin with an exact v1 header.
  • Teach consolidation to regenerate memory_summary.md from scratch when the header is missing or incompatible, while still allowing incremental updates to MEMORY.md.
  • Tighten the memory_summary.md instructions so it acts as a compact routing/index layer instead of a second handbook.
  • Lower MEMORY_TOOL_DEVELOPER_INSTRUCTIONS_SUMMARY_TOKEN_LIMIT from 5_000 to 2_500 so the runtime prompt budget matches the denser summary target.

Verification

Not run; this is a prompt/template update plus a prompt budget constant change.

@jif-oai jif-oai changed the title feat: denser memories phase 2 Densify and version memory summaries May 17, 2026
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 17, 2026

@codex review

Copy link
Copy Markdown
Contributor

@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: a583a341d9

ℹ️ 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 codex-rs/memories/write/templates/memories/consolidation.md
Comment thread codex-rs/memories/write/templates/memories/consolidation.md
Comment thread codex-rs/memories/read/src/lib.rs
@jif-oai jif-oai merged commit 22dd9ad into main May 18, 2026
31 checks passed
@jif-oai jif-oai deleted the jif/denser-memories branch May 18, 2026 07:59
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants