# Consolidate Memory

> Use when a plan finishes or agent memories have piled up. Merges agent project memories and notepad learnings into the project's auto-memory index.

- Skill: `utsavbalar1231/consolidate-memory` (Agent Skill)
- Install (CLI): `npx get-skill add utsavbalar1231/consolidate-memory`
- Raw SKILL.md: https://api.skillmd.com/api/skills/utsavbalar1231/consolidate-memory/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: UtsavBalar1231 (https://skillmd.com/u/utsavbalar1231)
- Updated: 2026-11-18
- Page: https://skillmd.com/skills/utsavbalar1231/consolidate-memory

---


# Consolidate memory

Consolidate session knowledge into persistent memory.

## Steps

1. `notepad_read(plan_name)`: all sections for the finished run, whose name is the `plan_name`; load it if needed: `ToolSearch({query: "select:mcp__plugin_oh-my-claudeagent_omca__notepad_read", max_results: 1})`
2. Read agent memory files at both scopes if accessible:
   - user scope: `~/.claude/agent-memory/*/MEMORY.md`
   - project scope: `.claude/agent-memory/*/MEMORY.md` (platform writes project memories here, resolving from the project root)
3. Identify learnings, patterns, decisions worth preserving
4. Update the project's auto-memory index, `~/.claude/projects/<project>/memory/MEMORY.md` (or `MEMORY.md` under the `autoMemoryDirectory` setting when set): concise, deduplicated
5. Note what was kept vs too session-specific

## Guidelines

- Only persist patterns confirmed across multiple interactions
- Remove session-specific context (in-progress tasks, temporary state)
- Organize by topic, not chronologically
- MEMORY.md loads first 200 lines or 25KB per session. Consolidate when approaching limits.

