---
name: consolidate-memory
description: Find duplicate or overlapping memories and patterns and propose merges — a review draft only, sources are never edited
---
<!-- generated by tools/build-codex-plugin.js from plugin/; edit the source there, not this file -->

> Host: Codex CLI, through the `agenticos` plugin. Invoke as `$agenticos:consolidate-memory`. `<plugin root>` is the plugin's folder, two levels above the folder that holds this SKILL.md; the `aos` launcher is `<plugin root>/bin/aos`. The tools of the `agenticos` MCP server are named `mcp__agenticos__<tool>`.

Produce a memory consolidation draft:

1. Bash: `aos consolidate-memory the text the user wrote after `$agenticos:consolidate-memory`` (fallback: `sh "<plugin root>/bin/aos" consolidate-memory the text the user wrote after `$agenticos:consolidate-memory``). Without `--local` it prints a `<<<AOS_CONTEXT feature=consolidate-memory>>> … <<<END>>>` block listing candidate clusters with their file contents and the draft format.
2. Write the proposal (one section per cluster: keep / merge into / delete, with the merged text) to a temp file and persist it with `aos consolidate-memory --write <file>`; it lands at `brain/_index/memory-consolidation.md`.
3. Remind the user it is a proposal; no source file was modified. Offer to execute specific sections on request.
