Agent skill

Memory Consolidate

by mikeyobrien in mikeyobrien/rho

Consolidate brain memory and mine user sessions since the last consolidation checkpoint (sleep-cycle style).

MITAuto-check passedSecurity

Install Memory Consolidate

skills CLI
$ npx skills add mikeyobrien/rho --skill memory-consolidate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mikeyobrien/rho memory-consolidate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mikeyobrien/rho.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/memory-consolidate .claude/skills/memory-consolidate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory-consolidate
GitHub stars
372
Token cost
~1.3k tokens
SKILL.md length
603 words
Files
1
Skills in repo
35
Repo updated
First seen
Licence
MIT

At a glance

Consolidate brain memory and mine user sessions since the last consolidation checkpoint (sleep-cycle style).

  • Works in 8 steps: Inventory → Resolve mining window → Session mining (user messages only) → …
  • Reduce noisy prompt injection while preserving durable high-value memories
  • SKILL.md covers Overview, Importance levels (retention), Parameters and Steps
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Memory Consolidate is an agent skill from mikeyobrien/rho. 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.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security, covering Prompt injection and agent security. The repository describes itself as: An AI agent that stays running, remembers across sessions, and checks in on its own. macOS, Linux, Android. Built on Pi. The licence is MIT.

When your agent uses it

  • Reduce noisy prompt injection while preserving durable high-value memories
  • Tasks that involve Prompt injection and agent security

Example prompts

  • “/memory-consolidate”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Inventory
  2. Resolve mining window
  3. Session mining (user messages only)
  4. Decay stale learnings
  5. Consolidate existing entries
  6. Vault relocation for reference-heavy entries
  7. Persist checkpoint (success only)
  8. Report

What it can do on your machine

Read from SKILL.md and the folder at commit 073a3ee. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Memory Consolidate loads about 1.3k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 603 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mikeyobrien/rho at commit 073a3ee, republished under its MIT licence (© mikeyobrien). 603 words, ~1,315 tokens.

Download SKILL.mdSave it as .claude/skills/memory-consolidate/SKILL.md (or your agent's skills folder).
name
memory-consolidate
description
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.
kind
sop

Memory Consolidate

Overview

Run a "brain sleep cycle":

  1. Consolidate existing memory (dedupe, decay, merge, vault relocation)
  2. Mine user sessions since the last consolidation checkpoint
  3. Persist a new checkpoint only after a successful run

Use the brain tool for brain changes and the vault tool for reference relocation. Never edit brain.jsonl directly.


Importance levels (retention)

Use these symbols while triaging entries:

  • 🔴 High importance — durable, high-leverage, should remain in brain
  • 🟡 Medium importance — useful but optional; review for merge/tightening
  • 🟢 Low importance — stale/noisy/duplicative; prune or relocate

For memory retention, high importance means keep longer, not delete.


Parameters

  • brain_path (default: ~/.rho/brain/brain.jsonl)
  • mine_sessions (default: true)
  • since (default: last_consolidation) — last_consolidation | <ISO timestamp> | <duration>
  • days_fallback (default: 1) — only used when no checkpoint exists
  • session_dir (default: ~/.pi/agent/sessions/)
  • max_new_entries (default: 10)
  • confidence_threshold (default: high) — high | medium
  • checkpoint_key (default: memory_consolidate.last_consolidated_at)

Steps

1) Inventory

List memory by type and count totals.

You MUST report counts for:

  • learnings, preferences, behaviors, identity, user, context, tasks, reminders
  • total active entries
2) Resolve mining window

Determine the lower bound timestamp:

  1. If since is explicit timestamp/duration, use it.
  2. If since=last_consolidation, read checkpoint from checkpoint_key.
  3. If no checkpoint exists, use days_fallback.

Constraints:

  • You MUST mine only sessions in the resolved window.
  • You MUST include the resolved window in the final report.
3) Session mining (user messages only)

Extract durable learnings/preferences from user messages in matched sessions.

Confidence policy:

  • High: explicit user statements/corrections/preferences → auto-add
  • Medium: strong multi-session inference → add only if threshold is medium
  • Low: ambiguous/one-off/hypothetical → skip

