dedup_scan
Scan stored memories to surface likely duplicate or contradictory pairs, returning similarity scores and candidates for review before linking, editing, or forgetting.
Instructions
Surface likely-duplicate/contradictory memory pairs.
Lexical overlap over near-identical text -- each pair carries its
method. Two takes on one subject in different words do not surface
here. Same-domain/session checkpoint pairs are excluded (timelines, not
dups)
and checkpoint pairs rank below durable-type pairs. Not an automatic
merge -- returns candidate pairs + similarity score for the agent to
review and decide (link_memories / edit_memory / forget as
appropriate).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | one memory type, as search() takes it; empty is every type. | |
| limit | No | the most pairs to return. | |
| domain | No | scans a path and everything nested under it, which is usually what you want: near-duplicates collect between a module and its own routines. | |
| offset | No | where the page starts; `next_offset`, when present, starts the next. | |
| threshold | No | the similarity, 0 to 1, a pair must reach to be listed. |