mcp_engram_forget_old
Manually evict non-pinned memories with low CRS to manage memory growth. Preserves pinned and recently accessed blocks; uses Langevin ranking to target stale entries first.
Instructions
Explicitly evict non-pinned memories below a CRS threshold (manual only; no automatic GC). WHEN TO USE: After a long project phase ends, after distill runs, or when the manifold is growing too large. Start conservative (min_crs_threshold=0.3) and increase if needed. Pinned blocks (CRS=1.0) are ALWAYS exempt and will never be evicted. Use older_than_days to target stale memories while preserving recently-accessed ones. Langevin ranking (default on): candidates ordered by eviction_score = (threshold−CRS)×√cold_secs so low-CRS + long-cold blocks go first (discrete Langevin lifecycle). max_evict caps batch size. Preview what would be evicted with mcp_engram_stats first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_evict | No | Optional cap on number of blocks to evict (after Langevin ranking). Omit = no cap. | |
| langevin_rank | No | If true (default), rank eviction by (threshold−CRS)×√seconds_since_access. If false, unsorted candidate order. | |
| older_than_days | No | If set, only evict memories not accessed in this many days | |
| min_crs_threshold | No | Evict memories with CRS below this value (default: 0.2) |