Mm consolidate

From mirror-mind-ai/mirror · View interactive version

Mm consolidate is an AI agent skill from the GitHub repository mirror-mind-ai/mirror. Scans memories for recurring patterns and proposes consolidation (merge, identity update, or shadow candidate)

How to use this skill

Skill file

mm-consolidate

Consolidation as integration — the operation that promotes raw extracted memories into

structural identity content (CV7.E4.S3).

Memories accumulate over time. Patterns repeat. The same insight lands in five conversations

as five isolated memories, none of which reaches the identity layer where it could actually

change how the mirror responds. Consolidation is the bridge. This skill surfaces those

clusters, proposes a structural move, and waits for explicit acknowledgment before writing

anything.

Promotion mechanism: manual-by-acknowledgment. The scan is automatic; the promotion is not.

Every proposal must be reviewed and accepted (or rejected) before it changes the database.

This is intentional — identity updates are meaningful acts.


Usage

/mm:consolidate [--journey <slug>] [--layer <layer>] [--limit <n>]
/mm:consolidate apply <proposal_id>
/mm:consolidate reject <proposal_id>
/mm:consolidate list [--status pending|accepted|rejected]

1. Scan for proposals

The scan answers from TypeScript against the live provider (CV22.DS8.TS2). Each cluster is one model call bounded by the extraction timeout (MEMORY_LLM_TIMEOUT_EXTRACTION, 60 s) with bounded retries, and every successful call leaves a priced llm_calls row before its proposal is parsed. A call that fails is logged by class (outcome=transport_failed kind=…) in front-door.log beside the database.

mirror consolidate scan \
  [--journey <slug>] \
  [--layer <layer>] \
  [--limit 5] \
  [--threshold 0.75]

This clusters semantically similar memories and calls the LLM to propose one of:

Each proposal is printed and stored with status='pending'.

Default filters: no journey or layer filter (all memories). Threshold 0.75. Limit 5 proposals.


2. Present each proposal to the user

For each proposal, show:

Ask: accept as-is / edit / reject?


3. Apply or reject

Accept as-is:

mirror consolidate apply <proposal_id>

Accept with edited content:

mirror consolidate apply <proposal_id> \
  --content "User-revised version of the proposed content"

Reject:

mirror consolidate reject <proposal_id>

What happens on acceptance:

Rejected proposals leave source memories unchanged.


4. List consolidation history

mirror consolidate list [--status pending|accepted|rejected] [--limit 20]

Notes

logged to llm_calls when MEMORY_LOG_LLM_CALLS=1.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.