consolidate
Clusters cold, low-importance memories by entity and layer, summarizes each cluster into a single learning entry, and deletes originals to free memory space. Run at session end or preview with dry_run.
Instructions
Sleep-mode compression. Clusters cold low-importance memories by (entity, layer), summarizes each cluster into a single protected learning-layer entry, deletes originals, and runs a forget-sweep. Run at session end or on demand. Set dry_run=true to preview without writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | session | |
| min_age_days | No | Override the default 7-day minimum age for clustering (set to 0 to consolidate everything immediately, useful right after a bulk import). | |
| dry_run | No | Preview what would be compressed without modifying the DB. |