Repository navigation
Description
User need
As a memory collection grows, users need a deliberate way to keep it useful, consistent, appropriately scoped, and focused. Individual maintenance tools exist, but a unified review could make the decisions easier to understand and manage.
Proposed experience
Provide a manual Memory optimization review that presents evidence-backed recommendations across five areas:
- Deduplication and consolidation: identify duplicate or overlapping memories, show what each contributes, and propose appropriate consolidation.
- Consistency: surface potentially conflicting claims with their sources, dates, and scope. Leave unresolved authority visible for review.
- Freshness: identify potentially outdated references or open threads and offer reconfirm, update, or retire decisions. This can incorporate the separately proposed freshness-review capability in Enhancement: review memory freshness after code changes #411.
- Compaction and trimming: recommend reducing unnecessary repetition or detail while preserving commands, values, qualifications, exceptions, and provenance. Any prose shortening should be reviewable alongside the original.
- Project/global scope review, in both directions: recommend moving genuinely cross-project preferences or practices from project scope to global, and moving project-specific commands, architecture details, or business rules from global to their appropriate project.
For scope changes, show the current scope, proposed scope, reason, and resulting visibility change. A preference explicitly intended for all projects may belong globally; "this API uses Redis database 3" belongs to the relevant project. Repetition across projects alone does not establish global applicability, and an unknown owning project should remain unresolved until clarified.
Review and outcomes
Show the affected entries, proposed result, supporting evidence, and available retrieval checks before applying selected changes. Applied changes should be explicit, audited, and recoverable, with provenance and repository boundaries preserved.
The objective is useful, current knowledge within a manageable context budget. Fewer rows or shorter prose alone do not establish improvement. Age or lack of recorded retrieval alone should not establish that a memory is expendable. A smaller active collection also does not automatically mean less historical disk usage or a lower provider bill.
Existing context
#45 and #84 establish the existing consolidation/retrieval approach; memory_consolidate, memory_merge_review, and memory_decay provide a foundation. This records the overall enhancement rather than prescribing its decomposition. The maintainer can decide how existing tools, the separate freshness proposal (#411), and any new review capabilities fit together. The other separately recorded suggestions are improved recall (#409) and a session-learning review inbox (#410).
Recorded as an enhancement for consideration. Priority, design, decomposition, and implementation ownership remain with the maintainer.
Activity
WhollyMindless commentedon Nov 14, 2026
I envisioned an interactive memory hygiene review of existing memories: identify likely duplicates, overlapping wording, inconsistencies, and entries that may belong at a different scope.
For example: "These seem equivalent — combine them?" or "This global entry looks project-specific — which project owns it?" The reviewer should explain its reasoning, preserve meaningful differences, and ask when intent is unclear. It can use model-assisted judgment and discussion; a deterministic filter is not a requirement.
A useful starting scope is the current project plus global memories. Current visibility rules already support reading both together (visibility predicate at 0.25.0). A broader review could later cover explicitly selected projects through a maintenance interface. That would need deliberate access to those projects' memories; an ordinary global-only reader does not have it. The existing administrative reader is a foundation for such access within the store, not a claim that the complete review or scope-transfer workflow already exists.
This complements #410: that issue reviews what a session learned; this one reviews the accumulated collection. They could share an interactive, model-assisted experience, initially invoked explicitly and optionally triggered automatically later. Starting a review automatically and applying its recommendations automatically remain separate choices. Proposed edits and scope changes should show the affected entries and resulting visibility, preserve provenance, and remain recoverable.
This clarifies the desired experience; interface, decomposition, and implementation remain the maintainer's decisions.
WhollyMindless commentedon Nov 25, 2026
Note
🤖 GPT-6.2 Sol responding on behalf of WhollyMindless
A small first slice of the scope review would let a user move one mistakenly global memory into its known owning project. Preview the exact entry, destination, and visibility change. Apply only after confirmation, preserve provenance and history, and make the change reversible.
Positive example. “Verify migrations with
bun run migration:verify” was saved globally but only applies to the billing repo. The preview shows that it will remain available in billing and stop appearing in other repos. After confirmation, recall in those repos reflects that change and undo restores the prior scope.Negative example. When the owning project is unclear, leave the entry where it is and ask the user to identify the owner. Undo restores future visibility. Content already sent in an earlier prompt is outside the scope of the move.
Implementation ownership. We’ll wait for the maintainer to explicitly approve us taking this on or assign it to us before claiming it or starting implementation.