Skip to content

feat: add cross-project memory scope and usage tracking#10

Merged
tryweb merged 1 commit intomainfrom
release/v0.2.0-cross-project-memory
Mar 21, 2026
Merged

feat: add cross-project memory scope and usage tracking#10
tryweb merged 1 commit intomainfrom
release/v0.2.0-cross-project-memory

Conversation

@tryweb
Copy link
Owner

@tryweb tryweb commented Mar 21, 2026

Summary

Add cross-project memory scope feature with the following capabilities:

New Features

  • Cross-project memory scope: Memories can now be scoped to global for sharing across projects, complementing the existing project:* scope.
  • Global detection heuristic: Automatic detection of cross-project worthy knowledge using keyword matching (GLOBAL_KEYWORDS).
  • Scope management tools:
    • memory_scope_promote: Promote memories from project to global scope
    • memory_scope_demote: Demote memories from global back to project scope
    • memory_global_list: List/search all global memories with usage stats
  • Usage statistics tracking: lastRecalled, recallCount, and projectCount fields on every memory.
  • Smart unused detection: Identifies global memories not recalled within threshold using actual recall events.

Configuration

  • globalDetectionThreshold (default: 2) - Keywords needed to trigger promotion prompt
  • globalDiscountFactor (default: 0.7) - Score discount for global memories
  • unusedDaysThreshold (default: 30) - Days threshold for unused detection

Testing

  • Foundation tests: 10/10 pass
  • Typecheck: pass
  • Build: pass

Breaking Changes

  • None. All changes are additive and backward compatible.

- Cross-project memory scope with global scope support
- Global detection heuristic with keyword matching
- memory_scope_promote/demote tools
- memory_global_list tool with usage statistics
- Usage tracking (lastRecalled, recallCount, projectCount)
- Smart unused detection based on actual recall events
- New config: globalDetectionThreshold, globalDiscountFactor, unusedDaysThreshold
@tryweb tryweb merged commit 78205f6 into main Mar 21, 2026
4 of 6 checks passed
@tryweb tryweb deleted the release/v0.2.0-cross-project-memory branch March 21, 2026 10:36
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.

1 participant