skills/memory-consolidate/SKILL.md
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.
npx skillsauth add mikeyobrien/rho memory-consolidateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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:
data-ai
Install and configure Rho from scratch (Doom-style init.toml + sync). Only prereq: a coding agent that can run shell commands.
documentation
Detect and resolve orphaned notes in the vault. Use during heartbeat maintenance or when vault status shows orphans. Finds notes with no inbound wikilinks and either connects them to the graph or flags them for cleanup.
testing
Update the pi-coding-agent npm package to the latest version. Use when the user wants to update pi, upgrade pi, or get the latest version of the coding agent.
development
Run a curiosity-driven explore-and-build loop to ship one useful improvement.