memory_consolidate
Consolidate memory by scanning lessons, resolving contradictions, merging duplicates, and flagging stale entries. Returns a health score and before/after counts.
Instructions
Cognitive memory consolidation — the weekly garbage collector for your AI Brain. Scans all lessons, detects contradictions (same topic with conflicting outcomes), merges duplicates, flags stale entries (not recalled in 90+ days), and computes a health score. Returns a full consolidation report with conflicts resolved, duplicates merged, and a before/after count. Run weekly or when brain_doctor reports > 20 lessons. Like git gc for knowledge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | UUID of the cache instance | |
| dry_run | No | If true, report what would change without writing (default: false) | |
| stale_days | No | Lessons not recalled in this many days are flagged stale (default: 90) |