Constraints:

  • You MUST NOT exceed max_new_entries.
  • You MUST dedupe against existing memory before add.
  • You MUST prefer high-confidence extractions first.
  • You MUST include session id in source when available (session:<id>).
4) Decay stale learnings

Run brain action=decay.

Constraints:

  • You MUST report decayed count.
Show full SKILL.md (316 more words)Show less
5) Consolidate existing entries

Identify duplicates/superseded/stale entries and merge candidates.

Apply the importance lens:

  • 🔴 Keep durable, high-value operational guidance
  • 🟡 Merge or tighten wording
  • 🟢 Remove if stale/noisy/redundant

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):

  • Version numbers or update confirmations ("updated X to v1.2.3")
  • Heartbeat or check-in status reports ("Heartbeat Feb 19: all clear")
  • Benchmark scores or run results ("scored 42/89 = 47.2%")
  • Bug sweep summaries without a generalizable root cause ("reviewed X, no bugs found")
  • UI/feature implementation details ("button text changed to X", "layout uses 3 columns")
  • Task completion status ("task X is complete", "run Y failed")
  • Project-specific transient state that won't inform future decisions
  • Duplicates — keep the best-worded version, remove the rest

Constraints:

  • You MUST NOT remove preferences unless contradicted/superseded.
  • You MUST NOT invent new facts while merging.
  • When uncertain, keep.
  • You SHOULD be aggressive about pruning — a smaller, high-signal brain is better than a large, noisy one.
6) Vault relocation for reference-heavy entries

"Reference-heavy" means useful knowledge that does not need to be injected every turn and can be searched ad hoc.

Typical candidates:

  • long feature histories / changelog-style learnings
  • architecture rationale requiring structure
  • multi-step runbooks / deep troubleshooting notes
  • linked research/reference material

Constraints:

  • You MUST write vault notes before removing corresponding brain entries.
  • Each note MUST include ## Connections with [[wikilinks]].
  • Leave a short pointer memory when useful (e.g., "See [[note-slug]]").
7) Persist checkpoint (success only)

At end of successful consolidation, set/update checkpoint timestamp (now, UTC ISO-8601).

Constraints:

  • You MUST update checkpoint only after successful completion.
  • You MUST NOT advance checkpoint on partial/failed runs.
8) Report

You MUST report:

  • counts before/after by type + total
  • mining window and sessions analyzed
  • added/skipped mined entries (with skip reasons)
  • decayed, removed, merged, relocated counts
  • vault notes created/updated (slugs)
  • checkpoint old → new value
  • up to 10 significant changes

© mikeyobrien, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/memory-consolidate of mikeyobrien/rho.

Open the folder on GitHubat commit 073a3ee

Compare with similar skills

Memory Consolidate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory Consolidate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory Consolidate this skillmikeyobrien/rho372—~1.3kAutomated safety check: PassMIT
Skill Scannergetsentry/skills1k4 repos~2.5kAutomated safety check: WarnApache-2.0
Forensifyalexgreensh/repo-forensics188—~2.5kAutomated safety check: NotesCustom licence
Hol Guardhashgraph-online/hol-guard827—~542Automated safety check: PassApache-2.0
Kesekit Checkcdppcorp/KESE-KIT361—~1.3kAutomated safety check: PassMIT
Setuphashgraph-online/hol-guard827—~443Automated safety check: PassApache-2.0

Similar skills

  • Skill Scanner

    getsentry/skills

    Official

    Scan agent skills for security issues. An agent skill from getsentry/skills.

    1k GitHub starsUsed in 4 repos~2.5k tokens
    SecurityAuto-check: warnings
  • Forensify

    alexgreensh/repo-forensics

    Cross-agent self-inspection of your AI-agent stack. An agent skill from alexgreensh/repo-forensics.

    188 GitHub stars~2.5k tokensUpdated 12 days ago
    SecurityAuto-check: notes
  • Hol Guard

    hashgraph-online/hol-guard

    Run HOL Guard scanner and guard operations via uv run hol-guard.

    827 GitHub stars~542 tokensUpdated today
    SecurityAuto-check passed
  • Kesekit Check

    cdppcorp/KESE-KIT

    Run a pre-deployment security compliance checklist based on KISA guidelines.

    361 GitHub stars~1.3k tokensUpdated 6 mo ago
    SecurityAuto-check passed
  • Setup

    hashgraph-online/hol-guard

    Install or initialize HOL Guard local runtime protection for Claude Code.

    827 GitHub stars~443 tokensUpdated today
    SecurityAuto-check passed
  • Clawscan CLI

    openclaw/clawscan

    A skill your agent uses when running or explaining the ClawScan CLI, including one-off agent-skill scans, benchmark runs, scanner fixtures, judge harness commands, env var validation, and…

    143 GitHub stars~3k tokensUpdated 2 days ago
    SecurityAuto-check passed

