consolidate
Find and merge duplicate or near-duplicate memory captures. Review similar groups, then confirm to consolidate them, with batch size for incremental processing.
Instructions
Find and merge duplicate or near-duplicate memories. Use this when you suspect redundant captures (e.g. same decision captured twice). Returns groups of similar captures. Set confirm=true to merge them. Use batch_size to limit how many captures are processed in one call (cost control).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true to merge duplicates. Without confirm, returns candidates only. | |
| threshold | No | Similarity threshold (0-1). Higher = stricter matching. Default 0.75. | |
| batch_size | No | Maximum captures to process in this batch. 0 = all (default). Use for incremental consolidation on large databases. | |
| session_key | No | The session key to consolidate. Default is hash(cwd). Use 'all' for all projects. |