Consolidate memory
Consolidate session knowledge into persistent memory.
Steps
notepad_read(plan_name): all sections for the finished run, whose name is theplan_name; load it if needed:ToolSearch({query: "select:mcp__plugin_oh-my-claudeagent_omca__notepad_read", max_results: 1})- 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)
- user scope:
- Identify learnings, patterns, decisions worth preserving
- Update the project's auto-memory index,
~/.claude/projects/<project>/memory/MEMORY.md(orMEMORY.mdunder theautoMemoryDirectorysetting when set): concise, deduplicated - 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.