More from mikeyobrien/rho

All 35 skills in this repo
  • Rho Cloud Onboard

    mikeyobrien/rho

    Register an agent email address on Rhobot Mail (name@rhobot.dev).

    372 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed
  • Install Rho

    mikeyobrien/rho

    Install and configure Rho from scratch (Doom-style init.toml + sync).

    372 GitHub stars~1.6k tokensUpdated 8 days ago
    Auto-check: notes
  • Open URL

    mikeyobrien/rho

    Open URLs and launch apps on Android. An agent skill from mikeyobrien/rho.

    372 GitHub stars~480 tokensUpdated 8 days ago
    Auto-check passed
  • Release Changelog

    mikeyobrien/rho

    Keep CHANGELOG.md idiomatic (Keep a Changelog) and cut a tag-based GitHub release that triggers npm publish CI.

    372 GitHub stars~1.4k tokensUpdated 8 days ago
    Auto-check passed
  • Rho Cloud Email

    mikeyobrien/rho

    Manage agent email at name@rhobot.dev via the Rhobot Mail API.

    372 GitHub stars~2.6k tokensUpdated 8 days ago
    Auto-check passed
  • Tasker XML

    mikeyobrien/rho

    Create Tasker profiles and tasks via XML for Android automation.

    372 GitHub stars~3.1k tokensUpdated 8 days ago
    Auto-check passed

Categories

Questions about Memory Consolidate

What does Memory Consolidate do?

Consolidate brain memory and mine user sessions since the last consolidation checkpoint (sleep-cycle style). Memory Consolidate is an agent skill from mikeyobrien/rho. Consolidate brain memory and mine user sessions since the last consolidation checkpoint (sleep-cycle style).

When should I use Memory Consolidate?

Memory Consolidate fits situations like: reduce noisy prompt injection while preserving durable high-value memories; tasks that involve Prompt injection and agent security.

How do I install Memory Consolidate in Claude Code?

Run `npx skills add mikeyobrien/rho --skill memory-consolidate -a claude-code`. Or copy the skill folder (skills/memory-consolidate in mikeyobrien/rho) into .claude/skills/memory-consolidate in your project. Claude Code loads it when a task matches its description.

How do I install Memory Consolidate in Codex?

Run `npx skills add mikeyobrien/rho --skill memory-consolidate -a codex`. Or copy the skill folder (skills/memory-consolidate in mikeyobrien/rho) into .agents/skills/memory-consolidate in your project. Codex loads it when a task matches its description.

Can I use Memory Consolidate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mikeyobrien/rho --skill memory-consolidate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory-consolidate, .gemini/skills/memory-consolidate, .github/skills/memory-consolidate and .opencode/skills/memory-consolidate in your project.

What does Memory Consolidate need to run?

SKILL.md names no scripts, command-line tools or credentials: Memory Consolidate is instructions for the agent only.

Does Memory Consolidate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory Consolidate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Memory Consolidate use?

Memory Consolidate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory Consolidate use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Memory Consolidate?

Skills that share tags, products or a category with Memory Consolidate: Skill Scanner (getsentry/skills, 1k stars), Forensify (alexgreensh/repo-forensics, 188 stars), Hol Guard (hashgraph-online/hol-guard, 827 stars) and Kesekit Check (cdppcorp/KESE-KIT, 361 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory Consolidate?

mikeyobrien (a GitHub user) maintains it in mikeyobrien/rho, which has 372 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 1, 2026.

Source: mikeyobrien/rho on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.