memory-management

Persist session context with claude-mem across compactions and restarts.

34|5|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/baekenough/oh-my-customcode --skill memory-management-baekenough
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: memory-management
Source: https://github.com/baekenough/oh-my-customcode/tree/main/templates/.claude/skills/memory-management
Command: npx skills add https://github.com/baekenough/oh-my-customcode --skill memory-management-baekenough

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Memory persistence operations using claude-mem to keep session context alive across compactions and restarts.

Core Features & Use Cases

  • Save Context: Persist session data with tags and metadata for long-running tasks.
  • Recall Context: Retrieve relevant memories using semantic queries and metadata filters.
  • Get Specific Memory: Fetch a memory by ID for precise context reconstruction.

Quick Start

Save your current session context to claude-mem for persistence.

Frequently Asked Questions about memory-management

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

FAQPage Schema
How do I persist session context across compactions in Claude?▼

To persist session context across compactions, you save your current session data with metadata and tags. This ensures long-running interactive tasks retain their context even after restarts or context window resets.

How can I retrieve specific memories using semantic queries after a restart?▼

You can retrieve specific memories using semantic queries by filtering saved metadata. This allows you to fetch a memory by ID for precise context reconstruction or recall relevant session data dynamically.

Does claude-mem work for saving structured memory with metadata in iterative workflows?▼

Yes, claude-mem works for saving structured memory with metadata in iterative workflows. It applies to long-running tasks by storing session data persistently, satisfying requirements for structured saving and metadata filtering.

What is the best way to keep session data alive during long-running tasks?▼

The best way to keep session data alive during long-running tasks is to store it persistently with metadata. This approach survives compactions and restarts, allowing you to later recall relevant context by query or ID.

Why does my session context disappear after a context window compaction?▼

Session context disappears after compaction because the active memory is cleared to free up space. Using a persistent storage approach to save context before compactions ensures your session data survives the restart.