Consolidate brain memory and mine user sessions since the last consolidation checkpoint (sleep-cycle style). Use to reduce noisy prompt injection while preserving durable high-value memories.
Run a "brain sleep cycle":
Use the brain tool for brain changes and the vault tool for reference relocation. Never edit brain.jsonl directly.
Use these symbols while triaging entries:
For memory retention, high importance means keep longer, not delete.
~/.rho/brain/brain.jsonl)true)last_consolidation) — last_consolidation | <ISO timestamp> | <duration>1) — only used when no checkpoint exists~/.pi/agent/sessions/)10)high) — high | mediummemory_consolidate.last_consolidated_at)List memory by type and count totals.
You MUST report counts for:
Determine the lower bound timestamp:
since is explicit timestamp/duration, use it.since=last_consolidation, read checkpoint from checkpoint_key.days_fallback.Constraints:
Extract durable learnings/preferences from user messages in matched sessions.
Confidence policy:
mediumConstraints:
max_new_entries.source when available (session:<id>).Run brain action=decay.
Constraints:
Identify duplicates/superseded/stale entries and merge candidates.
Apply the importance lens:
Apply the 30-day test to every entry: "Would this change a decision I make 30 days from now?" If no, it's noise — remove it.
Auto-remove categories (these should never have been stored):
Constraints:
"Reference-heavy" means useful knowledge that does not need to be injected every turn and can be searched ad hoc.
Typical candidates:
Constraints:
## Connections with [[wikilinks]].At end of successful consolidation, set/update checkpoint timestamp (now, UTC ISO-8601).
Constraints:
You MUST report: