fix(s09_memory): align consolidation cap with trigger threshold#440
Open
beasaltfish wants to merge 1 commit into
Open
fix(s09_memory): align consolidation cap with trigger threshold#440beasaltfish wants to merge 1 commit into
beasaltfish wants to merge 1 commit into
Conversation
Prompt told the model to keep memories under 30, but consolidation only triggers at 10 files — the cap never had room to bind. Lower the cap below the threshold so consolidation actually shrinks the set. Co-Authored-By: Claude Sonnet 5 <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.
Summary
consolidate_memories()triggers atCONSOLIDATE_THRESHOLD = 10files, but its prompt tells the model to keep the total under 30 — since 10 < 30, the cap never forces any actual merging/pruning when consolidation runs.Test plan
.memory/with 10 dummy memory files and run the agent loop to confirmconsolidate_memories()now reduces the count below 10🤖 Generated with Claude Code