feat: Add Recall system for periodic knowledge summarization#144
Closed
spoons-and-mirrors wants to merge 8 commits intoOpencode-DCP:masterfrom
Closed
feat: Add Recall system for periodic knowledge summarization#144spoons-and-mirrors wants to merge 8 commits intoOpencode-DCP:masterfrom
spoons-and-mirrors wants to merge 8 commits intoOpencode-DCP:masterfrom
Conversation
Sync dev with master
…fy-pruning-label Simplify pruning notification label
Collaborator
Author
|
deprecated by the better extract tool approach |
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
strategies.pruneTool.recall.frequency) asking the agent to summarize accumulated knowledge and progress.recallCounterin session state to track frequency independently.lib/config.tsandlib/state.Implementation Details
recallobject (enabled, frequency) toPruneToolconfiguration.recallCounterto session state. It increments alongsidenudgeCounteron tool usage and resets on prune actions.lib/messages/prune.ts, the recall prompt is injected when the counter meets the frequency threshold. The counter is immediately reset to 0 to create a periodic interval (e.g., every 10 messages) rather than a persistent state.lib/prompts/recall.txtwith the system instruction for summarization.