consolidate-memory

Consolidate agent memory files and notepad learnings into a unified project summary.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/UtsavBalar1231/oh-my-claudeagent --skill consolidate-memory-utsavbalar1231
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: consolidate-memory
Source: https://github.com/UtsavBalar1231/oh-my-claudeagent/tree/main/skills/consolidate-memory
Command: npx skills add https://github.com/UtsavBalar1231/oh-my-claudeagent --skill consolidate-memory-utsavbalar1231

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agent sessions accumulate scattered learnings across notepad sections and memory files at user and project scopes, causing duplication, bloat, and loss of durable knowledge when memory files hit their loading limits. ## Core Features & Use Cases - Cross-scope memory reading: Reads notepad sections for the active plan plus MEMORY.md files from both user scope (~/.claude/agent-memory/) and project scope (.claude/agent-memory/). - Deduplicated consolidation: Identifies patterns and decisions confirmed across multiple interactions and writes them into a concise, topic-organized project MEMORY.md. - Size management: Keeps memory within the 200-line / 25KB per-session loading limit by removing session-specific state. - Use Case: After several long debugging and planning sessions, run this Skill to merge scattered notes into a clean project memory file that future sessions can load efficiently. ## Quick Start Ask the agent to consolidate memory for the current plan so it merges notepad learnings and agent memory files into an updated project MEMORY.md.

Frequently Asked Questions about consolidate-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I consolidate agent memory across sessions?

Run the consolidate-memory workflow, which reads notepad sections for the active plan and MEMORY.md files at user and project scopes, then writes a deduplicated, topic-organized summary into the project MEMORY.md.

Where are Claude Code agent memory files stored?

Agent memory files live at two scopes: user scope under ~/.claude/agent-memory/*/MEMORY.md and project scope under .claude/agent-memory/*/MEMORY.md resolved from the project root.

What is the memory file size limit for agent sessions?

MEMORY.md loads only the first 200 lines or 25KB per session. Consolidate memory when approaching these limits so important learnings are not truncated.

What should be kept versus removed when consolidating memory?

Keep patterns and decisions confirmed across multiple interactions, organized by topic. Remove session-specific context such as in-progress tasks and temporary state that has no long-term value.

When should I not consolidate agent memory?

Avoid consolidating mid-task when learnings are unverified or still changing. Consolidation works best after work completes, when patterns have been confirmed across multiple interactions.