feat: Priority 3 Memory Enhancements — Shared Scope, Entity Graph, Confidence Scoring, Proactive Injection#634
Open
helal-muneer wants to merge 1 commit intoCortexReach:masterfrom
Open
Conversation
- H: Cross-agent shared memory scope (shared:) - I: Entity relationship layer (entity-graph.ts) - J: Memory confidence scoring (confidence-tracker.ts) - K: Proactive memory injection (proactive-injector.ts) New tools: memory_entities, memory_boost, memory_shared Config: scopes.shared, entityGraph.enabled, proactive.enabled
Collaborator
|
The individual capabilities here are interesting, but several are shipped in a non-functional or unsafe state that would affect users who enable them. Two must-fix items before this is ready. Must fix
High priority
Other
Questions for author
|
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
Four advanced memory features to make OpenClaw agents significantly smarter:
H. Cross-Agent Shared Memory (
shared:scope)sharedbuilt-in scope automatically readable by all agentsmemory_sharedtoolscopes.shared.enabled(default: true),scopes.shared.autoPromote(default: false)I. Entity Relationship Layer (
src/entity-graph.ts)getRelated(),getEntityProfile(),getAllEntities()entityGraph.enabled(default: false)J. Memory Confidence Scoring (
src/confidence-tracker.ts)confidence = usefulCount / max(recallCount, 1) * decayBoostmemory_boost— manually boost a memory's confidenceK. Proactive Memory Injection (
src/proactive-injector.ts)proactive.enabled(default: false),staleMemoryDays,entityPrefetch,patternTriggersNew Tools
memory_entities— query entity graph (profile/related)memory_boost— manually boost memory confidencememory_shared— explicitly write to shared scopeFiles Changed
src/entity-graph.ts,src/confidence-tracker.ts,src/proactive-injector.tssrc/scopes.ts,src/tools.ts,index.ts,openclaw.plugin.jsonscope-access-undefined.test.mjs,clawteam-scope.test.mjsDesign Principles